git stack amend -e fails to apply staged changes and to edit the commit message at the same time if the current branch has another branch stacked on top.
git-stack allows the user to write the message but then errors out with cannot reword; first squash dependent fixups. The staged changes get added as a new fixup! commit. The message is lost.
Version
git-stack 0.10.15
Steps to reproduce
Create two commits, commit0 and commit1. commit1 is on top of commit0.
Create two branches, branch0 on commit0 and branch1 on commit1.
Switch to branch0.
Make a change to the working tree and stage it.
Run git stack amend -e.
Write and save the commit message.
Actual Behaviour
Error happens after I've already typed the commit message. The message is irrecoverably lost. The staged changes end up in a new fixup! commit on top of branch0.
Expected Behaviour
git-stack performs the amend operation and changes the commit message.
Alternatively, git-stack warns that the operation cannot be performed before the user starts editing the commit message.
Alternatively, git-stack dumps the whole message into the console or into a temporary file.
Please complete the following tasks
Description
git stack amend -e
fails to apply staged changes and to edit the commit message at the same time if the current branch has another branch stacked on top.git-stack
allows the user to write the message but then errors out withcannot reword; first squash dependent fixups
. The staged changes get added as a newfixup!
commit. The message is lost.Version
git-stack 0.10.15
Steps to reproduce
commit0
andcommit1
.commit1
is on top ofcommit0
.branch0
oncommit0
andbranch1
oncommit1
.branch0
.git stack amend -e
.Actual Behaviour
Error happens after I've already typed the commit message. The message is irrecoverably lost. The staged changes end up in a new
fixup!
commit on top ofbranch0
.Expected Behaviour
git-stack
performs the amend operation and changes the commit message.Alternatively,
git-stack
warns that the operation cannot be performed before the user starts editing the commit message.Alternatively,
git-stack
dumps the whole message into the console or into a temporary file.Debug Output
No response