Microsoft/vscode

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

Offen

#157.839 geöffnet am 10.08.2022

 (2 Kommentare) (2 Reaktionen) (1 zugewiesene Person)TypeScript (39.847 Forks)batch import
feature-requestgithelp wantedteam-low-hanging

Repository-Metriken

Stars
 (184.936 Sterne)
PR-Merge-Metriken
 (PR-Metriken ausstehend)

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