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

Method UnqualifiedHeadRef

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

Source from the content-addressed store, hash-verified

168}
169
170func (r forkableRefs) UnqualifiedHeadRef() string {
171 return r.qualifiedHeadRef.BranchName()
172}
173
174// isSameRef checks if the head and base refs point to the same ref in the same repository.
175// 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