diff options
author | Jeff King <peff@peff.net> | 2018-04-06 14:59:26 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-04-09 06:14:45 +0900 |
commit | 0ffaa00f453978bffc4ff0f8a45ea0a52549e7cd (patch) | |
tree | 201dd562cff9cec7fccda22d0868a6eea84ef632 /block-sha1/sha1.c | |
parent | ref-filter: use "struct object_id" consistently (diff) | |
download | tgif-0ffaa00f453978bffc4ff0f8a45ea0a52549e7cd.tar.xz |
ref-filter: make ref_array_item allocation more consistent
We have a helper function to allocate ref_array_item
structs, but it only takes a subset of the possible fields
in the struct as initializers. We could have it accept an
argument for _every_ field, but that becomes a pain for the
fields which some callers don't want to set initially.
Instead, let's be explicit that it takes only the minimum
required to create the ref, and that callers should then
fill in the rest themselves.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'block-sha1/sha1.c')
0 files changed, 0 insertions, 0 deletions