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

refactor: change command order

This commit is contained in:
Andrew Hynes
2022-06-03 23:54:39 -02:30
parent 088445b7be
commit 50cf7ac5bc

View File

@ -770,6 +770,13 @@ func (self *FilesController) createStashMenu() error {
}, },
Key: 'i', Key: 'i',
}, },
{
Label: self.c.Tr.LcStashIncludeUntrackedChanges,
OnPress: func() error {
return self.handleStashSave(self.git.Stash.StashUntrackedChanges, self.c.Tr.Actions.StashIncludeUntrackedChanges, self.c.Tr.NoFilesToStash)
},
Key: 'U',
},
{ {
Label: self.c.Tr.LcStashStagedChanges, Label: self.c.Tr.LcStashStagedChanges,
OnPress: func() error { OnPress: func() error {
@ -792,13 +799,6 @@ func (self *FilesController) createStashMenu() error {
}, },
Key: 'u', Key: 'u',
}, },
{
Label: self.c.Tr.LcStashIncludeUntrackedChanges,
OnPress: func() error {
return self.handleStashSave(self.git.Stash.StashUntrackedChanges, self.c.Tr.Actions.StashIncludeUntrackedChanges, self.c.Tr.NoFilesToStash)
},
Key: 'U',
},
}, },
}) })
} }