git ls-files --others not leveraging core.untrackedCache

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thank you for filling out a Git bug report!
Please answer the following questions to help us understand your issue.

What did you do before the bug happened? (Steps to reproduce your issue)

`git ls-files '*.gitattributes'   --exclude-standard --others`

Calling `git ls-files` including untracked files is slow in
repositories with large untracked folders despite
`core.untrackedCache` being enabled.

What did you expect to happen? (Expected behavior)

Just like a repeated `git status` with `core.untrackedCache true`
takes no longer than .3s, a `git ls-files` should also leverage the
same cache.

What happened instead? (Actual behavior)

Calling `git ls-files` including untracked files is slow in
repositories with large untracked folders despite
`core.untrackedCache` being enabled.

What's different between what you expected and what actually happened?

4s for the above-mentioned `git ls-files ...` instead of .3s

Anything else you want to add:

No

Noticed during investigation of https://github.com/git-lfs/git-lfs/issues/5453

Please review the rest of the bug report below.
You can delete any lines you don't wish to share.


[System Info]
git version:
git version 2.37.1 (Apple Git-137.1)
cpu: arm64
no commit associated with this build
sizeof-long: 8
sizeof-size_t: 8
shell-path: /bin/sh
feature: fsmonitor--daemon
uname: Darwin 22.5.0 Darwin Kernel Version 22.5.0: Thu Jun  8 22:22:20
PDT 2023; root:xnu-8796.121.3~7/RELEASE_ARM64_T6000 arm64
compiler info: clang: 14.0.0 (clang-1400.0.29.202)
libc info: no libc information available
$SHELL (typically, interactive shell): /bin/zsh


[Enabled Hooks]
commit-msg
post-checkout
post-commit
post-merge
pre-commit
pre-push
prepare-commit-msg


-- 

Sebastian Silbermann



[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux