From 53df97a29d78070f3dfaf3e4d9a5ae61f33d7906 Mon Sep 17 00:00:00 2001 From: Jeff King Date: Fri, 6 Apr 2018 14:58:32 -0400 Subject: 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 Signed-off-by: Junio C Hamano --- ref-filter.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ref-filter.h') diff --git a/ref-filter.h b/ref-filter.h index 0d98342b34..68268f9ebc 100644 --- a/ref-filter.h +++ b/ref-filter.h @@ -132,7 +132,7 @@ void setup_ref_filter_porcelain_msg(void); * Print a single ref, outside of any ref-filter. Note that the * name must be a fully qualified refname. */ -void pretty_print_ref(const char *name, const unsigned char *sha1, +void pretty_print_ref(const char *name, const struct object_id *oid, const struct ref_format *format); #endif /* REF_FILTER_H */ -- cgit v1.2.1