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

Method Less

context/remote.go:76–78  ·  view source on GitHub ↗
(i, j int)

Source from the content-addressed store, hash-verified

74func (r Remotes) Len() int { return len(r) }
75func (r Remotes) Swap(i, j int) { r[i], r[j] = r[j], r[i] }
76func (r Remotes) Less(i, j int) bool {
77 return remoteNameSortScore(r[i].Name) > remoteNameSortScore(r[j].Name)
78}
79
80// Remote represents a git remote mapped to a GitHub repository
81type Remote struct {

Callers

nothing calls this directly

Calls 1

remoteNameSortScoreFunction · 0.70

Tested by

no test coverage detected