summaryrefslogtreecommitdiff
path: root/src/backends/sqlite.c
diff options
context:
space:
mode:
authorVicent Marti <tanoku@gmail.com>2011-06-01 21:25:56 +0200
committerVicent Marti <tanoku@gmail.com>2011-06-01 23:40:42 +0200
commitd0323a5f63219428aada1c36dfa8a712a695d778 (patch)
tree083060c6939efdd009140dceed8c53d32410d6cc /src/backends/sqlite.c
parentaea8a638f2593153b397a12d07c0751727e720f1 (diff)
downloadlibgit2-d0323a5f63219428aada1c36dfa8a712a695d778.tar.gz
short-oid: Cleanup
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;