summaryrefslogtreecommitdiff
path: root/contrib/buildsystems
diff options
context:
space:
mode:
authorLibravatar Jeff King <peff@peff.net>2021-01-14 15:11:10 -0500
committerLibravatar Junio C Hamano <gitster@pobox.com>2021-01-14 18:22:27 -0800
commit779412b9d99544ae71eefabb699a109b1638f96c (patch)
tree8859f197d46a91dd0411c55def07d7f3aea748b7 /contrib/buildsystems
parentpack-revindex.c: avoid direct revindex access in 'offset_to_pack_pos()' (diff)
downloadtgif-779412b9d99544ae71eefabb699a109b1638f96c.tar.xz
for_each_object_in_pack(): clarify pack vs index ordering
We may return objects in one of two orders: how they appear in the .idx (sorted by object id) or how they appear in the packfile itself. To further complicate matters, we have two ordering variables, "i" and "pos", and it is not clear to which order they apply. Let's clarify this by using an unambiguous name where possible, and leaving a comment for the variable that does double-duty. Signed-off-by: Jeff King <peff@peff.net> Acked-by: Taylor Blau <me@ttaylorr.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'contrib/buildsystems')
0 files changed, 0 insertions, 0 deletions