(repoDir string)
| 60 | } |
| 61 | |
| 62 | func (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. |
| 71 | type CommandModifier func(*Command) |