Skip to content

feat(host): add the git machinery for folder tracking - #14

Merged
lstocchi merged 1 commit into
redhat-developer:mainfrom
lstocchi:git-layer
Nov 21, 2026
Merged

lstocchi merged 1 commit into
redhat-developer:mainfrom
lstocchi:git-layer

Conversation

@lstocchi

Copy link
Copy Markdown
Collaborator

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)

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>
@lstocchi
lstocchi merged commit 1947364 into redhat-developer:main Nov 21, 2026
4 checks passed
@lstocchi
lstocchi deleted the git-layer branch November 21, 2026 09:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant