New initializes a new git client
(opts ...Option)
| 181 | |
| 182 | // New initializes a new git client |
| 183 | func NewGitCLI(opts ...Option) *GitCLI { |
| 184 | c := &GitCLI{} |
| 185 | for _, opt := range opts { |
| 186 | opt(c) |
| 187 | } |
| 188 | return c |
| 189 | } |
| 190 | |
| 191 | // New returns a new git client with the same config as the current one, but |
| 192 | // with the given options applied on top. |