diff options
| author | Patrick Steinhardt <ps@pks.im> | 2026-01-12 10:02:57 +0100 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2026-01-12 06:55:40 -0800 |
| commit | 70b338d60c8d90a56a43fa69fd49778b94b0de72 (patch) | |
| tree | c4ab1fdca3b18491f5a93312d44d365420a9ef7f | |
| parent | 7b8c36a2a74868b6fa47e3b11e2c1c0f89c88d43 (diff) | |
| download | git-70b338d60c8d90a56a43fa69fd49778b94b0de72.tar.xz | |
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>
| -rw-r--r-- | fsck.c | 5 | ||||
| -rw-r--r-- | fsck.h | 2 |
2 files changed, 0 insertions, 7 deletions
@@ -1310,11 +1310,6 @@ int fsck_refs_error_function(struct fsck_options *options UNUSED, strbuf_addstr(&sb, report->path); - if (report->oid) - strbuf_addf(&sb, " -> (%s)", oid_to_hex(report->oid)); - else if (report->referent) - strbuf_addf(&sb, " -> (%s)", report->referent); - if (msg_type == FSCK_WARN) warning("%s: %s", sb.buf, message); else @@ -162,8 +162,6 @@ struct fsck_object_report { struct fsck_ref_report { const char *path; - const struct object_id *oid; - const char *referent; }; struct fsck_options { |
