-
Notifications
You must be signed in to change notification settings - Fork 137
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
rebase: do not try to fixup
a skipped commit
#1321
Comments
See git-for-windows#3981 (comment) for a real-world scenario where this bug caused real problems. |
By "refusing to start the |
No, at the time we could reorder it, we won't have the information whether its target |
Hey dscho. Is anyone working on this, I would like to take it up as my outreachy microproject |
@samkergachu I am unaware of anybody else working on this, so go right ahead! |
Hey @dscho! Could you help me take up this issue as my GSoC microproject? |
Unfortunately, I am pressed for time. You could reach out to the Git mailing list for guidance, though. You can maximize your chances by being specific about your needs. |
Absolutely, I can understand. I will ask on the mailing list. Thanks! |
Hey Cheskaqiqi!
Yes, I am on it.
…On Wed, Feb 8, 2023, 12:22 Cheskaqiqi ***@***.***> wrote:
Hey dscho. Is still anyone working on this . I would like to have a try.
—
Reply to this email directly, view it on GitHub
<#1321 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AY4VBINV5TCBO7KUD4UFMJLWWM7BVANCNFSM56K5A3PA>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
When running an interactive rebase, it is possible that the target commit of a
fixup!
commit could not be applied due to merge conflicts (or because it has been upstreamed). In this instance, going forward with afixup
will amend the wrong commit.Let's prevent that.
The specifics how to prevent that are not set in stone. The easiest solution would probably be to refuse to even start with the
fixup
command, to complain loudly, and to re-issue the command for the user to edit.The tricky part will be to detect that situation because the target commit might have failed to apply cleanly, requiring manual fixing up followed by
git add -u && git rebase --continue
, but those manual fixups might have resulted in no more changes to be committed, either.The text was updated successfully, but these errors were encountered: