MCPcopy
hub / github.com/go-git/go-git / head

Method head

plumbing/format/packfile/encoder.go:75–82  ·  view source on GitHub ↗
(numEntries int)

Source from the content-addressed store, hash-verified

73}
74
75func (e *Encoder) head(numEntries int) error {
76 return binary.Write(
77 e.w,
78 signature,
79 int32(VersionSupported),
80 int32(numEntries),
81 )
82}
83
84func (e *Encoder) entry(o *ObjectToPack) (err error) {
85 if o.WantWrite() {

Callers 1

encodeMethod · 0.95

Calls 1

WriteFunction · 0.92

Tested by

no test coverage detected