MCPcopy Index your code
hub / github.com/go-git/go-git / genPackList

Method genPackList

storage/filesystem/dotgit/dotgit.go:530–549  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

528}
529
530func (d *DotGit) genPackList() error {
531 if d.packMap != nil {
532 return nil
533 }
534
535 op, err := d.objectPacks()
536 if err != nil {
537 return err
538 }
539
540 d.packMap = make(map[plumbing.Hash]struct{})
541 d.packList = nil
542
543 for _, h := range op {
544 d.packList = append(d.packList, h)
545 d.packMap[h] = struct{}{}
546 }
547
548 return nil
549}
550
551func (d *DotGit) hasPack(h plumbing.Hash) error {
552 if !d.options.ExclusiveAccess {

Callers 2

ObjectPacksMethod · 0.95
hasPackMethod · 0.95

Calls 1

objectPacksMethod · 0.95

Tested by

no test coverage detected