mirror of
https://github.com/git/git.git
synced 2026-01-11 21:33:13 +09:00
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>
This commit is contained in:
parent
4144f09d78
commit
3f330b445b
5
fsck.c
5
fsck.c
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user