MCPcopy
hub / github.com/cli/cli / UnqualifiedHeadRef

Method UnqualifiedHeadRef

pkg/cmd/pr/create/create.go:166–168  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

164}
165
166func (r forkableRefs) UnqualifiedHeadRef() string {
167 return r.qualifiedHeadRef.BranchName()
168}
169
170// isSameRef checks if the head and base refs point to the same ref in the same repository.
171// For cross-repository PRs (e.g., from a fork), the qualified head ref will contain

Callers

nothing calls this directly

Calls 1

BranchNameMethod · 0.80

Tested by

no test coverage detected