5 ms·
git diff --color-moved This makes git diff highlight reindented or moved lines differently. I use it to get diffs similar to when you pass -w, but with a bit
by mklein994 6y ago
git diff --color-moved
This makes git diff highlight reindented or moved lines differently.
I use it to get diffs similar to when you pass -w, but with a bit more context.
It takes a bit of experimenting to keep it from looking like a fruit salad, but sometimes you get interesting results.
https://git-scm.com/docs/git-diff#Documentation/git-diff.txt---color-movedltmodegt https://git-scm.com/docs/git-diff#Documentation/git-diff.txt...
- square_usual 6y agoIf you use git diffs frequently, I recommend setting up delta: https://github.com/dandavison/delta https://github.com/dandavison/delta
- Myrmornis 6y agoAnd I am working on implementing color-moved support https://github.com/dandavison/delta/issues/72 https://github.com/dandavison/delta/issues/72