Microsoft/vscode

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

Open

#157 839 ouverte le 10 août 2022

Voir sur GitHub
 (2 commentaires) (2 réactions) (1 assigné)TypeScript (10 221 forks)batch import
feature-requestgithelp wantedteam-low-hanging

Métriques du dépôt

Stars
 (74 848 stars)
Métriques de merge PR
 (Merge moyen 11h 43m) (1 000 PRs mergées en 30 j)

Description

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.

Guide contributeur