Repository navigation
feat(tracked): write the create-time base refs - #19
Merged
Merged
Conversation
The driver that turns a scan into a base commit. `write_base_refs` groups the mappings by repository, refuses a label a foreign ref already uses (rolling back the refs this run created), and calls `write_repo_base` per repository. `write_repo_base` builds one fast-import stream: - a persistent check-ignore session answers each directory's children in one batch, with the parent tree's tracked-prefix guard and exact-path exemption; - carry-forward keeps paths the walk could not see (unreadable or oversized entries, failed filters, nested repositories, remaining host-incompatible names) from becoming deletions; - unrepresentable HEAD names are re-emitted with their raw bytes when git accepts them on this host, and reported otherwise; - the byte budget is charged by `stream_file`/`hash_object_route`; a typed `BudgetExceeded` aborts before `done`, while per-path filter failures are carried forward and grouped per driver. Notes for the ignored, never-in-tree and portability classes collapse to counts. Unit tests cover the auto-eol hard-link split and five crafted NUL names that must not abort the base. Assisted-by: Claude Code: GLM 5.3 Assisted-by: Claude Code: Opus 5.5 Signed-off-by: Luca Stocchi <lstocchi@redhat.com>
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.
The driver that turns a scan into a base commit.
write_base_refsgroups the mappings by repository, refuses a label a foreign ref already uses (rolling back the refs this run created), and callswrite_repo_baseper repository.write_repo_basebuilds one fast-import stream:stream_file/hash_object_route; a typedBudgetExceededaborts beforedone, while per-path filter failures are carried forward and grouped per driver.Notes for the ignored, never-in-tree and portability classes collapse to counts.
Unit tests cover the auto-eol hard-link split and five crafted NUL names that must not abort the base.
Assisted-by: Claude Code: GLM 5.3
Assisted-by: Claude Code: Opus 5.5