1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-07-30 03:23:08 +03:00

Merge pull request #1930 from mark2185/feature/discard-staged-only

This commit is contained in:
Jesse Duffield
2022-05-15 20:33:25 +10:00
committed by GitHub
36 changed files with 104 additions and 1 deletions

View File

@ -25,6 +25,10 @@ func NewStashCommands(
}
}
func (self *StashCommands) DropNewest() error {
return self.cmd.New("git stash drop").Run()
}
func (self *StashCommands) Drop(index int) error {
return self.cmd.New(fmt.Sprintf("git stash drop stash@{%d}", index)).Run()
}