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

Method Decode

plumbing/format/index/decoder.go:402–415  ·  view source on GitHub ↗
(ru *ResolveUndo)

Source from the content-addressed store, hash-verified

400}
401
402func (d *resolveUndoDecoder) Decode(ru *ResolveUndo) error {
403 for {
404 e, err := d.readEntry()
405 if err != nil {
406 if err == io.EOF {
407 return nil
408 }
409
410 return err
411 }
412
413 ru.Entries = append(ru.Entries, *e)
414 }
415}
416
417func (d *resolveUndoDecoder) readEntry() (*ResolveUndoEntry, error) {
418 e := &ResolveUndoEntry{

Callers

nothing calls this directly

Calls 1

readEntryMethod · 0.95

Tested by

no test coverage detected