Skip to main content

Crate brygge_decode_git

Crate brygge_decode_git 

Source
Expand description

brygge’s Git source decoder (RFC 004): read a local Git object database and produce a brygge_ir::Ir — content, ancestry, and messages carried faithfully as claims, entirely Stated except opt-in, explicitly-marked Derived rename hints (which never replace the literal delete+create Git recorded).

This is the only crate that links gix (RFC 009 D-1): brygge_ir, the encoders, and the internal-verify path link none of it, so a target checks a brygge import on its own surface. gix is used with no network feature (INV-3) and the decoder executes no source-provided code — no hooks, filters/smudge, or submodule fetch (RFC 009 D-4). Output is byte-deterministic for the same repository + brygge version + options (VF-1), independent of physical packing.

let ir = brygge_decode_git::decode(
    std::path::Path::new("/path/to/repo/.git"),
    &brygge_decode_git::Options::default(),
)?;
println!("{}", brygge_ir::honesty::summary(&ir).render_human());

Public API (CR-20, minimal by design): decode, Options, Error, and decoder_version — everything a caller needs and nothing else; the gix-facing internals stay crate-private.

Structs§

Options
How the decoder should behave. The defaults are the maximally-honest ones: no rename inference (RFC 004 D-3), so a default import is entirely source-Stated.

Enums§

Error
Everything the Git decoder can fail with. A refused source feature is a typed outcome (Error::FloorRefusal), not a panic and not an approximation (FA-3).

Functions§

decode
Decode the Git repository at path into an Ir under opts.
decoder_version
The decoder id and version recorded into IR provenance (PR-6) and every derivation (HO-1).