1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-07-07 01:09:45 +02:00

Use a better name for the auto-stash for moving a custom patch to index

This commit is contained in:
Stefan Haller
2025-07-03 16:50:53 +02:00
parent 2a7ce19b73
commit 9511ed9d2c
2 changed files with 4 additions and 1 deletions

View File

@ -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
}
}

View File

@ -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",