diff --git a/pkg/commands/git_commands/stash.go b/pkg/commands/git_commands/stash.go index 72b61b744..40e205a67 100644 --- a/pkg/commands/git_commands/stash.go +++ b/pkg/commands/git_commands/stash.go @@ -110,7 +110,7 @@ func (self *StashCommands) SaveStagedChanges(message string) error { return nil } -func (self *StashCommands) StashUntrackedChanges(message string) error { +func (self *StashCommands) StashIncludeUntrackedChanges(message string) error { return self.cmd.New(fmt.Sprintf("git stash save %s --include-untracked", self.cmd.Quote(message))).Run() } diff --git a/pkg/gui/controllers/files_controller.go b/pkg/gui/controllers/files_controller.go index 6e20af51a..19c296562 100644 --- a/pkg/gui/controllers/files_controller.go +++ b/pkg/gui/controllers/files_controller.go @@ -773,7 +773,7 @@ func (self *FilesController) createStashMenu() error { { Label: self.c.Tr.LcStashIncludeUntrackedChanges, OnPress: func() error { - return self.handleStashSave(self.git.Stash.StashUntrackedChanges, self.c.Tr.Actions.StashIncludeUntrackedChanges, self.c.Tr.NoFilesToStash) + return self.handleStashSave(self.git.Stash.StashIncludeUntrackedChanges, self.c.Tr.Actions.StashIncludeUntrackedChanges, self.c.Tr.NoFilesToStash) }, Key: 'U', },