Repository navigation
feat(host): add the git machinery for folder tracking - #14
Merged
Merged
Conversation
Adds `host::git`, a standalone git layer which will be used by following commits to track folder. It laid out as `src/host/git/` with one file per seam: * repository discovery and command hygiene (`mod.rs`, `repo.rs` — LC_ALL=C, env scrubbing, exit-code checks instead of stderr) * the persistent `check-ignore` session (`check_ignore.rs`) * batched `check-attr` queries and the conversion-route rules (`attrs.rs`) * the `cat-file` and `hash-object` routes (`objects.rs`) * the `ExactLen` framing writer that keeps fast-import lengths honest (`exact_len.rs`) * git's binary and eol rules including the bounded spool (`text.rs`) * the `git fast-import` writer (`fast_import.rs`) Assisted-by: Claude Code: GLM 5.3 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.
Adds
host::git, a standalone git layer which will be used by following commits to track folder. It laid out assrc/host/git/with one file per seam:mod.rs,repo.rs— LC_ALL=C, env scrubbing, exit-code checks instead of stderr)check-ignoresession (check_ignore.rs)check-attrqueries and the conversion-route rules (attrs.rs)cat-fileandhash-objectroutes (objects.rs)ExactLenframing writer that keeps fast-import lengths honest (exact_len.rs)text.rs)git fast-importwriter (fast_import.rs)