Microsoft/vscode

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

開放

#157,839 建立於 2022年8月10日

 (2 則留言) (2 個反應) (1 位負責人)TypeScript (39,847 個分叉)batch import
feature-requestgithelp wantedteam-low-hanging

倉庫指標

星標
 (184,936 顆星)
PR 合併指標
 (平均合併 11小時 43分鐘) (30 天內合併 1,000 個 PR)

描述

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.

貢獻者指南