pub struct RepoStatus {
pub branch: String,
pub committed: bool,
pub all_commits_pushed: bool,
pub branches_have_remote: bool,
pub not_behind_remote: bool,
pub correct_branch: bool,
pub base: ResolvedBase,
pub rule: BranchRule,
pub problem: Option<String>,
}Expand description
Outcome of all five checks for one repo.
Fields§
§branch: String§committed: bool§all_commits_pushed: bool§branches_have_remote: bool§not_behind_remote: bool§correct_branch: bool§base: ResolvedBaseThe base branch used for the correct-branch check + how it was resolved.
When base.name is None (unresolved), correct_branch is forced false.
rule: BranchRuleWhich correct-branch rule applied (gkit.solo selects it). Surfaced in
verbose only when BranchRule::Solo (the non-default rule).
problem: Option<String>Set when the path couldn’t be checked at all (missing dir / not a git
repo). When present, the gate FAILS and problem is shown in place of the
checks — otherwise a non-repo would pass every check vacuously (empty git
output reads as “nothing pending”).
Implementations§
Source§impl RepoStatus
impl RepoStatus
Trait Implementations§
Source§impl Clone for RepoStatus
impl Clone for RepoStatus
Source§fn clone(&self) -> RepoStatus
fn clone(&self) -> RepoStatus
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for RepoStatus
impl RefUnwindSafe for RepoStatus
impl Send for RepoStatus
impl Sync for RepoStatus
impl Unpin for RepoStatus
impl UnsafeUnpin for RepoStatus
impl UnwindSafe for RepoStatus
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