MCPcopy
hub / github.com/cli/cli / HasLocalBranch

Method HasLocalBranch

pkg/cmd/repo/sync/git.go:65–67  ·  view source on GitHub ↗
(branch string)

Source from the content-addressed store, hash-verified

63}
64
65func (g *gitExecuter) HasLocalBranch(branch string) bool {
66 return g.client.HasLocalBranch(context.Background(), branch)
67}
68
69func (g *gitExecuter) IsAncestor(ancestor, progeny string) (bool, error) {
70 args := []string{"merge-base", "--is-ancestor", ancestor, progeny}

Callers

nothing calls this directly

Calls 1

HasLocalBranchMethod · 0.65

Tested by

no test coverage detected