1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-06-15 00:15:32 +02:00

feat: add stash option to include untracked changes

This commit is contained in:
Andrew Hynes
2022-06-03 15:41:08 -02:30
committed by Andrew Hynes
parent de6d278e57
commit 7ddb80a13e
3 changed files with 19 additions and 0 deletions

View File

@ -109,3 +109,11 @@ func (self *StashCommands) SaveStagedChanges(message string) error {
return nil
}
func (self *StashCommands) StashUntrackedChanges(message string) error {
if err := self.cmd.New("git stash -u").Run(); err != nil {
return err
}
return nil
}