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

Method ForRepo

pkg/cmd/extension/git.go:48–52  ·  view source on GitHub ↗
(repoDir string)

Source from the content-addressed store, hash-verified

46}
47
48func (g *gitExecuter) ForRepo(repoDir string) gitClient {
49 gc := g.client.Copy()
50 gc.RepoDir = repoDir
51 return &gitExecuter{client: gc}
52}
53
54func (g *gitExecuter) Pull(remote, branch string) error {
55 return g.client.Pull(context.Background(), remote, branch)

Callers

nothing calls this directly

Calls 1

CopyMethod · 0.45

Tested by

no test coverage detected