diff options
author | Andrew Hynes <andrewjhynes@gmail.com> | 2022-06-03 15:41:08 -0230 |
---|---|---|
committer | Andrew Hynes <andrew.hynes@colabsoftware.com> | 2022-09-15 21:48:48 -0230 |
commit | 7ddb80a13eb22f8ce4fb0522397e1db1221f3876 (patch) | |
tree | 3e3fc32750ebd96df86bb9e160c7fda051c1ee58 /pkg/commands/git_commands/stash.go | |
parent | de6d278e572f7f79a56323446306a2962487c024 (diff) |
feat: add stash option to include untracked changes
Diffstat (limited to 'pkg/commands/git_commands/stash.go')
-rw-r--r-- | pkg/commands/git_commands/stash.go | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/pkg/commands/git_commands/stash.go b/pkg/commands/git_commands/stash.go index c0d187a13..8444032c8 100644 --- a/pkg/commands/git_commands/stash.go +++ b/pkg/commands/git_commands/stash.go @@ -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 +} + |