Thread (2 messages) flat view 2 messages, 2 authors, 2016-06-15

Re: [PATCH] git-diff: don't use colors when stdout is not a tty.

From: Matthias Lederhofer <hidden>
Date: 2016-06-15 22:43:20

Michel Marti [off-list ref] wrote:
Currently, with diff-coloring enabled, git-diff outputs color escape
sequences even if stdout is redirected (not a tty). This is rather annoying
when trying to further process the output. This patch teaches the diff command
to only do its coloring stuff when a pager is in use or stdout is a tty.
Set color.diff to auto instead of true.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help