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

Method ObjectPacks

storage/filesystem/dotgit/dotgit.go:221–232  ·  view source on GitHub ↗

ObjectPacks returns the list of availables packfiles

()

Source from the content-addressed store, hash-verified

219
220// ObjectPacks returns the list of availables packfiles
221func (d *DotGit) ObjectPacks() ([]plumbing.Hash, error) {
222 if !d.options.ExclusiveAccess {
223 return d.objectPacks()
224 }
225
226 err := d.genPackList()
227 if err != nil {
228 return nil, err
229 }
230
231 return d.packList, nil
232}
233
234func (d *DotGit) objectPacks() ([]plumbing.Hash, error) {
235 packDir := d.fs.Join(objectsPath, packPath)

Callers

nothing calls this directly

Calls 2

objectPacksMethod · 0.95
genPackListMethod · 0.95

Tested by

no test coverage detected