Microsoft/vscode

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

Open

#157.839 aperta il 10 ago 2022

Vedi su GitHub
 (2 commenti) (2 reazioni) (1 assegnatario)TypeScript (10.221 fork)batch import
feature-requestgithelp wantedteam-low-hanging

Metriche repository

Star
 (74.848 star)
Metriche merge PR
 (Merge medio 11h 43m) (1000 PR mergiate in 30 g)

Descrizione

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.

Guida contributor