diff options
| author | Russell Belfer <rb@github.com> | 2014-03-04 15:34:23 -0800 |
|---|---|---|
| committer | Russell Belfer <rb@github.com> | 2014-03-04 15:34:23 -0800 |
| commit | f5753999e4cac020c2dd3a4669fe9ba14df93cb5 (patch) | |
| tree | 13e38551546181a59c0dae367192008c555e1fee /include/git2/sys/odb_backend.h | |
| parent | 0a62caf4e4927cbf74f40d8a2cb44b84267a30da (diff) | |
| download | libgit2-f5753999e4cac020c2dd3a4669fe9ba14df93cb5.tar.gz | |
Add exists_prefix to ODB backend and ODB API
Diffstat (limited to 'include/git2/sys/odb_backend.h')
| -rw-r--r-- | include/git2/sys/odb_backend.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/include/git2/sys/odb_backend.h b/include/git2/sys/odb_backend.h index 8039a5b82..4917ba0f0 100644 --- a/include/git2/sys/odb_backend.h +++ b/include/git2/sys/odb_backend.h @@ -35,11 +35,8 @@ struct git_odb_backend { int (* read)( void **, size_t *, git_otype *, git_odb_backend *, const git_oid *); - /* To find a unique object given a prefix - * of its oid. - * The oid given must be so that the - * remaining (GIT_OID_HEXSZ - len)*4 bits - * are 0s. + /* To find a unique object given a prefix of its oid. The oid given + * must be so that the remaining (GIT_OID_HEXSZ - len)*4 bits are 0s. */ int (* read_prefix)( git_oid *, void **, size_t *, git_otype *, @@ -64,6 +61,9 @@ struct git_odb_backend { int (* exists)( git_odb_backend *, const git_oid *); + int (* exists_prefix)( + git_oid *, git_odb_backend *, const git_oid *, size_t); + /** * If the backend implements a refreshing mechanism, it should be exposed * through this endpoint. Each call to `git_odb_refresh()` will invoke it. |
