pub struct GitDir {
pub git_dir: PathBuf,
pub is_regular: bool,
}Expand description
Information about the git directory layout for a given repo path.
Fields§
§git_dir: PathBufThe absolute path to the actual git directory (.git for
regular repos, the repo path itself for bare repos).
is_regular: booltrue if this is a regular (non-bare) repository.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GitDir
impl RefUnwindSafe for GitDir
impl Send for GitDir
impl Sync for GitDir
impl Unpin for GitDir
impl UnsafeUnpin for GitDir
impl UnwindSafe for GitDir
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