Documentation
¶
Index ¶
- func GetBranchReflogLines(name string, prettyFmt string) ([]string, error)
- func GetGitReflogLines(prettyFmt string) ([]string, error)
- func ShowActive()
- func SliceContainsBranchCommitData(slice []*BranchCheckoutInfo, info *BranchCheckoutInfo) bool
- type BranchActivity
- type BranchCheckoutInfo
- type BranchInfo
- type RefLogItem
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetBranchReflogLines ¶
func GetGitReflogLines ¶
func ShowActive ¶ added in v0.5.0
func ShowActive()
func SliceContainsBranchCommitData ¶
func SliceContainsBranchCommitData(slice []*BranchCheckoutInfo, info *BranchCheckoutInfo) bool
Types ¶
type BranchActivity ¶ added in v0.5.0
type BranchActivity struct {
Name string
IsRemote bool
CommitCount int
LatestCommit string
LatestCommitAt time.Time
}
BranchActivity represents a branch and its commit count in the last 48 hours
func GetActiveBranches ¶ added in v0.5.0
func GetActiveBranches(repoPath string) ([]BranchActivity, error)
GetActiveBranches returns a slice of BranchActivity sorted by commit count in descending order
type BranchCheckoutInfo ¶
func GetBranchInfoFromReflogLine ¶
func GetBranchInfoFromReflogLine(pattern *regexp.Regexp, reflogLine string, minMatchCount int) *BranchCheckoutInfo
type BranchInfo ¶
type BranchInfo struct {
Name string
CheckoutCount int
CommitCount int
CheckoutHistory []*BranchCheckoutInfo
CheckedOutLast time.Time
Score float64
}
func (*BranchInfo) Update ¶
func (b *BranchInfo) Update()
func (*BranchInfo) UpdateCheckoutCount ¶
func (b *BranchInfo) UpdateCheckoutCount()
func (*BranchInfo) UpdateScore ¶
func (b *BranchInfo) UpdateScore()
type RefLogItem ¶
type RefLogItem struct {
BranchName string
CommitHash string
AuthorName string
AuthorEmail string
Timestamp time.Time
Action string
Message string
}
func GetRefLogItemsForBranch ¶
func GetRefLogItemsForBranch(branchName string) ([]*RefLogItem, error)
Click to show internal directories.
Click to hide internal directories.