pub fn canonical_repo_name(repo: &Repository) -> Option<String>Expand description
Returns the repository’s canonical identity for exclusion matching.
The name is taken from the origin remote URL (see repo_name_from_url),
which is stable across every worktree of the same repository — so a single
exclude entry covers a repo no matter what its worktree directories are
named. Falls back to the working-directory basename (repo_workdir_name)
when there is no usable origin remote (e.g. a local-only repository).