ObjectPackIdx returns a fs.File of the index file for a given packfile
(hash plumbing.Hash)
| 317 | |
| 318 | // ObjectPackIdx returns a fs.File of the index file for a given packfile |
| 319 | func (d *DotGit) ObjectPackIdx(hash plumbing.Hash) (billy.File, error) { |
| 320 | err := d.hasPack(hash) |
| 321 | if err != nil { |
| 322 | return nil, err |
| 323 | } |
| 324 | |
| 325 | return d.objectPackOpen(hash, `idx`) |
| 326 | } |
| 327 | |
| 328 | func (d *DotGit) DeleteOldObjectPackAndIndex(hash plumbing.Hash, t time.Time) error { |
| 329 | d.cleanPackList() |