-
-
Notifications
You must be signed in to change notification settings - Fork 605
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support fixup
workflow
#2019
Comments
see https://git-scm.com/docs/git-commit#Documentation/git-commit.txt---fixupamendrewordltcommitgt for all dirty details and options 😅 |
heck yeah, +1 for amend. |
Whatever Magit's doing in Emacs for its "instant fixup" appears to "just work" (IOW... DWIM) btw - ty @extrawurst for making a sweet tool :) |
+1 this is a feature I miss the most after coming from LazyGit |
Hey all, just chiming in: if some of you don't know about it, there is I had a quick look around, and it seems to be using The workflow I'd picture is:
You can kinda already do this with what we've got:
It's trivial to implement; I'm not a rust programmer but i could give it a go.. |
I tried adding a PR as to the above, but it got knocked back a bit. I think we're wanting a "interactive rebase" instead. We're still not sure about the UX of this feature. |
+1 for having a From the comments to #2505:
Hard disagree. Having
in your commit history is much less readable than having
which is what |
I agree. That could be a small modification to my pr. Also if you are using I think we need to explain the UX of I didn't have much room to argue and I don't know enough rust to make it a easy-to-merge change. (I'm now working on my own tool to do this instead (In python, which I'm a bit better at)) |
Is your feature request related to a problem? Please describe.
I'd love a shortcut for
git commit --fixup <SHA>
from within gitui. Here is an article describing a common use case for it, but I'll give a short summary.What this does is create a new commit with
fixup! <target <SHA> commit message>
. You can then rungit rebase -i --autosquash
to squash the fixup commits into the target commits. This allows you to defer fixes/ammends to previous commits without messing with git history.A nice use case is when a PR is under review. It let's you mark changes to existing commits without the reviewers losing track of what's been reviewed (as you would if you did
git commit --amend
or a rebase). Once the PR is approved you neaten the commit history usinggit rebase -i --autosquash
.Describe the solution you'd like
I'd like a new shortcut on the commit panel to trigger a
git commit --fixup <SHA>
. e.g.ctrl-f
. This would bring up a view similar to thelogs
panel which would allow choosing the commit to fixup.To be clear - this would only perform
git commit --fixup <SHA>
and notgit rebase -i --autosquash
. No rebase should be involved.Describe alternatives you've considered
Current workflow is:
git commit --fixup <PASTE>
Additional context
This was previously requested in #829 which was closed as completed - I think incorrectly as I commented.
I've created a new issue instead of attempting to resurrect that one.
The text was updated successfully, but these errors were encountered: