ObjectPacks returns the list of availables packfiles
()
| 219 | |
| 220 | // ObjectPacks returns the list of availables packfiles |
| 221 | func (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 | |
| 234 | func (d *DotGit) objectPacks() ([]plumbing.Hash, error) { |
| 235 | packDir := d.fs.Join(objectsPath, packPath) |
nothing calls this directly
no test coverage detected