Skip to main content

build_ref_labels

Function build_ref_labels 

Source
fn build_ref_labels(
    repo: &Repository,
    include: &GlobSet,
    exclude: &GlobSet,
) -> Result<HashMap<String, Vec<RefBadge>>>
Expand description

Build a map from commit hash (hex string) to the ref badges pointing at it. Tags come before branches within each entry; both are sorted alphabetically.

Refs that don’t pass git_ui.include/exclude (see ref_is_included) are omitted.