indexer: Add git_indexer_stream_finalize()

Resolve any lingering deltas, write out the index file and rename the
packfile.
This commit is contained in:
Carlos Martín Nieto
2012-04-13 22:19:45 +02:00
parent 3f93e16cff
commit 453ab98da0
2 changed files with 249 additions and 76 deletions
+9
View File
@@ -43,6 +43,15 @@ GIT_EXTERN(int) git_indexer_stream_new(git_indexer_stream **out, const char *git
*/
GIT_EXTERN(int) git_indexer_stream_add(git_indexer_stream *idx, void *data, size_t size, git_indexer_stats *stats);
/**
* Finalize the pack and index
*
* Resolve any pending deltas and write out the index file
*
* @param idx the indexer
*/
GIT_EXTERN(int) git_indexer_stream_finalize(git_indexer_stream *idx, git_indexer_stats *stats);
/**
* Create a new indexer instance
*