MCPcopy Create free account
hub / github.com/go-git/go-git / SetColor

Method SetColor

plumbing/format/diff/unified_encoder.go:60–63  ·  view source on GitHub ↗

SetColor sets e's color configuration and returns e.

(colorConfig ColorConfig)

Source from the content-addressed store, hash-verified

58
59// SetColor sets e's color configuration and returns e.
60func (e *UnifiedEncoder) SetColor(colorConfig ColorConfig) *UnifiedEncoder {
61 e.color = colorConfig
62 return e
63}
64
65// SetSrcPrefix sets e's srcPrefix and returns e.
66func (e *UnifiedEncoder) SetSrcPrefix(prefix string) *UnifiedEncoder {

Callers 1

TestEncodeMethod · 0.80

Calls

no outgoing calls

Tested by 1

TestEncodeMethod · 0.64