Function git_discover::upwards

source ·
pub fn upwards(directory: impl AsRef<Path>) -> 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 the trust level derived from Path ownership.

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