aboutsummaryrefslogtreecommitdiff
path: root/builtin/fsck.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2026-03-02 17:06:52 -0800
committerJunio C Hamano <gitster@pobox.com>2026-03-02 17:06:52 -0800
commit10dd04a3feef385358d66bf3d653325f64c20d3c (patch)
tree2129ba4a8c8b302eb888c5d14ed98139e373a30f /builtin/fsck.c
parent02c31a8ddc7a79a4e8f9dd0c437bcf3e73e60203 (diff)
parent732ec9b17b78a49496bfb796fcfe606f3a9f02f1 (diff)
downloadgit-10dd04a3feef385358d66bf3d653325f64c20d3c.tar.xz
Merge branch 'ps/object-info-bits-cleanup'
A couple of bugs in use of flag bits around odb API has been corrected, and the flag bits reordered. * 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/fsck.c')
-rw-r--r--builtin/fsck.c3
1 files changed, 2 insertions, 1 deletions
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),