Function current_repo_canonical_name

Source
pub fn current_repo_canonical_name() -> Option<String>
Expand description

Returns the canonical name of the repository discovered from the current path.

Like current_repo_workdir_name, but resolves the repository’s canonical identity via canonical_repo_name (its origin remote name) rather than the ambient worktree basename. Returns None when no repository can be discovered.