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

Method String

git/client.go:577–579  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

575}
576
577func (r RemoteTrackingRef) String() string {
578 return fmt.Sprintf("refs/remotes/%s/%s", r.Remote, r.Branch)
579}
580
581// ParseRemoteTrackingRef parses a string of the form "refs/remotes/<remote>/<branch>" into
582// a RemoteTrackingBranch struct. If the string does not match this format, an error is returned.

Callers 1

TestRemoteTrackingRefFunction · 0.95

Calls

no outgoing calls

Tested by 1

TestRemoteTrackingRefFunction · 0.76