fsck: accept an oid instead of a "struct tag" for fsck_tag()
commit103fb6d43bd6ec7049564cc39e4c0e495f9bfcb8
authorJeff King <peff@peff.net>
Fri, 18 Oct 2019 05:01:26 +0000 (18 01:01 -0400)
committerJunio C Hamano <gitster@pobox.com>
Mon, 28 Oct 2019 05:05:18 +0000 (28 14:05 +0900)
treea3469511245c8e9e049db715cf614ceb41cdbcd2
parentf648ee70885ce09558101640f540ebec2013cd80
fsck: accept an oid instead of a "struct tag" for fsck_tag()

We don't actually look at the tag struct in fsck_tag() beyond its oid
and type (which is obviously OBJ_TAG). Just taking an oid gives our
callers more flexibility to avoid creating or parsing a struct, and
makes it clear that we are fscking just what is in the buffer, not any
pre-parsed bits from the struct.

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