MCPcopy
hub / github.com/cli/cli / missingMergeConfigForBranch

Function missingMergeConfigForBranch

pkg/cmd/pr/checkout/checkout.go:261–264  ·  view source on GitHub ↗
(client *git.Client, b string)

Source from the content-addressed store, hash-verified

259}
260
261func missingMergeConfigForBranch(client *git.Client, b string) bool {
262 mc, err := client.Config(context.Background(), fmt.Sprintf("branch.%s.merge", b))
263 return err != nil || mc == ""
264}
265
266func localBranchExists(client *git.Client, b string) bool {
267 _, err := client.ShowRefs(context.Background(), []string{"refs/heads/" + b})

Callers 1

cmdsForMissingRemoteFunction · 0.85

Calls 1

ConfigMethod · 0.65

Tested by

no test coverage detected