pub struct VcsState {
pub namespace: String,
pub current_branch: Option<String>,
pub last_committed_id: Option<SnapshotId>,
}Expand description
Per-namespace VCS state.
The dirty flag was removed per ADR-020 §7: “There is no dirty flag. The
diff is computed fresh on every invocation.” Use khive kg status (DB vs
NDJSON diff) to determine uncommitted changes.
Fields§
§namespace: String§current_branch: Option<String>Name of the currently active branch. None in detached HEAD state.
last_committed_id: Option<SnapshotId>Last committed snapshot ID. None if no commit has been made.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for VcsState
impl<'de> Deserialize<'de> for VcsState
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for VcsState
impl RefUnwindSafe for VcsState
impl Send for VcsState
impl Sync for VcsState
impl Unpin for VcsState
impl UnsafeUnpin for VcsState
impl UnwindSafe for VcsState
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