From 9511ed9d2c712ff3421f3f607b82bedb73ccf3e9 Mon Sep 17 00:00:00 2001 From: Stefan Haller Date: Thu, 3 Jul 2025 16:50:53 +0200 Subject: [PATCH] Use a better name for the auto-stash for moving a custom patch to index --- pkg/commands/git_commands/patch.go | 3 ++- pkg/i18n/english.go | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/pkg/commands/git_commands/patch.go b/pkg/commands/git_commands/patch.go index 495d50ad6..2a979dd54 100644 --- a/pkg/commands/git_commands/patch.go +++ b/pkg/commands/git_commands/patch.go @@ -1,6 +1,7 @@ package git_commands import ( + "fmt" "path/filepath" "time" @@ -218,7 +219,7 @@ func (self *PatchCommands) MovePatchToSelectedCommit(commits []*models.Commit, s func (self *PatchCommands) MovePatchIntoIndex(commits []*models.Commit, commitIdx int, stash bool) error { if stash { - if err := self.stash.Push(self.Tr.StashPrefix + commits[commitIdx].Hash()); err != nil { + if err := self.stash.Push(fmt.Sprintf(self.Tr.AutoStashForMovingPatchToIndex, commits[commitIdx].ShortHash())); err != nil { return err } } diff --git a/pkg/i18n/english.go b/pkg/i18n/english.go index d345705bd..223cf93f8 100644 --- a/pkg/i18n/english.go +++ b/pkg/i18n/english.go @@ -451,6 +451,7 @@ type TranslationSet struct { AutoStashForUndo string AutoStashForCheckout string AutoStashForNewBranch string + AutoStashForMovingPatchToIndex string Discard string DiscardChangesTitle string DiscardFileChangesTooltip string @@ -1547,6 +1548,7 @@ func EnglishTranslationSet() *TranslationSet { AutoStashForUndo: "Auto-stashing changes for undoing to %s", AutoStashForCheckout: "Auto-stashing changes for checking out %s", AutoStashForNewBranch: "Auto-stashing changes for creating new branch %s", + AutoStashForMovingPatchToIndex: "Auto-stashing changes for moving custom patch to index from %s", Discard: "Discard", DiscardFileChangesTooltip: "View options for discarding changes to the selected file.", DiscardChangesTitle: "Discard changes",