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

Method SetSrcPrefix

plumbing/format/diff/unified_encoder.go:66–69  ·  view source on GitHub ↗

SetSrcPrefix sets e's srcPrefix and returns e.

(prefix string)

Source from the content-addressed store, hash-verified

64
65// SetSrcPrefix sets e's srcPrefix and returns e.
66func (e *UnifiedEncoder) SetSrcPrefix(prefix string) *UnifiedEncoder {
67 e.srcPrefix = prefix
68 return e
69}
70
71// SetDstPrefix sets e's dstPrefix and returns e.
72func (e *UnifiedEncoder) SetDstPrefix(prefix string) *UnifiedEncoder {

Callers 1

Calls

no outgoing calls

Tested by 1