From 0628e3d3f7a63eb7e56c9acd3bc79961daeb3047 Mon Sep 17 00:00:00 2001 From: leo Date: Fri, 3 Jan 2025 14:27:54 +0800 Subject: [PATCH] feature: clear commit message when toggle off `Amend` --- src/ViewModels/WorkingCopy.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ViewModels/WorkingCopy.cs b/src/ViewModels/WorkingCopy.cs index ef57ec2b..a1230715 100644 --- a/src/ViewModels/WorkingCopy.cs +++ b/src/ViewModels/WorkingCopy.cs @@ -82,6 +82,10 @@ namespace SourceGit.ViewModels CommitMessage = new Commands.QueryCommitFullMessage(_repo.FullPath, currentBranch.Head).Result(); } + else + { + CommitMessage = string.Empty; + } Staged = GetStagedChanges(); SelectedStaged = [];