Versions in this module Expand all Collapse all v1 v1.1.0 Apr 19, 2026 v1.0.0 Apr 18, 2026 Changes in this version + func BatchDeleteRemoteBranches(ctx context.Context, repoPath string, names []string) error + func CloneForAnalysis(ctx context.Context, url, destDir string) error + func CurrentBranch(ctx context.Context, repoPath string) string + func DeleteLocalBranch(ctx context.Context, repoPath string, b Branch) error + func EnrichAuthors(ctx context.Context, repoPath string, branches []Branch) + func RemoteURL(ctx context.Context, repoPath string) string + func ValidateRepo(ctx context.Context, repoPath string) error + func ValidateSortField(s string) error + func VerifyMerged(ctx context.Context, repoPath string, b Branch, fpc *FirstParentCache) error + type Branch struct + AgeDays int + Author string + IsRemote bool + LastCommit time.Time + MergedInto string + Name string + RelativeAge string + SHA string + func FilterByAge(branches []Branch, olderThanDays int) []Branch + func FilterByExcludeMergedInto(branches []Branch, patterns []string) ([]Branch, error) + func FilterByTierHierarchy(branches []Branch, tiers [][]string) []Branch + func FilterProtected(branches []Branch, protected []string) []Branch + func MergedBranches(ctx context.Context, repoPath, targetBranch string, includeRemote bool, ...) ([]Branch, error) + func MergedBranchesAnywhere(ctx context.Context, repoPath string, includeRemote bool, sortBy SortField) ([]Branch, error) + type FirstParentCache = firstParentCache + func NewFirstParentCache() *FirstParentCache + type SortField string + const SortByAge + const SortByName