Repository navigation
Conversation
After a failed fsmonitor query or a trivial response, "git status" can report both an untracked directory and a directory below it, for example "?? three/" and "?? three/deep/". 1cf98cb (fsmonitor: check the untracked cache after a trivial response, 2026-11-09) added a stat check before writing the untracked cache alongside a new fsmonitor token after these responses. The check invalidates stale directories, but does not propagate the invalidation to their parents. In normal mode, a parent's cached untracked list can contain "three/" from a check-only scan of the child. Writing the invalid child clears its check_only flag. The next cached walk then recurses into the child and reports "three/deep/", while the parent's list still reports "three/". Invalidate ancestors too when DIR_SHOW_OTHER_DIRECTORIES is set, as invalidate_one_component() does. Leave all-files mode unchanged and reuse the existing traversal without adding stat calls. Add normal-mode regression tests for failed queries and trivial responses. Use fixed directory mtimes and force an index write without scanning untracked files. Signed-off-by: Maik Riechert <letmaik@outlook.com>
Author
|
/preview |
|
Preview email sent as pull.2321.git.1795152204345.gitgitgadget@gmail.com |
Author
|
/submit |
|
Submitted as pull.2321.git.1795152783221.gitgitgadget@gmail.com To fetch this version into To fetch this version to local tag |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
CC: Ilia K ki.stfu@gmail.com, Derrick Stolee stolee@gmail.com, Junio C Hamano gitster@pobox.com