Merge lp://qastaging/~benoit.pierre/bzrtools/colordiff_when_tty into lp://qastaging/bzrtools
Proposed by
Benoit Pierre
Status: | Merged | ||||
---|---|---|---|---|---|
Merged at revision: | not available | ||||
Proposed branch: | lp://qastaging/~benoit.pierre/bzrtools/colordiff_when_tty | ||||
Merge into: | lp://qastaging/bzrtools | ||||
To merge this branch: | bzr merge lp://qastaging/~benoit.pierre/bzrtools/colordiff_when_tty | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Aaron Bentley | Needs Resubmitting | ||
Review via email: mp+1732@code.qastaging.launchpad.net |
To post a comment you must log in.
Only colorize output in colordiff if terminal support it: fix has_ansi_colors to check if STDOUT is a TTY, and use it in colordiff. This allows one to alias diff to cdiff and always use it even when redirecting outpout to a file or a pager.