summaryrefslogtreecommitdiff
path: root/include/git2/indexer.h
diff options
context:
space:
mode:
authorCarlos Martín Nieto <carlos@cmartin.tk>2012-04-11 12:55:34 +0200
committerCarlos Martín Nieto <carlos@cmartin.tk>2012-04-13 22:19:45 +0200
commit453ab98da06d57c7d41a9f3ddf945ae56d56890a (patch)
tree665ecad239cf55575f20ec87dc98481be43eacc7 /include/git2/indexer.h
parent3f93e16cff90e71dad434729b3acdc437fb06436 (diff)
downloadlibgit2-453ab98da06d57c7d41a9f3ddf945ae56d56890a.tar.gz
indexer: Add git_indexer_stream_finalize()
Resolve any lingering deltas, write out the index file and rename the packfile.
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