-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
When the current branch is main, pressing Shift-S, b to squash all fixup! commits in the current branch does nothing.
This can be worked around by selecting a commit below the oldest one to be fixed up and pressing Shift-S, a.
Squashing all commits in the current branch works in branches other than the main branch.
To Reproduce
Steps to reproduce the behaviour:
- Create five commits.
- Create a new branch and switch to it.
- Make a change and stage it.
- Select the third commit in the commit list.
- Press
Shift-F,fto create a fixup! commit. - Press
Shift-S,b. - Change back to the main branch.
- Repeat steps 3–6.
Expected behaviour
In both cases, the fixup! commit should be squashed into the commit it fixes up.
In reality, this works when the branch is not the main branch, and fails silently on the main branch.
Screenshots
If applicable, add screenshots to help explain your problem.
Version info:
- commit=, build date=, build source=Homebrew, version=0.56.0, os=darwin, arch=arm64, git version=2.52.0
- git version 2.52.0
Additional context
Note
Please try updating to the latest version or manually building the latest master to see if the issue still occurs.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working