Repository navigation
Allow the apply lock owner and its descendants to create placeholders - #2210
Draft
Tyrie Vella (tyrielv) wants to merge 1 commit into
Draft
Tyrie Vella (tyrielv) wants to merge 1 commit into
Tyrie Vella (tyrielv) wants to merge 1 commit into
Conversation
Reuse identity-validated ancestry for apply placeholder admission and queued creation leases. Return a transient error for denied apply requests so ProjFS does not cache false absence for the lock owner. Preserve the existing policies for other Git commands and the zero default wait budget. Add unit tests for process-family admission, unknown identities, owner replacement, and queued rechecks. Add functional tests for plain apply, real child hooks, overlapping readers, and patch parity with a normal Git repository. Assisted-by: GPT-6.1 Sol Signed-off-by: Tyrie Vella <[email protected]>
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.
Problem and Context
Plain
git applyfails withNo such file or directoryfor a tracked file that remains fully virtual. GVFS rejects placeholder creation under the apply lock, including requests from the Git process that owns the lock.A command-wide exemption also permits unrelated processes to create placeholders during patch writes. A requester-specific exemption must avoid another failure: ProjFS caches
FileNotFoundby path, so an unrelated reader can hide the file from Git.This change fixes placeholder admission for worktree-only apply. Separate Git defects in
--index,--3way, and--cachedremain outside this change.Changes
STATUS_FILE_NOT_AVAILABLEfor apply-specific denials, including unknown ancestry, so these requests do not cache false absence. Keep the default wait budget at zero.