diff options
Diffstat (limited to 'project.py')
-rw-r--r-- | project.py | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -832,10 +832,12 @@ class Project(object): | |||
832 | 832 | ||
833 | return 'DIRTY' | 833 | return 'DIRTY' |
834 | 834 | ||
835 | def PrintWorkTreeDiff(self, absolute_paths=False): | 835 | def PrintWorkTreeDiff(self, absolute_paths=False, output_redir=None): |
836 | """Prints the status of the repository to stdout. | 836 | """Prints the status of the repository to stdout. |
837 | """ | 837 | """ |
838 | out = DiffColoring(self.config) | 838 | out = DiffColoring(self.config) |
839 | if output_redir: | ||
840 | out.redirect(output_redir) | ||
839 | cmd = ['diff'] | 841 | cmd = ['diff'] |
840 | if out.is_on: | 842 | if out.is_on: |
841 | cmd.append('--color') | 843 | cmd.append('--color') |