Thread (1 message) 1 message, 1 author, 2016-06-15

Re: [PATCH] No color diff when redirecting to file

From: Matthieu Moy <hidden>
Date: 2016-06-15 22:50:27

Sascha Peilicke [off-list ref] writes:
try the same with

git diff > foo
git diff > foo && cat foo
=> no color.

git diff --no-color > foo && cat foo
=> no color either

git diff --color=always > foo && cat foo
=> colors.

Again, just the expected behavior.

If it helps:

$ uname -a
Linux bauges 2.6.36-686 #1 SMP PREEMPT Fri Nov 5 10:35:38 CET 2010 i686 GNU/Linux
$ git --version
git version 1.7.4.rc1.17.ge7ece

-- 
Matthieu Moy
http://www-verimag.imag.fr/~moy/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help