7.7
2.20 Indexer
(require libgit2/include/indexer) | package: libgit2 |
procedure
(git_indexer_append idx data size stats) → integer?
idx : indexer? data : bytes? size : integer? stats : git_transfer_progress?
Add data to the indexer
procedure
(git_indexer_commit idx stats) → integer?
idx : indexer? stats : transfer_progress?
Finalize the pack and index
Resolve any pending deltas and write out the index file
procedure
(git_indexer_free idx) → void?
idx : indexer?
Free the indexer and its resources
Get the packfile’s hash
A packfile’s name is derived from the sorted hashing of all object names. This is only correct after the index has been finalized.
procedure
(git_indexer_new path int odb progress_cb progress_cb_payload) → indexer? path : string? int : unsigned odb : (or/c odb? #f) progress_cb : git_transfer_progress_cb progress_cb_payload : bytes?
Create a new indexer instance