pub struct GitFacts {
pub common_dir: Option<PathBuf>,
pub repository_source: Option<PathBuf>,
pub problem: Option<Problem>,
pub path: Option<PathBuf>,
pub branch: Option<String>,
pub dirty: bool,
pub conflicted: bool,
pub operation_in_progress: bool,
}Expand description
Current branch, worktree location and working-copy observations from Git.
Fields§
§common_dir: Option<PathBuf>Verified common Git storage, not the linked worktree administration.
repository_source: Option<PathBuf>Source location verified against the participant’s Git backing identity.
problem: Option<Problem>An observed condition can be known (such as absence) and still need a remedy.
path: Option<PathBuf>Worktree location reported by Git, when available.
branch: Option<String>Branch associated with the worktree, when known.
dirty: boolWhether the worktree has local changes.
conflicted: boolWhether Git reports unresolved conflicts.
operation_in_progress: boolWhether an unfinished repository operation was observed.
Auto Trait Implementations§
impl Forget for GitFacts
impl Freeze for GitFacts
impl Move for GitFacts
impl RefUnwindSafe for GitFacts
impl Send for GitFacts
impl Sync for GitFacts
impl Unpin for GitFacts
impl UnsafeUnpin for GitFacts
impl UnwindSafe for GitFacts
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