Code review comment for lp://qastaging/~benoit.pierre/bzrtools/colordiff_when_tty

Revision history for this message
Benoit Pierre (benoit.pierre) wrote :

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.

« Back to merge proposal