To demonstrate, I created a new git project with a new subdirectory called
new-dir
. Inside of new-dir
, I created 3 files.
When I run
git status
on the command line without any parameters, it collapses new directories into single entries.
By examining the git output in VSCode, I see now that it is running the command
git status -z -u
. The -z
just terminates each entry in the list with a NUL instead of LF presumably for better parsing. The -u
lists out each untracked file individually. And this makes sense because in the source control window of VSCode, you want to be able to see the diff of each file individually.