pub fn default_branch_name() -> Result<String>Expand description
Get the default branch name (e.g. “main” or “master”), without the remote prefix.
Prefers the remote’s default branch; falls back to a local main/master
for repositories without a configured origin. This is the single source of
truth for “the trunk branch”, replacing scattered hardcoded “main” literals.