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

Re: [PATCH] Add color to git-add--interactive diffs (Total different idea to solve the problem)

From: Johannes Schindelin <hidden>
Date: 2016-06-15 22:43:44

Hi,

On Mon, 22 Oct 2007, Peter Baumann wrote:
Wouldn't it make more sense to implement the diff coloring inside git 
apply so that you could use something like

        diff file1 file2|git apply --color

to make the generated diff with colors [1]? It already implements the
same semantic for generating a diffstat, using

        diff file1 file2|git apply --stat
No.  In both cases, "git diff" realises that the output is no terminal, 
and switches off color generation.  (Just try with diff.color=true instead 
of =auto.)

Ciao,
Dscho
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help