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

Method CurrentBranch

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

Source from the content-addressed store, hash-verified

57}
58
59func (g *gitExecuter) CurrentBranch() (string, error) {
60 return g.client.CurrentBranch(context.Background())
61}
62
63func (g *gitExecuter) Fetch(remote, ref string) error {
64 args := []string{"fetch", "-q", remote, ref}

Callers

nothing calls this directly

Calls 1

CurrentBranchMethod · 0.65

Tested by

no test coverage detected