mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-05-15 22:26:40 +02:00
fix: add condition to if statement
This commit is contained in:
parent
7ddb80a13e
commit
c7fd218308
@ -833,7 +833,7 @@ func (self *FilesController) toggleTreeView() error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (self *FilesController) handleStashSave(stashFunc func(message string) error, action string, errorMsg string) error {
|
func (self *FilesController) handleStashSave(stashFunc func(message string) error, action string, errorMsg string) error {
|
||||||
if !self.helpers.WorkingTree.IsWorkingTreeDirty() {
|
if action != self.c.Tr.Actions.StashIncludeUntrackedChanges && !self.helpers.WorkingTree.IsWorkingTreeDirty() {
|
||||||
return self.c.ErrorMsg(errorMsg)
|
return self.c.ErrorMsg(errorMsg)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user