fsck: drop unused fields from `struct fsck_ref_report`
The `struct fsck_ref_report` has a couple fields that are intended to improve the error reporting for broken ref reports by showing which object ID or target reference the ref points to. These fields are never set though and are thus essentially unused. Remove them. Signed-off-by: Patrick Steinhardt <ps@pks.im> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Patrick Steinhardt committed
Jan 12, 2026 at 10:02 UTC
70b338d60c8d90a56a43fa69fd49778b94b0de72
2 files changed
-7
fsck.c
-5
@@ -1310,11 +1310,6 @@ int fsck_refs_error_function(struct fsck_options *options UNUSED,
1310
1311
strbuf_addstr(&sb, report->path);
1312
1313
- if (report->oid)
1314
- strbuf_addf(&sb, " -> (%s)", oid_to_hex(report->oid));
1315
- else if (report->referent)
1316
- strbuf_addf(&sb, " -> (%s)", report->referent);
1317
-
1313
if (msg_type == FSCK_WARN)
1314
warning("%s: %s", sb.buf, message);
1315
else
fsck.h
-2
@@ -162,8 +162,6 @@ struct fsck_object_report {
162
163
struct fsck_ref_report {
164
const char *path;
165
- const struct object_id *oid;
166
- const char *referent;
165
};
166
167
struct fsck_options {