MCPcopy Index your code
hub / github.com/dagger/dagger / WithIndexFile

Function WithIndexFile

util/gitutil/cli.go:176–180  ·  view source on GitHub ↗

WithIndexFile sets the GIT_INDEX_FILE environment variable for the git commands.

(indexFile string)

Source from the content-addressed store, hash-verified

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

Callers 1

CleanedMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected