]> git.ipfire.org Git - thirdparty/git.git/commit - fsck.c
fsck: don't require an object struct for report()
authorJeff King <peff@peff.net>
Fri, 18 Oct 2019 04:59:15 +0000 (00:59 -0400)
committerJunio C Hamano <gitster@pobox.com>
Mon, 28 Oct 2019 05:05:18 +0000 (14:05 +0900)
commit38370253fd43f494ca628e47b4d9c6e629990fc7
tree5c44fb279c4d97e33892804acc2a03257f042c0d
parentf59793763deb970dd5acffe2dffd34e791d44df8
fsck: don't require an object struct for report()

The report() function really only cares about the oid and type of the
object, not the full object struct. Let's convert it to take those two
items separately, which gives our callers more flexibility.

This makes some already-long lines even longer. I've mostly left them,
as our eventual goal is to shrink these down as we continue refactoring
(e.g., "&item->object" becomes "&item->object.oid, item->object.type",
but will eventually shrink down to "oid, type").

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
fsck.c