Skip to main content

Crate nornir_git

Crate nornir_git 

Source
Expand description

§nornir-git

Pure-Rust git helpers over gix (gitoxide) — the single home for git inspection and history rewriting so a tool never shells out to the git binary and never links libgit2/C. The airgap-clean git leaf lifted out of nornir (it depends on nothing but gix + anyhow, so it drags no warehouse / embedder / server deps behind it).

  • gitio — read-side inspection + the small write helpers (init, commit_all, tags, tree/blob walk, fetch).
  • gitclean — the pure-Rust analogue of git filter-repo --invert-paths --path <p>: remove one or more paths (e.g. a committed docs/book.pdf) from every commit’s history.

nornir re-exports both modules as nornir::gitio / nornir::gitclean, so its existing crate::gitio::… call sites resolve unchanged.

Modules§

gitclean
gitclean — pure-Rust git-history deep-clean over gix (gitoxide)
gitio
Pure-Rust git helpers (via gix). The single home for read-side git inspection so the rest of the crate never shells out to the git binary. No std::process::Command, no libgit2/C — matches nornir’s pure-Rust ethos (gix over libgit2, like ureq over curl).
ssh
Pure-Rust git-over-SSH (via russh) — no ssh subprocess, honoring nornir’s no-shellout rule (gix’s own SSH transport execs ssh, which is why crate::gitio refuses SSH and defers here).