gix_discover

Function upwards

Source
pub fn upwards(directory: &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.