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

Method doReadEntryName

plumbing/format/index/decoder.go:188–193  ·  view source on GitHub ↗
(len uint16)

Source from the content-addressed store, hash-verified

186}
187
188func (d *Decoder) doReadEntryName(len uint16) (string, error) {
189 name := make([]byte, len)
190 _, err := io.ReadFull(d.r, name)
191
192 return string(name), err
193}
194
195// Index entries are padded out to the next 8 byte alignment
196// for historical reasons related to how C Git read the files.

Callers 1

readEntryNameMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected