aboutsummaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2026-02-23 13:48:48 -0800
committerJunio C Hamano <gitster@pobox.com>2026-02-23 13:48:48 -0800
commitb1af291b4adf1c433ad2b79f0390f7d6b516a964 (patch)
tree56e0371e44abc3b1b8e27e5bdfbb304a02556b14 /builtin
parent703c97519dfac64291f79b1772e25c65d233e97e (diff)
parent732ec9b17b78a49496bfb796fcfe606f3a9f02f1 (diff)
downloadgit-b1af291b4adf1c433ad2b79f0390f7d6b516a964.tar.xz
Merge branch 'ps/object-info-bits-cleanup' into ps/odb-sources
* ps/object-info-bits-cleanup: odb: convert `odb_has_object()` flags into an enum odb: convert object info flags into an enum odb: drop gaps in object info flag values builtin/fsck: fix flags passed to `odb_has_object()` builtin/backfill: fix flags passed to `odb_has_object()`
Diffstat (limited to 'builtin')
-rw-r--r--builtin/backfill.c3
-rw-r--r--builtin/fsck.c3
2 files changed, 3 insertions, 3 deletions
diff --git a/builtin/backfill.c b/builtin/backfill.c
index e80fc1b694..d8cb3b0eba 100644
--- a/builtin/backfill.c
+++ b/builtin/backfill.c
@@ -67,8 +67,7 @@ static int fill_missing_blobs(const char *path UNUSED,
return 0;
for (size_t i = 0; i < list->nr; i++) {
- if (!odb_has_object(ctx->repo->objects, &list->oid[i],
- OBJECT_INFO_FOR_PREFETCH))
+ if (!odb_has_object(ctx->repo->objects, &list->oid[i], 0))
oid_array_append(&ctx->current_batch, &list->oid[i]);
}
diff --git a/builtin/fsck.c b/builtin/fsck.c
index 80e298049f..384d47ee77 100644
--- a/builtin/fsck.c
+++ b/builtin/fsck.c
@@ -162,7 +162,8 @@ static int mark_object(struct object *obj, enum object_type type,
return 0;
if (!(obj->flags & HAS_OBJ)) {
- if (parent && !odb_has_object(the_repository->objects, &obj->oid, 1)) {
+ if (parent && !odb_has_object(the_repository->objects, &obj->oid,
+ HAS_OBJECT_RECHECK_PACKED)) {
printf_ln(_("broken link from %7s %s\n"
" to %7s %s"),
printable_type(&parent->oid, parent->type),