pub(super) enum GitOutput {
Ok(String),
Empty,
Failed,
Oversize,
}Expand description
Result of one git subprocess invocation. Callers treat all
failure variants the same way (collapse to NoRepo / zero
stats), but the variants are split so the log captures the right
context - Failed means non-zero exit with stderr that an
operator might need; Empty is a legitimate “ran fine, no
output” signal (the common case for status --porcelain on a
clean tree).
Variants§
Ok(String)
Empty
Exit 0, empty stdout (legitimate “no output to report” case).
Failed
Timeout, spawn error, interrupted, or non-zero exit. Logged
at DEBUG with stderr (truncated) inside run_git: a repo or a
network that will not answer is the environment’s state, every
caller degrades to a rendered “(scan failed)”, and the GIT
section is re-probed on the next tick.
Oversize
Stdout exceeded STDOUT_SIZE_CAP.
Auto Trait Implementations§
impl Freeze for GitOutput
impl RefUnwindSafe for GitOutput
impl Send for GitOutput
impl Sync for GitOutput
impl Unpin for GitOutput
impl UnsafeUnpin for GitOutput
impl UnwindSafe for GitOutput
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
Mutably borrows from an owned value. Read more