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

Method String

pkg/cmd/pr/shared/find_refs_resolution.go:70–75  ·  view source on GitHub ↗

A QualifiedHeadRef without an owner returns , while a QualifiedHeadRef with an owner returns : .

()

Source from the content-addressed store, hash-verified

68// A QualifiedHeadRef without an owner returns <branch>, while a QualifiedHeadRef
69// with an owner returns <owner>:<branch>.
70func (r QualifiedHeadRef) String() string {
71 if owner, present := r.owner.Value(); present {
72 return fmt.Sprintf("%s:%s", owner, r.branchName)
73 }
74 return r.branchName
75}
76
77func (r QualifiedHeadRef) BranchName() string {
78 return r.branchName

Callers

nothing calls this directly

Calls 1

ValueMethod · 0.80

Tested by

no test coverage detected