diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2022-11-14 18:46:53 +1100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-14 18:46:53 +1100 |
commit | b33ec5a05025a2755f4511f042e9e0fcb224bf47 (patch) | |
tree | 3691e0dc706186a2ef818dd28dbc85a90db3d01b /pkg/commands/git_commands | |
parent | fbfec75a996ee5a0190629d8b43cf299bb31c260 (diff) | |
parent | 684d1e955e00847249c6543f33a65abe1a16746b (diff) |
Merge pull request #1980 from ajhynes7/stash-untracked-changes
Diffstat (limited to 'pkg/commands/git_commands')
-rw-r--r-- | pkg/commands/git_commands/stash.go | 4 |
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 { |