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

Method setRepoDir

git/command.go:62–68  ·  view source on GitHub ↗
(repoDir string)

Source from the content-addressed store, hash-verified

60}
61
62func (gc *Command) setRepoDir(repoDir string) {
63 if len(gc.Args) >= 3 && gc.Args[1] == "-C" {
64 gc.Args[2] = repoDir
65 return
66 }
67 gc.Args = slices.Insert(gc.Args, 1, "-C", repoDir)
68}
69
70// Allow individual commands to be modified from the default client options.
71type CommandModifier func(*Command)

Callers 1

WithRepoDirFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected