Skip to content

Commit 0628e3d

Browse files
committed
feature: clear commit message when toggle off Amend
1 parent 8ebf4d7 commit 0628e3d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/ViewModels/WorkingCopy.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,10 @@ public bool UseAmend
8282

8383
CommitMessage = new Commands.QueryCommitFullMessage(_repo.FullPath, currentBranch.Head).Result();
8484
}
85+
else
86+
{
87+
CommitMessage = string.Empty;
88+
}
8589

8690
Staged = GetStagedChanges();
8791
SelectedStaged = [];

0 commit comments

Comments
 (0)