lmi
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lmi] Navigate by color in `git-diff --color-moved=plain`


From: Vadim Zeitlin
Subject: Re: [lmi] Navigate by color in `git-diff --color-moved=plain`
Date: Wed, 24 Apr 2019 23:22:48 +0200

On Wed, 24 Apr 2019 20:14:17 +0000 Greg Chicares <address@hidden> wrote:

GC> I might ask for 'less' to fold lines by color, but I'm trying to be
GC> reasonable.

 Sorry, I forgot to mention another idea in my previous reply, so here it
is:

 You could also just avoid colouring the moved lines in the first place by
resetting their colours to the default, e.g.

        git -c color.diff.newMoved=white -c color.diff.oldMoved=white diff 
--color-moved=plain ...

This preserves context, but makes the really changed lines stand out much
more.

VZ


reply via email to

[Prev in Thread] Current Thread [Next in Thread]