MCPcopy Index your code
hub / github.com/cli/cli / CurrentBranch

Method CurrentBranch

pkg/cmd/repo/sync/git.go:52–54  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

50}
51
52func (g *gitExecuter) CurrentBranch() (string, error) {
53 return g.client.CurrentBranch(context.Background())
54}
55
56func (g *gitExecuter) Fetch(remote, ref string) error {
57 args := []string{"fetch", "-q", remote, ref}

Callers

nothing calls this directly

Calls 1

CurrentBranchMethod · 0.65

Tested by

no test coverage detected