pub struct GitState {
pub current_branch: String,
pub head_commit: String,
pub staged_files: Vec<String>,
pub modified_files: Vec<String>,
pub has_conflicts: bool,
}Expand description
Git repository state snapshot.
Fields§
§current_branch: StringCurrent branch name.
head_commit: StringHEAD commit hash.
staged_files: Vec<String>Files staged for commit.
modified_files: Vec<String>Modified but unstaged files.
has_conflicts: boolWhether there are merge conflicts.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for GitState
impl<'de> Deserialize<'de> for GitState
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 GitState
impl RefUnwindSafe for GitState
impl Send for GitState
impl Sync for GitState
impl Unpin for GitState
impl UnsafeUnpin for GitState
impl UnwindSafe for GitState
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