git/list[1] front-page[2] threads[3] people[4] search[5] about
 

behaviour of untracked files cache in git stable 2.36.1 verison on mac

From
PGPiyush Gaikwad <piyushgaikwad321@gmail.com>
Date
Jun 10, 2022, 02:52 UTC
Message-ID
<CABsvAmr0-1eLQeCR-hhz_CObOS2bgjRf7v+YG5BOY8h5nn+2kQ@mail.gmail.com>
Hello all,

I am currently on Mac. In Git 2.35.1, when I cloned my repository, it took 7 seconds to enumerate the untracked files and when I did time git status, it took approximately 2 seconds. And, when I checkout to another branch it took approximately 15 seconds and when I checkout back to my main repo git status took 15 seconds (which should not take this much time). Work-around for this in (2.35.1) was: I set core.untrackedcache=true and GIT_FORCE_UNTRACKEDCACHE=1 which helped to update the untrackedcache and improve the performance of git status of (approximately 4 seconds).

But now in Git 2.36.1, this work-around doesn't seem to work. It takes approximately 20 seconds on all branches.

Possible changes in the code: In Git 2.35.1, code in dir.c: GIT_FORCE_UNTRACKED_CACHE,0 and the same in Git 2.36.1, code in dir.c:GIT_FORCE_UNTRACKED_CACHE, -1

Is this code change which made the git config variables unfit for the current stable version or is it something else? How can I solve this untracked files cache performance issue; is there any workaround?

Message 1 of 1 in “behaviour of untracked files cache in git stable 2.36.1 verison on mac”
  1. Piyush GaikwadJun 10, 2022

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.