From: Ajith Sakharia <ajithk.sakharia@gmail.com>
To: git@vger.kernel.org
Subject: Usage of `-u` flag in `git status` cli
Date: Fri, 28 Jun 2024 09:51:04 +0530 [thread overview]
Message-ID: <CA+8M_AZTtqSU7ugZ-w8yyOKeP+opambD08DSOGko8akL_CXQqQ@mail.gmail.com> (raw)
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
reply other threads:[~2024-06-28 4:21 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CA+8M_AZTtqSU7ugZ-w8yyOKeP+opambD08DSOGko8akL_CXQqQ@mail.gmail.com \
--to=ajithk.sakharia@gmail.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).