diff options
author | Carlos Martín Nieto <cmn@dwim.me> | 2013-10-02 13:39:35 +0200 |
---|---|---|
committer | Carlos Martín Nieto <cmn@dwim.me> | 2013-10-04 15:26:41 +0200 |
commit | 0b33fca03e030c7e807f0c75d7332e7fe2d3c0bc (patch) | |
tree | c45fa36c4bd8e1fa96768febb18f4b5bc861ee7a /include/git2/indexer.h | |
parent | 51e82492ef5206767e176952733914275d0e3bdc (diff) | |
download | libgit2-0b33fca03e030c7e807f0c75d7332e7fe2d3c0bc.tar.gz |
indexer: fix thin packs
When given an ODB from which to read objects, the indexer will attempt
to inject the missing bases at the end of the pack and update the
header and trailer to reflect the new contents.
Diffstat (limited to 'include/git2/indexer.h')
-rw-r--r-- | include/git2/indexer.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/git2/indexer.h b/include/git2/indexer.h index 4db072c9b..0858b6ea1 100644 --- a/include/git2/indexer.h +++ b/include/git2/indexer.h @@ -20,12 +20,16 @@ typedef struct git_indexer_stream git_indexer_stream; * * @param out where to store the indexer instance * @param path to the directory where the packfile should be stored + * @param odb object database from which to read base objects when + * fixing thin packs. Pass NULL if no thin pack is expected (an error + * will be returned if there are bases missing) * @param progress_cb function to call with progress information * @param progress_cb_payload payload for the progress callback */ GIT_EXTERN(int) git_indexer_stream_new( git_indexer_stream **out, const char *path, + git_odb *odb, git_transfer_progress_callback progress_cb, void *progress_cb_payload); |