diff options
author | Jeff King <peff@peff.net> | 2021-01-14 15:11:10 -0500 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-01-14 18:22:27 -0800 |
commit | 779412b9d99544ae71eefabb699a109b1638f96c (patch) | |
tree | 8859f197d46a91dd0411c55def07d7f3aea748b7 /Documentation/config/gc.txt | |
parent | pack-revindex.c: avoid direct revindex access in 'offset_to_pack_pos()' (diff) | |
download | tgif-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 'Documentation/config/gc.txt')
0 files changed, 0 insertions, 0 deletions