pub async fn detect_default_branch(project_dir: &Path) -> StringExpand description
Detect the default branch of a repository.
Tries multiple strategies and normalizes the result so callers always
receive a clean branch name like "main", never a raw ref path.