diff options
author | Andrew Hynes <andrew.hynes@colabsoftware.com> | 2022-06-03 23:54:39 -0230 |
---|---|---|
committer | Andrew Hynes <andrew.hynes@colabsoftware.com> | 2022-09-15 21:48:49 -0230 |
commit | 50cf7ac5bc185b22b5fe58b54127f4aa2c23a149 (patch) | |
tree | a6aae3611513e749b19b413b12817a104494b34c /pkg/gui/controllers/files_controller.go | |
parent | 088445b7bed796b0d52820680c44718e816b53fa (diff) |
refactor: change command order
Diffstat (limited to 'pkg/gui/controllers/files_controller.go')
-rw-r--r-- | pkg/gui/controllers/files_controller.go | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/pkg/gui/controllers/files_controller.go b/pkg/gui/controllers/files_controller.go index f1dbfb51c..6e20af51a 100644 --- a/pkg/gui/controllers/files_controller.go +++ b/pkg/gui/controllers/files_controller.go @@ -771,6 +771,13 @@ func (self *FilesController) createStashMenu() error { 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, OnPress: func() error { // there must be something in staging otherwise the current implementation mucks the stash up @@ -792,13 +799,6 @@ func (self *FilesController) createStashMenu() error { }, 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', - }, }, }) } |