aboutsummaryrefslogtreecommitdiffstats
path: root/list-objects.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 /list-objects.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 'list-objects.c')
-rw-r--r--list-objects.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/list-objects.c b/list-objects.c
index 597114281f..42c17d9573 100644
--- a/list-objects.c
+++ b/list-objects.c
@@ -14,7 +14,7 @@
#include "list-objects-filter.h"
#include "list-objects-filter-options.h"
#include "packfile.h"
-#include "object-store.h"
+#include "odb.h"
#include "trace.h"
#include "environment.h"
@@ -74,8 +74,8 @@ static void process_blob(struct traversal_context *ctx,
* of missing objects.
*/
if (ctx->revs->exclude_promisor_objects &&
- !has_object(the_repository, &obj->oid,
- HAS_OBJECT_RECHECK_PACKED | HAS_OBJECT_FETCH_PROMISOR) &&
+ !odb_has_object(the_repository->objects, &obj->oid,
+ HAS_OBJECT_RECHECK_PACKED | HAS_OBJECT_FETCH_PROMISOR) &&
is_promisor_object(ctx->revs->repo, &obj->oid))
return;