Skip to content
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

Wrong commit is focused after moving a commit past a branch boundary #4040

Open
slieschke opened this issue Nov 5, 2024 · 0 comments
Open
Labels
bug Something isn't working

Comments

@slieschke
Copy link

Describe the bug
Using rebase.updateRefs set to true in Git config, when moving a commit past a branch boundary the focused commit changes.

To Reproduce
Steps to reproduce the behavior:

  1. Starting from the Git state in the screenshot below, add a new commit with summary Part 1, Commit 3
  2. Focus the commit in the Commits panel and use to move the commit down twice. The commit is now located between Part 2, Commit 1 and Part 1, Commit 2 at the HEAD of the feature/part-1 branch.

Expected behavior
The Part 1, Commit 3 commit remains focused in the Commits panel.

Actual behavior
The Part 1, Commit 2 commit is now focused in the Commits panel.

Moving a commit up past a branch boundary with also results in the focused commit unexpectedly changing.

Screenshots
CleanShot 2024-11-05 at 15 15 02@2x

Version info:
commit=, build date=, build source=homebrew, version=0.44.1, os=darwin, arch=arm64, git version=2.47.0
git version 2.47.0

@slieschke slieschke added the bug Something isn't working label Nov 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant