Description
Sometimes code has simply been moved around, rather than deleted or added. It would be nice to be able to see this at a glance. The command git diff --color-moved
will display this, or you can set --color-moved
to be git's default with a command like git config --global diff.colorMoved default
.
Sadly I do not see an option to achieve this behavior in gitui.
Describe the solution you'd like
I would like an option to make code that has been moved visually distinct from code that has been added or deleted. I think this should be visible when viewing diffs in the Status [1] tab.
Personally I think this should be enabled by default, but I'm certain some number of people will disagree with me.
Describe alternatives you've considered
The alternatives are manually looking to see whether code has merely moved, or to drop back to the git command line.
Additional context
delta successfully supports this feature: dandavison/delta#72
Here's a blog post that alerted me to the existence of this feature: https://danyspin97.org/blog/modern-cli-applications-part-1/#bonus-color-moved