lazygit icon indicating copy to clipboard operation
lazygit copied to clipboard

Rename should not show diff as file being added

Open sdegutis opened this issue 4 years ago • 6 comments

Renaming a file shows the staged changes diff as the entire file contents being added. It should do a diff of only what changed (if any) like git diff --cached does.

sdegutis avatar Jan 25 '22 19:01 sdegutis

(Ignore what I previously posted here I was posting in the wrong issue).

This makes sense. Relevant place to update is filesRenderToMain in pkg/gui/files_panel.go. Should be trivial to do, so I'll add a good-first-issue label

jesseduffield avatar Jan 26 '22 03:01 jesseduffield

I would like to take a look at this :)

StefanMich avatar Mar 22 '22 10:03 StefanMich

@StefanMich feel free :) let me know if you need any pointers

jesseduffield avatar Mar 26 '22 09:03 jesseduffield

@sdegutis could you try building the current master and see if #1859 solves the problem?

mark2185 avatar May 07 '22 17:05 mark2185

Not for like a few weeks. Very swamped.

sdegutis avatar May 07 '22 18:05 sdegutis

I believe this was successfully fixed #1859, can close this now.

PatrickF1 avatar Oct 08 '22 00:10 PatrickF1