Skip to content

Commit 908975c

Browse files
committed
Use a better name for the auto-stash for checking out a branch
1 parent a83fc5e commit 908975c

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

pkg/gui/controllers/helpers/refs_helper.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ func (self *RefsHelper) CheckoutRef(ref string, options types.CheckoutRefOptions
7979
Prompt: self.c.Tr.AutoStashPrompt,
8080
HandleConfirm: func() error {
8181
return withCheckoutStatus(func(gocui.Task) error {
82-
if err := self.c.Git().Stash.Push(self.c.Tr.StashPrefix + ref); err != nil {
82+
if err := self.c.Git().Stash.Push(fmt.Sprintf(self.c.Tr.AutoStashForCheckout, ref)); err != nil {
8383
return err
8484
}
8585
if err := self.c.Git().Branch.Checkout(ref, cmdOptions); err != nil {

pkg/i18n/english.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -449,6 +449,7 @@ type TranslationSet struct {
449449
AutoStashPrompt string
450450
StashPrefix string
451451
AutoStashForUndo string
452+
AutoStashForCheckout string
452453
Discard string
453454
DiscardChangesTitle string
454455
DiscardFileChangesTooltip string
@@ -1543,6 +1544,7 @@ func EnglishTranslationSet() *TranslationSet {
15431544
AutoStashPrompt: "You must stash and pop your changes to bring them across. Do this automatically? (enter/esc)",
15441545
StashPrefix: "Auto-stashing changes for ",
15451546
AutoStashForUndo: "Auto-stashing changes for undoing to %s",
1547+
AutoStashForCheckout: "Auto-stashing changes for checking out %s",
15461548
Discard: "Discard",
15471549
DiscardFileChangesTooltip: "View options for discarding changes to the selected file.",
15481550
DiscardChangesTitle: "Discard changes",

0 commit comments

Comments
 (0)