Function built::util::get_repo_description
[−]
[src]
pub fn get_repo_description<P: AsRef<Path>>(
root: P
) -> Result<Option<String>, Error>
Retrieves the git-tag or hash describing the exact version.
If a valid git-repo can't be discovered at or above the given path,
Ok(None)
is returned instead of an Err
-value.
Errors
Errors from git2
are returned if the repository does exists at all.