diff options
| author | Vicent Marti <tanoku@gmail.com> | 2011-02-05 19:45:57 +0200 |
|---|---|---|
| committer | Vicent Marti <tanoku@gmail.com> | 2011-02-05 19:45:57 +0200 |
| commit | c041af95a2f382b167c59d739323bd84cbdda235 (patch) | |
| tree | b75ae5c1f4363352e37bd03d57f7b5b604b9a9dd /src/git2 | |
| parent | 95901128b88ab1a784e39c5a87328d602af23074 (diff) | |
| download | libgit2-c041af95a2f382b167c59d739323bd84cbdda235.tar.gz | |
Add support for SQLite backends
Configure again the build system to look for SQLite3. If the library is
found, the SQLite backend will be automatically compiled.
Enjoy *very* fast reads and writes.
MASTER PROTIP: Initialize the backend with ":memory" as the path to the
SQLite database for fully-hosted in-memory repositories. Rejoice.
Signed-off-by: Vicent Marti <tanoku@gmail.com>
Diffstat (limited to 'src/git2')
| -rw-r--r-- | src/git2/odb_backend.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/git2/odb_backend.h b/src/git2/odb_backend.h index 9c0c3ad6f..ee7e5dfde 100644 --- a/src/git2/odb_backend.h +++ b/src/git2/odb_backend.h @@ -66,6 +66,13 @@ struct git_odb_backend { void (* free)(struct git_odb_backend *); }; +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); + +#ifdef GIT2_SQLITE_BACKEND +GIT_EXTERN(int) git_odb_backend_sqlite(git_odb_backend **backend_out, const char *sqlite_db); +#endif + GIT_END_DECL #endif |
