aboutsummaryrefslogtreecommitdiffstats
path: root/merge-blobs.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2025-07-09 16:29:52 -0700
committerJunio C Hamano <gitster@pobox.com>2025-07-09 16:29:52 -0700
commit7cafb9accc7827a84eaffaab303695e945adfe34 (patch)
tree8c862bb8c3ffabeeb92ed88ecd3dd182dbd95f73 /merge-blobs.c
parentThe eighth batch (diff)
parentodb: rename `read_object_with_reference()` (diff)
downloadgit-7cafb9accc7827a84eaffaab303695e945adfe34.tar.gz
git-7cafb9accc7827a84eaffaab303695e945adfe34.zip
Merge branch 'ps/object-store' into ps/object-file-wo-the-repository
* ps/object-store: odb: rename `read_object_with_reference()` odb: rename `pretend_object_file()` odb: rename `has_object()` odb: rename `repo_read_object_file()` odb: rename `oid_object_info()` odb: trivial refactorings to get rid of `the_repository` odb: get rid of `the_repository` when handling submodule sources odb: get rid of `the_repository` when handling the primary source odb: get rid of `the_repository` in `for_each()` functions odb: get rid of `the_repository` when handling alternates odb: get rid of `the_repository` in `odb_mkstemp()` odb: get rid of `the_repository` in `assert_oid_type()` odb: get rid of `the_repository` in `find_odb()` odb: introduce parent pointers object-store: rename files to "odb.{c,h}" object-store: rename `object_directory` to `odb_source` object-store: rename `raw_object_store` to `object_database`
Diffstat (limited to 'merge-blobs.c')
-rw-r--r--merge-blobs.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/merge-blobs.c b/merge-blobs.c
index 53f36dbc17..6fc2799417 100644
--- a/merge-blobs.c
+++ b/merge-blobs.c
@@ -4,7 +4,7 @@
#include "merge-ll.h"
#include "blob.h"
#include "merge-blobs.h"
-#include "object-store.h"
+#include "odb.h"
static int fill_mmfile_blob(mmfile_t *f, struct blob *obj)
{
@@ -12,8 +12,8 @@ static int fill_mmfile_blob(mmfile_t *f, struct blob *obj)
unsigned long size;
enum object_type type;
- buf = repo_read_object_file(the_repository, &obj->object.oid, &type,
- &size);
+ buf = odb_read_object(the_repository->objects, &obj->object.oid,
+ &type, &size);
if (!buf)
return -1;
if (type != OBJ_BLOB) {
@@ -79,8 +79,8 @@ void *merge_blobs(struct index_state *istate, const char *path,
return NULL;
if (!our)
our = their;
- return repo_read_object_file(the_repository, &our->object.oid,
- &type, size);
+ return odb_read_object(the_repository->objects, &our->object.oid,
+ &type, size);
}
if (fill_mmfile_blob(&f1, our) < 0)