MCPcopy
hub / github.com/github/git-sizer / RefGrouper

Interface RefGrouper

sizes/graph.go:40–50  ·  view source on GitHub ↗

RefGrouper describes a type that can collate reference names into groups and decide which ones to walk.

Source from the content-addressed store, hash-verified

38// RefGrouper describes a type that can collate reference names into
39// groups and decide which ones to walk.
40type RefGrouper interface {
41 // Categorize tells whether `refname` should be walked at all,
42 // and if so, the symbols of the reference groups to which it
43 // belongs.
44 Categorize(refname string) (bool, []RefGroupSymbol)
45
46 // Groups returns the list of `ReferenceGroup`s, in the order
47 // that they should be presented. The return value might
48 // depend on which references have been seen so far.
49 Groups() []RefGroup
50}
51
52type refSeen struct {
53 git.Reference

Callers 3

ScanRepositoryUsingGraphFunction · 0.65
CategorizeMethod · 0.65
mainImplementationFunction · 0.65

Implementers 2

refGroupergit_sizer_test.go
refGrouperinternal/refopts/ref_group_builder.go

Calls

no outgoing calls

Tested by

no test coverage detected