Nice. Looks very promising. I'll explore. Thank you so much.

I still get colors but at least they are different than red and greed.
Thanks much

Rick



On Mon, Nov 6, 2017 at 7:00 PM, Igor Djordjevic <igor.d.djordje...@gmail.com
> wrote:

> Hi Richard,
>
> Maybe not exactly what you`re looking for, but "Git" v2.15.0 introduced
> "--color-moved"[1]
> <https://git-scm.com/docs/git-diff#git-diff---color-movedltmodegt> option
> for "git diff"[2] <https://git-scm.com/docs/git-diff>. For a quick
> example, you could use it like this:
>
>     git -c color.diff.newMoved=white -c color.diff.oldMoved=white diff
> --color-moved
>
> ... where you can specify color of your diff context/unchanged lines in
> case they`re not white. You may also try with "--color-moved=plain" and see
> which one works better for you (default is "zebra", see documentation for
> more details).
>
> This will still show you +/- inside diff for moved lines as well, but only
> changed/added/deleted lines will actually be colored, making them clearly
> stand out (moved lines appearing as context lines, if you set the same
> context color as explained above).
>
> Regards,
> Buga
>
> [1] https://git-scm.com/docs/git-diff#git-diff---color-movedltmodegt
> [2] https://git-scm.com/docs/git-diff
>
> On Tuesday, November 7, 2017 at 1:12:46 AM UTC+1, Richard Dooling wrote:
>>
>> Hello,
>>
>> I use git to track changes to large book-length text files, so I am
>> constantly moving lines, blocks of lines, even whole chapters around.
>>
>> It would be quite nice if I could do git diff and see only lines that
>> were either changed, added, or deleted, but not the lines that were simply
>> moved to another location in the file.
>>
>> I suspect a filter script is what I needed and I'm hoping maybe somebody
>> has one?
>>
>> Thank you for any help.
>>
>> Rick Dooling
>>
> --
> You received this message because you are subscribed to a topic in the
> Google Groups "Git for human beings" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/
> topic/git-users/kycBnxmmCcU/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> git-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>



-- 

"Technology is a way of organizing the universe so that man doesn't have to
experience it."

  --Max Frisch

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to