Microsoft/vscode

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

Open

#157.839 aberto em 10 de ago. de 2022

Ver no GitHub
 (2 comments) (2 reactions) (1 assignee)TypeScript (10.221 forks)batch import
feature-requestgithelp wantedteam-low-hanging

Métricas do repositório

Stars
 (74.848 stars)
Métricas de merge de PR
 (Mesclagem média 11h 43m) (1.000 fundiu PRs em 30d)

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.

Guia do colaborador