mirror of
https://github.com/jesseduffield/lazygit.git
synced 2026-09-10 23:56:24 -04:00
477 Remove duplicate checkout
We already checout the file calling `c.DiscardUnstagedFileChanges`
This commit is contained in:
parent
212327d746
commit
823b436b53
|
|
@ -476,11 +476,6 @@ func (c *GitCommand) DiscardAllFileChanges(file *File) error {
|
|||
return err
|
||||
}
|
||||
}
|
||||
if file.HasMergeConflicts || file.HasInlineMergeConflicts {
|
||||
if err := c.OSCommand.RunCommand(fmt.Sprintf("git checkout -- %s", quotedFileName)); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
|
||||
if !file.Tracked {
|
||||
return c.removeFile(file.Name)
|
||||
|
|
|
|||
Loading…
Reference in a new issue