Microsoft/vscode

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

Open

#157,839 创建于 2022年8月10日

在 GitHub 查看
 (2 评论) (2 反应) (1 负责人)TypeScript (74,848 star) (10,221 fork)batch import
feature-requestgithelp wantedteam-low-hanging

描述

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.

贡献者指南