summaryrefslogtreecommitdiff
path: root/src/backends/sqlite.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/backends/sqlite.c')
-rw-r--r--src/backends/sqlite.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backends/sqlite.c b/src/backends/sqlite.c
index c9c3b8049..8626349ec 100644
--- a/src/backends/sqlite.c
+++ b/src/backends/sqlite.c
@@ -103,7 +103,7 @@ int sqlite_backend__read(void **data_p, size_t *len_p, git_otype *type_p, git_od
return error == GIT_SUCCESS ? GIT_SUCCESS : git__rethrow(error, "SQLite backend: Failed to read");
}
-int sqlite_backend__read_unique_short_oid(git_oid *out_oid, void **data_p, size_t *len_p, git_otype *type_p, git_odb_backend *_backend,
+int sqlite_backend__read_prefix(git_oid *out_oid, void **data_p, size_t *len_p, git_otype *type_p, git_odb_backend *_backend,
const git_oid *short_oid, unsigned int len) {
if (len >= GIT_OID_HEXSZ) {
/* Just match the full identifier */
@@ -270,7 +270,7 @@ int git_odb_backend_sqlite(git_odb_backend **backend_out, const char *sqlite_db)
goto cleanup;
backend->parent.read = &sqlite_backend__read;
- backend->parent.read_unique_short_oid = &sqlite_backend__read_unique_short_oid;
+ backend->parent.read_prefix = &sqlite_backend__read_prefix;
backend->parent.read_header = &sqlite_backend__read_header;
backend->parent.write = &sqlite_backend__write;
backend->parent.exists = &sqlite_backend__exists;