Skip to content

Source control integration ignores files staged with git add -N #42665

@vimkat

Description

@vimkat
  • VSCode Version: Code 1.19.3 (7c4205b, 2018-01-25T10:25:01.248Z)
  • OS Version: Darwin x64 17.3.0
  • Extensions:
Extension Author (truncated) Version
EditorConfig Edi 0.12.0
quokka-vscode Wal 1.0.94
gitlens eam 7.5.9
debugger-for-chrome msj 4.1.0
color-highlight nau 2.3.0
sass-indented rob 1.4.6
vim vsc 0.10.13

Steps to Reproduce:

  1. Stage a new file unknown to git using git add -N <filename>
  2. Take a look at the "Source Control" and/or "Explorer" panel

Reproduces without extensions: Yes


Hey everyone,
I just noticed that if I stage a previously unknown file using git add -N <filename> to make it known to git so I can partially stage the content, VSCode assumes it's "unchanged" (disappears from the file list in the "Source Control" panel and doesn't get coloured in the "Explorer" panel). It doesn't really affect the overall experience using VSCode but I just wanted to let you know.
Thanks!

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable buggitGIT issueshelp wantedIssues identified as good community contribution opportunitiesverifiedVerification succeeded

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions