mirror of
https://github.com/git/git.git
synced 2025-12-12 20:36:24 +01:00
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:
committed by
Junio C Hamano
parent
468165c1d8
commit
53df97a29d
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user