pub struct Options {
pub infer_renames: bool,
pub rename_threshold: u8,
pub carry_extra_namespaces: Vec<String>,
}Expand description
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.
Fields§
§infer_renames: boolInfer renames from identical content and mark them Derived (RFC 004 D-3). Off by default.
When on, a delete+add of the same blob within one commit also emits a marked
Derived(InferredRename) hint — beside, never replacing, the literal delete+add. CLI flag
--infer-renames (handoff cli-and-verify-handoff-v2.md).
rename_threshold: u8The similarity percentage recorded as the rename parameter. M1 detects only exact-content moves,
so this is 100; it exists so the recorded parameter is explicit and future thresholds fit.
carry_extra_namespaces: Vec<String>Ref name prefixes to carry besides refs/heads/* and refs/tags/* (CR-05’s own namespace
policy, otherwise unchanged): each becomes an Other-kind IR ref, named by the part of the ref
name after the prefix, and contributes a walk tip like any other carried ref. Empty by
default, and not exposed on brygge’s CLI — this exists for RFC 019 D-6’s own check
(brygge encode git’s internal comparison and verify --against-target git), which needs to see
a commit reachable only from refs/brygge/other/* (a --branch-lines dead/earlier-life root) to
compare it, not to change what an ordinary decode git import carries. A prefix must end with
/, or it matches no ref (never silently widened to a substring match).
Implementations§
Trait Implementations§
impl Eq for Options
impl StructuralPartialEq for Options
Auto Trait Implementations§
impl Forget for Options
impl Freeze for Options
impl Move for Options
impl RefUnwindSafe for Options
impl Send for Options
impl Sync for Options
impl Unpin for Options
impl UnsafeUnpin for Options
impl UnwindSafe for Options
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.