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

Function mapRemotesToNames

pkg/cmd/factory/remote_resolver_test.go:379–385  ·  view source on GitHub ↗
(remotes context.Remotes)

Source from the content-addressed store, hash-verified

377}
378
379func mapRemotesToNames(remotes context.Remotes) []string {
380 names := make([]string, len(remotes))
381 for i, r := range remotes {
382 names[i] = r.Name
383 }
384 return names
385}

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected