pub struct WtStatusState {Show 15 fields
pub merge_in_progress: bool,
pub rebase_interactive_in_progress: bool,
pub rebase_in_progress: bool,
pub rebase_branch: Option<String>,
pub rebase_onto: Option<String>,
pub am_in_progress: bool,
pub am_empty_patch: bool,
pub cherry_pick_in_progress: bool,
pub cherry_pick_head_oid: Option<ObjectId>,
pub revert_in_progress: bool,
pub revert_head_oid: Option<ObjectId>,
pub bisect_in_progress: bool,
pub bisecting_from: Option<String>,
pub detached_from: Option<String>,
pub detached_at: bool,
}Expand description
Snapshot of repository state used by git status long-format output (wt-status.c).
This mirrors Git’s struct wt_status_state closely enough for advice lines and
branch headers (merge, rebase, cherry-pick, revert, bisect, am, detached HEAD).
Fields§
§merge_in_progress: boolMERGE_HEAD exists (merge or merge+rebase).
rebase_interactive_in_progress: bool.git/rebase-merge/ exists and interactive is present.
rebase_in_progress: boolRebase without interactive marker (rebase-merge non-interactive or rebase-apply).
rebase_branch: Option<String>Display string for the branch being rebased (from head-name, may be absent).
rebase_onto: Option<String>Display string for the rebase onto commit (from onto, abbreviated OID or name).
am_in_progress: boolrebase-apply/applying exists.
am_empty_patch: boolEmpty patch in am session (rebase-apply/patch has size 0).
cherry_pick_in_progress: boolCHERRY_PICK_HEAD or sequencer pick without head.
cherry_pick_head_oid: Option<ObjectId>None means “in progress” without a specific commit (null OID / sequencer-only).
revert_in_progress: boolREVERT_HEAD or sequencer revert without head.
revert_head_oid: Option<ObjectId>§bisect_in_progress: boolBISECT_LOG exists (checked under common dir).
bisecting_from: Option<String>§detached_from: Option<String>Detached HEAD: human label (wt_status_get_detached_from).
detached_at: boolTrue when HEAD OID equals the detached tip OID.
Trait Implementations§
Source§impl Clone for WtStatusState
impl Clone for WtStatusState
Source§fn clone(&self) -> WtStatusState
fn clone(&self) -> WtStatusState
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more