Module git_repository::discover
source · Expand description
Modules
Enums
The error returned by
crate::discover().Constants
The name of the
.git directory.The name of the
modules sub-directory within a .git directory for keeping submodule checkouts.Functions
Returns true if the given
git_dir seems to be a bare repository.What constitutes a valid git repository, returning the guessed repository kind
purely based on the presence of files. Note that the git-config ultimately decides what’s bare.
Returns true if
git_dir is is located within a .git/modules directory, indicating it’s a submodule clone.Find the location of the git repository directly in
directory or in any of its parent directories, and provide
the trust level derived from Path ownership.Find the location of the git repository directly in
directory or in any of its parent directories and provide
an associated Trust level by looking at the git directory’s ownership, and control discovery using options.