1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-06-15 00:15:32 +02:00

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