-
-
Notifications
You must be signed in to change notification settings - Fork 80
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
Branch reference is erroneously moved on git move
#249
Comments
I wondered if this was working as intended. But I don't think it is; I think it's a bug. Because what if you're rebasing a non-linear tree?
If you type:
Where should
|
Thanks for the detailed report, as always! I was able to reproduce this. I'm sure it's some kind of silly bug given that it works properly with |
Actually, I wasn't able to reproduce this by passing The default behavior of |
This should be fixed by #251. Let me know if you still see this behavior. As I was testing this, I also found some other misbehaving cases involving merge conflict resolution, which should now also be fixed. Thanks for your report! |
Thanks for the quick fix! I'll try it out |
Description of the bug
Set up:
At this point,
git sl
says:Trigger the bug by moving some commits to the current checkout with
git move
without-d
.We are checked out to a named branch and we
move
a commit here that triggers a merge conflict. Resolve the merge conflict with:Expected behavior
I expected the branch reference to not move. That
master
still points to the same commit, like this:Actual behavior
master
moved to the end of the chain of rebased commits.I noticed that I can work around it by specifying the
-d
parameter togit move
. I can specify anything that refers to the current commit. ie., any of these will give me the behavior I expect:-d HEAD
,-d master
, or-d 90f135b4
.Version of
git-branchless
0.3.8
Version of
rustc
No response
The text was updated successfully, but these errors were encountered: