* Usage of `-u` flag in `git status` cli
@ 2024-06-28 4:21 Ajith Sakharia
0 siblings, 0 replies; only message in thread
From: Ajith Sakharia @ 2024-06-28 4:21 UTC (permalink / raw)
To: git
Hello,
I have recently been working on some performance initiatives on git
status cli and its usages. As a result I found something confusing and
wanted a confirmation on the expected behaviour.
Based on documentation the status cli has a `-u/--untracked-files flag
with 3 potential values `no` `normal` and `all`. The `true`is expected
to be treated as `normal`. But from my experiments it looks like there
is a difference in `git status --untracked-files` vs `git status
--untracked-files=true` (notice the existence of `true` being
explicitly mentioned), where the `git status --untracked-files` gets
treated as `git status --untracked-files=all` as suppose to `normal`.
Additionally, `--untracked-files=all` doesn't seem to use the benefits
of `fsmonitor` and `untracked cache`. From some additional
investigations the impact seems to also scale to git plugins across
tooling like vscode, warp etc that use the `-u` flag as part of their
syncing logic.
Could you please help me understand if this is expected ?
Regards,
Ajith K S
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-06-28 4:21 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-28 4:21 Usage of `-u` flag in `git status` cli Ajith Sakharia
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).