1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-04-25 12:24:47 +02:00

refactor: rename method to StashIncludeUntrackedChanges

This commit is contained in:
Andrew Hynes 2022-07-03 19:44:07 -02:30
parent a0fd47348b
commit c7733aa5e5
2 changed files with 2 additions and 2 deletions

View File

@ -110,7 +110,7 @@ func (self *StashCommands) SaveStagedChanges(message string) error {
return nil 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() return self.cmd.New(fmt.Sprintf("git stash save %s --include-untracked", self.cmd.Quote(message))).Run()
} }

View File

@ -773,7 +773,7 @@ func (self *FilesController) createStashMenu() error {
{ {
Label: self.c.Tr.LcStashIncludeUntrackedChanges, Label: self.c.Tr.LcStashIncludeUntrackedChanges,
OnPress: func() error { 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', Key: 'U',
}, },