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:
@ -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
|
||||
}
|
||||
}
|
||||
|
@ -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",
|
||||
|
Reference in New Issue
Block a user