pub fn detect_default_branch(repo: Option<&Path>) -> StringExpand description
Auto-detect the repository’s default branch.
Priority:
origin/HEADsymref (most reliable — set bygit clone)- Local
mainbranch exists - Local
masterbranch exists - Config fallback