lp://qastaging/~benoit.pierre/bzrtools/colordiff_when_tty
Created by
Benoit Pierre
and last modified
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.
- Get this branch:
- bzr branch lp://qastaging/~benoit.pierre/bzrtools/colordiff_when_tty
Only
Benoit Pierre
can upload to this branch. If you are
Benoit Pierre
please log in for upload directions.
Branch merges
Propose for merging
No branches
dependent on this one.
- Aaron Bentley: Needs Resubmitting
Related bugs
Bug #242115: cdiff should detect if there is a terminal | Undecided | Fix Released |
Related blueprints
Branch information
Recent revisions
- 683. By Benoit Pierre
-
Add --color=MODE option to cdiff; MODE can be:
* never: never colorize output
* auto: colorize output if terminal supports it, and STDOUT is a TTY
* always: always colorize ouput (default)
Branch metadata
- Branch format:
- Branch format 6
- Repository format:
- Bazaar pack repository format 1 (needs bzr 0.92)