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

Function missingMergeConfigForBranch

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

Source from the content-addressed store, hash-verified

312}
313
314func missingMergeConfigForBranch(client *git.Client, b string) bool {
315 mc, err := client.Config(context.Background(), fmt.Sprintf("branch.%s.merge", b))
316 return err != nil || mc == ""
317}
318
319// detachCmds returns the commands for a detached checkout. When reusing an
320// existing linked worktree, FETCH_HEAD must be written inside it (it is

Callers 1

cmdsForMissingRemoteFunction · 0.85

Calls 1

ConfigMethod · 0.65

Tested by

no test coverage detected