Only use ANSI terminal escapes if output is a TTY
Bug #1097961 reported by
Jeremy Stanley
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
git-review |
Triaged
|
Low
|
Unassigned |
Bug Description
Commands like 'git review -l' which colorize output should only do so when that output is destined for a terminal. If the output is a file or pipe, only plain text should be generated. Bonus points for a --no-color or similar command-line option, for people who aren't fond of it even when it is going to their terminal.
Changed in git-review: | |
status: | New → Triaged |
To post a comment you must log in.
Although I did some work on this, I'd be happy to remove color support completely from this feature.