ref-filter: use "struct object_id" consistently

Internally we store a "struct object_id", and all of our
callers have one to pass us. But we insist that they peel it
to its bare-sha1 hash, which we then hashcpy() into place.
Let's pass it around as an object_id, which future-proofs us
for a post-sha1 world.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Jeff King
2018-04-06 14:58:32 -04:00
committed by Junio C Hamano
parent 468165c1d8
commit 53df97a29d
4 changed files with 8 additions and 8 deletions

View File

@ -72,7 +72,7 @@ int cmd_verify_tag(int argc, const char **argv, const char *prefix)
}
if (format.format)
pretty_print_ref(name, oid.hash, &format);
pretty_print_ref(name, &oid, &format);
}
return had_error;
}