]> git.ipfire.org Git - thirdparty/git.git/commit - ref-filter.c
ref-filter: use "struct object_id" consistently
authorJeff King <peff@peff.net>
Fri, 6 Apr 2018 18:58:32 +0000 (14:58 -0400)
committerJunio C Hamano <gitster@pobox.com>
Sun, 8 Apr 2018 21:14:45 +0000 (06:14 +0900)
commit53df97a29d78070f3dfaf3e4d9a5ae61f33d7906
tree98aa44a9d000da1f66fd8ff7c9eabc9377d1ec9d
parent468165c1d8a442994a825f3684528361727cd8c0
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>
builtin/tag.c
builtin/verify-tag.c
ref-filter.c
ref-filter.h