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

Re: Adding color to git diff output.

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:42:23

Possibly related (same subject, not in this thread)

sean [off-list ref] writes:
Linus posted a colorize program a while back[1] but it wasn't taken into git.  
The patch below takes a different approach, adding a GIT_DIFF_PAGER variable.
You can use it by assigning a filter to the environment variable, like so:

export GIT_DIFF_PAGER="colordiff | less -RS"
Sounds like a nice idea, even maybe suitable in a FAQ.
Unfortunately colordiff does not seem to grok diff --cc output,
but that is fine ;-).
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help