-
Notifications
You must be signed in to change notification settings - Fork 125
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
Equivalent of the most general case git rebase --onto COMMIT1 COMMIT2 COMMIT3? #146
Comments
So let's focus on the latter. How should it be handled by
Sometimes the other order might work better:
Sometimes some other (perhaps hybrid?) approach might work best. It would be nice if |
My specific use case is rebasing several branches that form a chronological chain. They are placed at various spots along a VERY long topic branch, and they serve as "rebase checkpoints". I rebase those checkpoints in order. So, when I rebase n+1th checkpoint onto the nth checkpoint, I only want to rebase the commits between the original position of the nth checkpoint ($COMMIT2) and current position of n+1th checkpoint ($COMMIT3), and I want to rebase them
Which of the two methods you suggested is more appropriate for this scenario? (Also the word "drop" is scary. Please reassure me that it has nothing to do with the sense of "drop" that is used in |
Also, in strategy № 1 the last command errors out:
|
Also also, after figuring out that I will need to give a dummy name in the last step of strategy 1, I tried to rebase a "tight" checkpoint that is only one commit after the previous checkpoint. I expect git-imerge to be rebasing exactly one commit in this situation, but it grinds for minutes and writes profusely to standard output:
... indicating that it is rebasing lots and lots of commits, and that probably the |
I don't think there is a confusion as to what git-imerge should do. It all seems to boil down to two sequences of commits forming a X×Y grid, and finding a path through that grid. With regular git, we also have X and Y sequence, except the X sequence is only represented by its head, and the Y sequence commits are cherrypicked onto X sequence's head in order. What I want from git-imerge is the possibility to specify the exact same Y sequences for
Then I simply want git-imerge to run its rebase algorithm on those sequences. |
What is the equivalent of the most general case of rebase:
?
The text was updated successfully, but these errors were encountered: