mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-11-27 22:38:09 +02:00
Fix command log for stash commands
With the exception of Rename Stash, they would all just log "Stash".
This commit is contained in:
@@ -112,7 +112,7 @@ func (self *StashController) handleStashApply(stashEntry *models.StashEntry) err
|
|||||||
Title: self.c.Tr.StashApply,
|
Title: self.c.Tr.StashApply,
|
||||||
Prompt: self.c.Tr.SureApplyStashEntry,
|
Prompt: self.c.Tr.SureApplyStashEntry,
|
||||||
HandleConfirm: func() error {
|
HandleConfirm: func() error {
|
||||||
self.c.LogAction(self.c.Tr.Actions.Stash)
|
self.c.LogAction(self.c.Tr.Actions.ApplyStash)
|
||||||
err := self.c.Git().Stash.Apply(stashEntry.Index)
|
err := self.c.Git().Stash.Apply(stashEntry.Index)
|
||||||
self.postStashRefresh()
|
self.postStashRefresh()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@@ -128,7 +128,7 @@ func (self *StashController) handleStashApply(stashEntry *models.StashEntry) err
|
|||||||
|
|
||||||
func (self *StashController) handleStashPop(stashEntry *models.StashEntry) error {
|
func (self *StashController) handleStashPop(stashEntry *models.StashEntry) error {
|
||||||
pop := func() error {
|
pop := func() error {
|
||||||
self.c.LogAction(self.c.Tr.Actions.Stash)
|
self.c.LogAction(self.c.Tr.Actions.PopStash)
|
||||||
err := self.c.Git().Stash.Pop(stashEntry.Index)
|
err := self.c.Git().Stash.Pop(stashEntry.Index)
|
||||||
self.postStashRefresh()
|
self.postStashRefresh()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
@@ -160,7 +160,7 @@ func (self *StashController) handleStashDrop(stashEntries []*models.StashEntry)
|
|||||||
Title: self.c.Tr.StashDrop,
|
Title: self.c.Tr.StashDrop,
|
||||||
Prompt: self.c.Tr.SureDropStashEntry,
|
Prompt: self.c.Tr.SureDropStashEntry,
|
||||||
HandleConfirm: func() error {
|
HandleConfirm: func() error {
|
||||||
self.c.LogAction(self.c.Tr.Actions.Stash)
|
self.c.LogAction(self.c.Tr.Actions.DropStash)
|
||||||
for i := len(stashEntries) - 1; i >= 0; i-- {
|
for i := len(stashEntries) - 1; i >= 0; i-- {
|
||||||
err := self.c.Git().Stash.Drop(stashEntries[i].Index)
|
err := self.c.Git().Stash.Drop(stashEntries[i].Index)
|
||||||
self.c.Refresh(types.RefreshOptions{Scope: []types.RefreshableView{types.STASH}})
|
self.c.Refresh(types.RefreshOptions{Scope: []types.RefreshableView{types.STASH}})
|
||||||
|
|||||||
@@ -1011,6 +1011,9 @@ type Actions struct {
|
|||||||
UpdateRemote string
|
UpdateRemote string
|
||||||
ApplyPatch string
|
ApplyPatch string
|
||||||
Stash string
|
Stash string
|
||||||
|
PopStash string
|
||||||
|
ApplyStash string
|
||||||
|
DropStash string
|
||||||
RenameStash string
|
RenameStash string
|
||||||
RemoveSubmodule string
|
RemoveSubmodule string
|
||||||
ResetSubmodule string
|
ResetSubmodule string
|
||||||
@@ -2050,6 +2053,9 @@ func EnglishTranslationSet() *TranslationSet {
|
|||||||
UpdateRemote: "Update remote",
|
UpdateRemote: "Update remote",
|
||||||
ApplyPatch: "Apply patch",
|
ApplyPatch: "Apply patch",
|
||||||
Stash: "Stash",
|
Stash: "Stash",
|
||||||
|
PopStash: "Pop stash",
|
||||||
|
ApplyStash: "Apply stash",
|
||||||
|
DropStash: "Drop stash",
|
||||||
RenameStash: "Rename stash",
|
RenameStash: "Rename stash",
|
||||||
RemoveSubmodule: "Remove submodule",
|
RemoveSubmodule: "Remove submodule",
|
||||||
ResetSubmodule: "Reset submodule",
|
ResetSubmodule: "Reset submodule",
|
||||||
|
|||||||
Reference in New Issue
Block a user