ObjectPackIdx returns a fs.File of the index file for a given packfile
(hash plumbing.Hash)
| 310 | |
| 311 | // ObjectPackIdx returns a fs.File of the index file for a given packfile |
| 312 | func (d *DotGit) ObjectPackIdx(hash plumbing.Hash) (billy.File, error) { |
| 313 | err := d.hasPack(hash) |
| 314 | if err != nil { |
| 315 | return nil, err |
| 316 | } |
| 317 | |
| 318 | return d.objectPackOpen(hash, `idx`) |
| 319 | } |
| 320 | |
| 321 | func (d *DotGit) DeleteOldObjectPackAndIndex(hash plumbing.Hash, t time.Time) error { |
| 322 | d.cleanPackList() |