summaryrefslogtreecommitdiff
path: root/alias.c
diff options
context:
space:
mode:
authorLibravatar Jeff King <peff@peff.net>2018-04-06 14:59:26 -0400
committerLibravatar Junio C Hamano <gitster@pobox.com>2018-04-09 06:14:45 +0900
commit0ffaa00f453978bffc4ff0f8a45ea0a52549e7cd (patch)
tree201dd562cff9cec7fccda22d0868a6eea84ef632 /alias.c
parentref-filter: use "struct object_id" consistently (diff)
downloadtgif-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 'alias.c')
0 files changed, 0 insertions, 0 deletions