diff options
Diffstat (limited to 'notes-cache.c')
| -rw-r--r-- | notes-cache.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/notes-cache.c b/notes-cache.c index ecfdf6e43b..dd56feed6e 100644 --- a/notes-cache.c +++ b/notes-cache.c @@ -2,7 +2,8 @@ #include "git-compat-util.h" #include "notes-cache.h" -#include "object-store-ll.h" +#include "object-file.h" +#include "odb.h" #include "pretty.h" #include "repository.h" #include "commit.h" @@ -86,7 +87,7 @@ char *notes_cache_get(struct notes_cache *c, struct object_id *key_oid, value_oid = get_note(&c->tree, key_oid); if (!value_oid) return NULL; - value = repo_read_object_file(the_repository, value_oid, &type, &size); + value = odb_read_object(the_repository->objects, value_oid, &type, &size); *outsize = size; return value; |
