Merge pull request #1980 from ajhynes7/stash-untracked-changes

This commit is contained in:
Jesse Duffield 2022-11-14 18:46:53 +11:00 committed by GitHub
commit b33ec5a050
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
47 changed files with 182 additions and 22 deletions

View file

@ -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 {