1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2024-11-26 09:00:57 +02:00
This commit is contained in:
Jesse Duffield 2018-08-07 21:35:30 +10:00
commit 4d425de5d0

View File

@ -100,7 +100,7 @@ func handleFileRemove(g *gocui.Gui, v *gocui.View) error {
func handleIgnoreFile(g *gocui.Gui, v *gocui.View) error {
file, err := getSelectedFile(g)
if err != nil {
return err
return createErrorPanel(g, err.Error())
}
if file.Tracked {
return createErrorPanel(g, "Cannot ignore tracked files")