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

Method SetDstPrefix

plumbing/format/diff/unified_encoder.go:72–75  ·  view source on GitHub ↗

SetDstPrefix sets e's dstPrefix and returns e.

(prefix string)

Source from the content-addressed store, hash-verified

70
71// SetDstPrefix sets e's dstPrefix and returns e.
72func (e *UnifiedEncoder) SetDstPrefix(prefix string) *UnifiedEncoder {
73 e.dstPrefix = prefix
74 return e
75}
76
77// Encode encodes patch.
78func (e *UnifiedEncoder) Encode(patch Patch) error {

Callers 1

Calls

no outgoing calls

Tested by 1