aboutsummaryrefslogtreecommitdiffstats
path: root/mailmap.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2025-07-09 08:29:08 -0700
committerJunio C Hamano <gitster@pobox.com>2025-07-09 08:29:08 -0700
commitdb0583b3fd18596b8e360b0fd1554ac3e5c15793 (patch)
tree8c862bb8c3ffabeeb92ed88ecd3dd182dbd95f73 /mailmap.c
parentThe eighth batch (diff)
parentodb: rename `read_object_with_reference()` (diff)
downloadgit-db0583b3fd18596b8e360b0fd1554ac3e5c15793.tar.gz
git-db0583b3fd18596b8e360b0fd1554ac3e5c15793.zip
Merge branch 'ps/object-store' into ps/object-store-midx
* 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 'mailmap.c')
-rw-r--r--mailmap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/mailmap.c b/mailmap.c
index 9e2642a043..56c72102d9 100644
--- a/mailmap.c
+++ b/mailmap.c
@@ -6,7 +6,7 @@
#include "string-list.h"
#include "mailmap.h"
#include "object-name.h"
-#include "object-store.h"
+#include "odb.h"
#include "setup.h"
char *git_mailmap_file;
@@ -196,7 +196,7 @@ int read_mailmap_blob(struct string_list *map, const char *name)
if (repo_get_oid(the_repository, name, &oid) < 0)
return 0;
- buf = repo_read_object_file(the_repository, &oid, &type, &size);
+ buf = odb_read_object(the_repository->objects, &oid, &type, &size);
if (!buf)
return error("unable to read mailmap object at %s", name);
if (type != OBJ_BLOB) {