mirror of
https://github.com/libgit2/libgit2.git
synced 2026-06-22 06:26:26 +00:00
refdb: implement reftable backend
Implement the reftable backend that is used to read and write reftables. The backend is not yet used anywhere after this commit.
This commit is contained in:
@@ -383,6 +383,21 @@ GIT_EXTERN(int) git_refdb_backend_fs(
|
||||
git_refdb_backend **backend_out,
|
||||
git_repository *repo);
|
||||
|
||||
/**
|
||||
* Constructor for the reftable-based refdb backend
|
||||
*
|
||||
* Under normal usage, this is called for you when the repository is
|
||||
* opened / created that uses the reftable format, but you can use this to
|
||||
* explicitly construct a reftable refdb backend for a repository.
|
||||
*
|
||||
* @param backend_out Output pointer to the git_refdb_backend object
|
||||
* @param repo Git repository to access
|
||||
* @return 0 on success, <0 error code on failure
|
||||
*/
|
||||
GIT_EXTERN(int) git_refdb_backend_reftable(
|
||||
git_refdb_backend **backend_out,
|
||||
git_repository *repo);
|
||||
|
||||
/**
|
||||
* Sets the custom backend to an existing reference DB
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user