]> granicus.if.org Git - git/commit
fsck: only provide oid/type in fsck_error callback
authorJeff King <peff@peff.net>
Fri, 18 Oct 2019 04:58:40 +0000 (00:58 -0400)
committerJunio C Hamano <gitster@pobox.com>
Fri, 25 Oct 2019 03:23:55 +0000 (12:23 +0900)
commit031b331987c94041da23666c1b5f6d24bf1c9109
tree0f890ebb095a065683e67f963bc58f762520f684
parentc655bc226da82a297477b9a688f29f4625762368
fsck: only provide oid/type in fsck_error callback

None of the callbacks actually care about having a "struct object";
they're happy with just the oid and type information. So let's give
ourselves more flexibility to avoid having a "struct object" by just
passing the broken-down fields.

Note that the callback already takes a "type" field for the fsck message
type. We'll rename that to "msg_type" (and use "object_type" for the
object type) to make the distinction explicit.

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