summaryrefslogtreecommitdiff
path: root/include/git2/odb_backend.h
diff options
context:
space:
mode:
authorCarlos Martín Nieto <cmn@elego.de>2012-07-21 16:23:49 +0200
committerCarlos Martín Nieto <cmn@elego.de>2012-07-21 16:23:49 +0200
commit507523c32f71056a106f85712fe2086fdb94fbd0 (patch)
treed369f3f39a14fa48a06a24a632b1f1916b93670d /include/git2/odb_backend.h
parent71d273583755c0a2b7f5d608f017f4586add51e4 (diff)
downloadlibgit2-507523c32f71056a106f85712fe2086fdb94fbd0.tar.gz
odb: allow creating an ODB backend from a packfile index
git_odb_backend_one_packfile() allows us to create an ODB backend out of an .idx file.
Diffstat (limited to 'include/git2/odb_backend.h')
-rw-r--r--include/git2/odb_backend.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/git2/odb_backend.h b/include/git2/odb_backend.h
index 3f67202d1..b93ef204f 100644
--- a/include/git2/odb_backend.h
+++ b/include/git2/odb_backend.h
@@ -100,6 +100,7 @@ struct git_odb_stream {
GIT_EXTERN(int) git_odb_backend_pack(git_odb_backend **backend_out, const char *objects_dir);
GIT_EXTERN(int) git_odb_backend_loose(git_odb_backend **backend_out, const char *objects_dir, int compression_level, int do_fsync);
+GIT_EXTERN(int) git_odb_backend_one_pack(git_odb_backend **backend_out, const char *index_file);
GIT_END_DECL