Enum gix::repository::Kind
source · pub enum Kind {
Submodule,
Bare,
WorkTree {
is_linked: bool,
},
}
Expand description
The kind of repository.
Variants§
Submodule
A submodule worktree, whose git
repository lives in .git/modules/**/<name>
of the parent repository.
Note that ‘old-form’ submodule will register as Worktree {is_linked: false}
.
Bare
A bare repository does not have a work tree, that is files on disk beyond the git
repository itself.
WorkTree
A git
repository along with a checked out files in a work tree.
Implementations§
Trait Implementations§
source§impl Ord for Kind
impl Ord for Kind
source§impl PartialEq for Kind
impl PartialEq for Kind
source§impl PartialOrd for Kind
impl PartialOrd for Kind
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for Kind
impl Eq for Kind
impl StructuralPartialEq for Kind
Auto Trait Implementations§
impl Freeze for Kind
impl RefUnwindSafe for Kind
impl Send for Kind
impl Sync for Kind
impl Unpin for Kind
impl UnwindSafe for Kind
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