pub struct WorktreePatchCommitOptions {
pub prefer_text_edits: bool,
pub active_patch_limit: usize,
}Expand description
Options for authoring a node-addressed patch from worktree changes.
Fields§
§prefer_text_edits: boolRetained for API compatibility. Existing-node NodeKind is now authoritative for the
modified-file mapping (text files author EditText, binary files author ReplaceBinary),
so this flag no longer drives kind selection and is a no-op.
active_patch_limit: usizeDC-57 (NFR-PERF-02): the active-patch count — the active WAL’s record count, the one
definition every authoring path uses — must be strictly less than this before author_inner
does anything else. Defaults to DEFAULT_ACTIVE_PATCH_LIMIT; the CLI overrides it from
PRIKK_ACTIVE_PATCH_LIMIT, failing closed on a malformed value rather than silently keeping
the default.
Implementations§
Source§impl WorktreePatchCommitOptions
impl WorktreePatchCommitOptions
Sourcepub const fn file_level() -> Self
pub const fn file_level() -> Self
Default options (kind-driven mapping; prefer_text_edits is a no-op, see the field).
Sourcepub const fn prefer_text_edits() -> Self
pub const fn prefer_text_edits() -> Self
Options with prefer_text_edits set; retained for API compatibility (no-op, see the field).
Sourcepub const fn with_active_patch_limit(self, limit: usize) -> Self
pub const fn with_active_patch_limit(self, limit: usize) -> Self
Override the active-patch hard-block limit (DC-57). The CLI calls this with a value parsed
from PRIKK_ACTIVE_PATCH_LIMIT; everything else keeps the default.
Trait Implementations§
Source§impl Clone for WorktreePatchCommitOptions
impl Clone for WorktreePatchCommitOptions
Source§fn clone(&self) -> WorktreePatchCommitOptions
fn clone(&self) -> WorktreePatchCommitOptions
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more