1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-06-27 00:51:18 +02:00

Ignore "i" command if the filename is .gitignore

This commit is contained in:
kobutomo
2020-10-05 23:59:35 +09:00
committed by Jesse Duffield
parent 76f7726c47
commit 26cb209af2

View File

@ -247,7 +247,7 @@ func (gui *Gui) handleStageAll(g *gocui.Gui, v *gocui.View) error {
func (gui *Gui) handleIgnoreFile(g *gocui.Gui, v *gocui.View) error {
file := gui.getSelectedFile()
if file == nil {
if file == nil || file.Name == ".gitignore" {
return nil
}