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:
@ -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
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user