git-gui icon indicating copy to clipboard operation
git-gui copied to clipboard

Show informative diff for renamed files

Open annulen opened this issue 5 years ago • 2 comments
trafficstars

In modern git versions when file was both renamed/moved and changed, git diff shows actual diff in content, while git gui still displays old version of file as removed and new version as added.

annulen avatar Mar 12 '20 22:03 annulen

Your analysis is correct, and now? Git GUI is not a show tool, its a commit factory tool. What does other GUIs (which are meant to factor a commit) do? Like git add --interactive?

bertwesarg avatar Mar 13 '20 06:03 bertwesarg

Well, git add -p or git add -i don't allow partially staging changes in the renamed file, but it seems to me like it's a deficiency in these tools, not a design choice.

Also, it seems like those tools do not support staging individual lines, which doesn't prevent Git GUI from supporting it.

annulen avatar Mar 13 '20 08:03 annulen