Versions in this module Expand all Collapse all v0 v0.5.0 Nov 15, 2024 Changes in this version + func ShowActive() + type BranchActivity struct + CommitCount int + IsRemote bool + LatestCommit string + LatestCommitAt time.Time + Name string + func GetActiveBranches(repoPath string) ([]BranchActivity, error) v0.4.0 Nov 14, 2024 Changes in this version + func GetBranchReflogLines(name string, prettyFmt string) ([]string, error) + func GetGitReflogLines(prettyFmt string) ([]string, error) + func SliceContainsBranchCommitData(slice []*BranchCheckoutInfo, info *BranchCheckoutInfo) bool + type BranchCheckoutInfo struct + BranchName string + RelativeTime string + Timestamp time.Time + func GetBranchInfoFromReflogLine(pattern *regexp.Regexp, reflogLine string, minMatchCount int) *BranchCheckoutInfo + type BranchInfo struct + CheckedOutLast time.Time + CheckoutCount int + CheckoutHistory []*BranchCheckoutInfo + CommitCount int + Name string + Score float64 + func (b *BranchInfo) Update() + func (b *BranchInfo) UpdateCheckoutCount() + func (b *BranchInfo) UpdateScore() + type RefLogItem struct + Action string + AuthorEmail string + AuthorName string + BranchName string + CommitHash string + Message string + Timestamp time.Time + func GetRefLogItemsForBranch(branchName string) ([]*RefLogItem, error)