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

Method Swap

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

Source from the content-addressed store, hash-verified

10
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}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected