summaryrefslogtreecommitdiff
path: root/include/git2/indexer.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/git2/indexer.h')
-rw-r--r--include/git2/indexer.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/git2/indexer.h b/include/git2/indexer.h
index 76b162ed2..8490ef0c8 100644
--- a/include/git2/indexer.h
+++ b/include/git2/indexer.h
@@ -44,6 +44,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
*
* @param out where to store the indexer instance