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

Function WithDiffUnified

git/options.go:21–25  ·  view source on GitHub ↗

WithDiffUnified is a function that generate diffs with lines of context instead of the usual three.

(val int)

Source from the content-addressed store, hash-verified

19
20// WithDiffUnified is a function that generate diffs with <n> lines of context instead of the usual three.
21func WithDiffUnified(val int) Option {
22 return optionFunc(func(c *config) {
23 c.diffUnified = val
24 })
25}
26
27// WithExcludeList returns an Option that sets the excludeList field of a config object to the given value.
28func WithExcludeList(val []string) Option {

Callers 2

review.goFile · 0.92
commit.goFile · 0.92

Calls 1

optionFuncFuncType · 0.70

Tested by

no test coverage detected