-
-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: override Git's branch moving behavior for on-disk rebases
There are two bugs fixed by this commit: * When carrying out an on-disk rebase, we always forget the currently checked-out branch and detach `HEAD`. * When carrying out an on-disk rebase, it's possible to move the currently checked-out branch to point to one of the rebased commits, even if it shouldn't. This commit makes sure that we save both the old head name and OID as part of initializing the rebase, and uses them afterwards to adjust the state HEAD appropriately.
- Loading branch information
Showing
6 changed files
with
299 additions
and
123 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.