RefGrouper describes a type that can collate reference names into groups and decide which ones to walk.
| 38 | // RefGrouper describes a type that can collate reference names into |
| 39 | // groups and decide which ones to walk. |
| 40 | type 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 | |
| 52 | type refSeen struct { |
| 53 | git.Reference |
no outgoing calls
no test coverage detected