pub fn get_default_branch_name(
repo: &Repository,
remote: Option<Remote<'_>>,
) -> Result<String>Expand description
Convenience wrapper around DefaultBranch.
Queries the remote for its default branch if one is provided, otherwise
falls back to init.defaultbranch config (defaulting to "main").