Enum gix_discover::repository::Kind
source · pub enum Kind {
PossiblyBare,
WorkTree {
linked_git_dir: Option<PathBuf>,
},
WorkTreeGitDir {
work_dir: PathBuf,
},
Submodule {
git_dir: PathBuf,
},
SubmoduleGitDir,
}
Expand description
The kind of repository path.
Variants§
PossiblyBare
A bare repository does not have a work tree, that is files on disk beyond the git
repository itself.
Note that this is merely a guess at this point as we didn’t read the configuration yet.
Also note that due to optimizing for performance and just making an educated guess in some situations, we may consider a non-bare repository bare if it it doesn’t have an index yet due to be freshly initialized. The caller is has to handle this, typically by reading the configuration.
WorkTree
A git
repository along with checked out files in a work tree.
Fields
WorkTreeGitDir
A worktree’s git directory in the common.git
directory in worktrees/<name>
.
Submodule
The directory is a .git
dir file of a submodule worktree.
Fields
SubmoduleGitDir
The git directory in the .git/modules/**/<name>
directory tree of the parent repository
Implementations§
Trait Implementations§
source§impl Ord for Kind
impl Ord for Kind
source§impl PartialOrd for Kind
impl PartialOrd 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)