Microsoft/vscode

Git - "Add to gitignore" should add to closest gitignore file, not root one.

Open

#157.839 geöffnet am 10. Aug. 2022

Auf GitHub ansehen
 (2 Kommentare) (2 Reaktionen) (1 zugewiesene Person)TypeScript (10.221 Forks)batch import
feature-requestgithelp wantedteam-low-hanging

Repository-Metriken

Stars
 (74.848 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 11h 43m) (1.000 gemergte PRs in 30 T)

Beschreibung

The "Add to gitignore" command on the Source Control panel adds the file/folder to the root .gitignore file in the repository, regardless of whether there is a closer .gitignore file present in the directory or a parent.

I think there should be the option to choose the closest .gitignore file in the file hierarchy, or add all to the root gitignore file.

Contributor Guide