diff options
Diffstat (limited to 'include/git2')
-rw-r--r-- | include/git2/odb_backend.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/git2/odb_backend.h b/include/git2/odb_backend.h index ba41f726c..44049b6f1 100644 --- a/include/git2/odb_backend.h +++ b/include/git2/odb_backend.h @@ -49,6 +49,19 @@ struct git_odb_backend { struct 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. + */ + int (* read_unique_short_oid)( + git_oid *, + void **, size_t *, git_otype *, + struct git_odb_backend *, + const git_oid *, + unsigned int len); + int (* read_header)( size_t *, git_otype *, struct git_odb_backend *, |