Function git_discover::upwards_opts

source ·
pub fn upwards_opts(
    directory: impl AsRef<Path>,
    _: Options<'_>
) -> Result<(Path, Trust), Error>
Expand description

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.

Fail if no valid-looking git repository could be found.

Examples found in repository?
src/upwards/mod.rs (line 174)
173
174
175
    pub fn discover(directory: impl AsRef<Path>) -> Result<(crate::repository::Path, Trust), Error> {
        discover_opts(directory, Default::default())
    }