lazygit icon indicating copy to clipboard operation
lazygit copied to clipboard

Move patch into new commit with message

Open mark2185 opened this issue 3 years ago • 3 comments

Is your feature request related to a problem? Please describe. Usually when I use move patch into new commit I'd like to reword that commit, I'd rather get the popup with the Split from <patch message here"> as initial value than having to manually go back, reword the newly added commit, and return to the view where I was (since I want to split a few other things as well)

Describe the solution you'd like Popup for the new commit message.

mark2185 avatar May 23 '22 13:05 mark2185

I've had the same wish and made a prototype. It simply re-uses the "reword commit" prompt (meaning it also suffers from this issue). Would that work for you?

derteta avatar Aug 27 '22 16:08 derteta

Actually yes, that's exactly what I had in mind!

Except that I always get error: <changed file>: does not exist in index :)

Feel free to open a PR to continue the discussion there.

mark2185 avatar Aug 27 '22 16:08 mark2185

:facepalm: You're right! It was working at some point, must have messed up somewhere. Will fix it, set up a PR and ping you in it!

Update: it works on some commits, but not on others. That's going to be a fun one.

derteta avatar Aug 27 '22 17:08 derteta

@derteta are you able to open up a PR so we finish this up, doesn't seem like it needs too much additional work on top of what you've already done :)

mark2185 avatar Jan 02 '23 11:01 mark2185

Sure, can do.

derteta avatar Jan 05 '23 21:01 derteta

Solved by #2800 .

mark2185 avatar Oct 31 '23 19:10 mark2185