MCPcopy Create free account
hub / github.com/appleboy/CodeGPT / WithEnableAmend

Function WithEnableAmend

git/options.go:39–43  ·  view source on GitHub ↗

WithEnableAmend returns an Option that sets the isAmend field of a config object to the given value.

(val bool)

Source from the content-addressed store, hash-verified

37
38// WithEnableAmend returns an Option that sets the isAmend field of a config object to the given value.
39func WithEnableAmend(val bool) Option {
40 return optionFunc(func(c *config) {
41 c.isAmend = val
42 })
43}
44
45// config is a struct that stores configuration options for the instrumentation.
46type config struct {

Callers 2

review.goFile · 0.92
commit.goFile · 0.92

Calls 1

optionFuncFuncType · 0.70

Tested by

no test coverage detected