WithIndexFile sets the GIT_INDEX_FILE environment variable for the git commands.
(indexFile string)
| 174 | |
| 175 | // WithIndexFile sets the GIT_INDEX_FILE environment variable for the git commands. |
| 176 | func WithIndexFile(indexFile string) Option { |
| 177 | return func(b *GitCLI) { |
| 178 | b.indexFile = indexFile |
| 179 | } |
| 180 | } |
| 181 | |
| 182 | // New initializes a new git client |
| 183 | func NewGitCLI(opts ...Option) *GitCLI { |