git-split-diffs icon indicating copy to clipboard operation
git-split-diffs copied to clipboard

Feature request: showing moved lines differently

Open gnutix opened this issue 4 years ago • 2 comments

One thing I (and others) find sad about GitHub's diff is that it doesn't show succintly moved lines (it shows one line removed, one line added...). I was wondering if this project could improve that when using git diff locally ? WDYT ?

gnutix avatar Aug 20 '21 08:08 gnutix

Yes this is something Phabricator does much better. I think modifying the diff algorithm itself requires more information than we have in this tool (since it's just parsing the output of git diff), so it'll be hard to incorporate something like that here. I know there is git diff --color-moved, but it doesn't format the diff differently for moved lines, so that information gets lost.

banga avatar Sep 04 '21 03:09 banga

Could we perhaps interpret the color bytes somehow?

chtenb avatar Sep 24 '21 13:09 chtenb