diff options
Diffstat (limited to 'project.py')
| -rw-r--r-- | project.py | 5 |
1 files changed, 4 insertions, 1 deletions
| @@ -749,7 +749,7 @@ class Project(object): | |||
| 749 | 749 | ||
| 750 | return 'DIRTY' | 750 | return 'DIRTY' |
| 751 | 751 | ||
| 752 | def PrintWorkTreeDiff(self): | 752 | def PrintWorkTreeDiff(self, absolute_paths=False): |
| 753 | """Prints the status of the repository to stdout. | 753 | """Prints the status of the repository to stdout. |
| 754 | """ | 754 | """ |
| 755 | out = DiffColoring(self.config) | 755 | out = DiffColoring(self.config) |
| @@ -757,6 +757,9 @@ class Project(object): | |||
| 757 | if out.is_on: | 757 | if out.is_on: |
| 758 | cmd.append('--color') | 758 | cmd.append('--color') |
| 759 | cmd.append(HEAD) | 759 | cmd.append(HEAD) |
| 760 | if absolute_paths: | ||
| 761 | cmd.append('--src-prefix=a/%s/' % self.relpath) | ||
| 762 | cmd.append('--dst-prefix=b/%s/' % self.relpath) | ||
| 760 | cmd.append('--') | 763 | cmd.append('--') |
| 761 | p = GitCommand(self, | 764 | p = GitCommand(self, |
| 762 | cmd, | 765 | cmd, |
