mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-05-11 04:15:48 +02:00
Discard staged changes only
This commit is contained in:
parent
f7c44f2407
commit
ca191159f5
36 changed files with 102 additions and 1 deletions
|
@ -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()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue