NewObjectPack return a writer for a new packfile, it saves the packfile to disk and also generates and save the index for the given packfile.
()
| 213 | // NewObjectPack return a writer for a new packfile, it saves the packfile to |
| 214 | // disk and also generates and save the index for the given packfile. |
| 215 | func (d *DotGit) NewObjectPack() (*PackWriter, error) { |
| 216 | d.cleanPackList() |
| 217 | return newPackWrite(d.fs) |
| 218 | } |
| 219 | |
| 220 | // ObjectPacks returns the list of availables packfiles |
| 221 | func (d *DotGit) ObjectPacks() ([]plumbing.Hash, error) { |