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

Function NewShowRefGrouper

internal/refopts/show_ref_grouper.go:19–24  ·  view source on GitHub ↗

Return a `sizes.RefGrouper` that wraps its argument and behaves like it except that it also logs its decisions to an `io.Writer`.

(rg sizes.RefGrouper, w io.Writer)

Source from the content-addressed store, hash-verified

17// Return a `sizes.RefGrouper` that wraps its argument and behaves
18// like it except that it also logs its decisions to an `io.Writer`.
19func NewShowRefGrouper(rg sizes.RefGrouper, w io.Writer) sizes.RefGrouper {
20 return showRefGrouper{
21 RefGrouper: rg,
22 w: w,
23 }
24}
25
26func (rg showRefGrouper) Categorize(refname string) (bool, []sizes.RefGroupSymbol) {
27 walk, symbols := rg.RefGrouper.Categorize(refname)

Callers 1

mainImplementationFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected