fn collect_branch_entries(
repo: &Repository,
default_branch: &str,
) -> Result<Vec<BranchEntry>>Expand description
Collect all local branches and assign output filenames.
The branch whose short name matches default_branch gets "index.html".
Every other branch gets "<sanitized-short-name>.html" where / is
replaced by -.
If no branch matches default_branch, the first branch (alphabetically)
receives "index.html" and a warning is emitted.