mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-07-05 00:59:19 +02:00
Use a better name for the auto-stash for undo
This commit is contained in:
@ -260,7 +260,7 @@ func (self *UndoController) hardResetWithAutoStash(commitHash string, options ha
|
|||||||
dirtyWorkingTree := self.c.Helpers().WorkingTree.IsWorkingTreeDirty()
|
dirtyWorkingTree := self.c.Helpers().WorkingTree.IsWorkingTreeDirty()
|
||||||
if dirtyWorkingTree {
|
if dirtyWorkingTree {
|
||||||
return self.c.WithWaitingStatus(options.WaitingStatus, func(gocui.Task) error {
|
return self.c.WithWaitingStatus(options.WaitingStatus, func(gocui.Task) error {
|
||||||
if err := self.c.Git().Stash.Push(self.c.Tr.StashPrefix + commitHash); err != nil {
|
if err := self.c.Git().Stash.Push(fmt.Sprintf(self.c.Tr.AutoStashForUndo, utils.ShortHash(commitHash))); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
if err := reset(); err != nil {
|
if err := reset(); err != nil {
|
||||||
|
@ -448,6 +448,7 @@ type TranslationSet struct {
|
|||||||
AutoStashTitle string
|
AutoStashTitle string
|
||||||
AutoStashPrompt string
|
AutoStashPrompt string
|
||||||
StashPrefix string
|
StashPrefix string
|
||||||
|
AutoStashForUndo string
|
||||||
Discard string
|
Discard string
|
||||||
DiscardChangesTitle string
|
DiscardChangesTitle string
|
||||||
DiscardFileChangesTooltip string
|
DiscardFileChangesTooltip string
|
||||||
@ -1541,6 +1542,7 @@ func EnglishTranslationSet() *TranslationSet {
|
|||||||
AutoStashTitle: "Autostash?",
|
AutoStashTitle: "Autostash?",
|
||||||
AutoStashPrompt: "You must stash and pop your changes to bring them across. Do this automatically? (enter/esc)",
|
AutoStashPrompt: "You must stash and pop your changes to bring them across. Do this automatically? (enter/esc)",
|
||||||
StashPrefix: "Auto-stashing changes for ",
|
StashPrefix: "Auto-stashing changes for ",
|
||||||
|
AutoStashForUndo: "Auto-stashing changes for undoing to %s",
|
||||||
Discard: "Discard",
|
Discard: "Discard",
|
||||||
DiscardFileChangesTooltip: "View options for discarding changes to the selected file.",
|
DiscardFileChangesTooltip: "View options for discarding changes to the selected file.",
|
||||||
DiscardChangesTitle: "Discard changes",
|
DiscardChangesTitle: "Discard changes",
|
||||||
|
Reference in New Issue
Block a user