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

Method UnqualifiedHeadRef

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

Source from the content-addressed store, hash-verified

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