MCPcopy Create free account
hub / github.com/cli/cli / Less

Method Less

git/objects.go:13–15  ·  view source on GitHub ↗
(i, j int)

Source from the content-addressed store, hash-verified

11func (r RemoteSet) Len() int { return len(r) }
12func (r RemoteSet) Swap(i, j int) { r[i], r[j] = r[j], r[i] }
13func (r RemoteSet) Less(i, j int) bool {
14 return remoteNameSortScore(r[i].Name) > remoteNameSortScore(r[j].Name)
15}
16
17func remoteNameSortScore(name string) int {
18 switch strings.ToLower(name) {

Callers 2

TestCmdGitFunction · 0.45

Calls 1

remoteNameSortScoreFunction · 0.70

Tested by 2

TestCmdGitFunction · 0.36