summaryrefslogtreecommitdiffstats
path: root/pkg/commands/git_commands/stash.go
diff options
context:
space:
mode:
authorAndrew Hynes <andrewjhynes@gmail.com>2022-06-03 15:41:08 -0230
committerAndrew Hynes <andrew.hynes@colabsoftware.com>2022-09-15 21:48:48 -0230
commit7ddb80a13eb22f8ce4fb0522397e1db1221f3876 (patch)
tree3e3fc32750ebd96df86bb9e160c7fda051c1ee58 /pkg/commands/git_commands/stash.go
parentde6d278e572f7f79a56323446306a2962487c024 (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.go8
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
+}
+