summaryrefslogtreecommitdiffstats
path: root/pkg/commands/git_commands/stash.go
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2022-11-14 18:46:53 +1100
committerGitHub <noreply@github.com>2022-11-14 18:46:53 +1100
commitb33ec5a05025a2755f4511f042e9e0fcb224bf47 (patch)
tree3691e0dc706186a2ef818dd28dbc85a90db3d01b /pkg/commands/git_commands/stash.go
parentfbfec75a996ee5a0190629d8b43cf299bb31c260 (diff)
parent684d1e955e00847249c6543f33a65abe1a16746b (diff)
Merge pull request #1980 from ajhynes7/stash-untracked-changes
Diffstat (limited to 'pkg/commands/git_commands/stash.go')
-rw-r--r--pkg/commands/git_commands/stash.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/pkg/commands/git_commands/stash.go b/pkg/commands/git_commands/stash.go
index eddf676ff..572a87a73 100644
--- a/pkg/commands/git_commands/stash.go
+++ b/pkg/commands/git_commands/stash.go
@@ -123,6 +123,10 @@ func (self *StashCommands) SaveStagedChanges(message string) error {
return nil
}
+func (self *StashCommands) StashIncludeUntrackedChanges(message string) error {
+ return self.cmd.New(fmt.Sprintf("git stash save %s --include-untracked", self.cmd.Quote(message))).Run()
+}
+
func (self *StashCommands) Rename(index int, message string) error {
sha, err := self.Sha(index)
if err != nil {