summaryrefslogtreecommitdiff
path: root/git-count-objects-script
diff options
context:
space:
mode:
authorEric Ju <eric.peijian@gmail.com>2026-07-24 12:54:13 +0200
committerJunio C Hamano <gitster@pobox.com>2026-07-24 08:46:58 -0700
commitf05e099dea8ceeae5990f77ed6f4dc91d4be4694 (patch)
treec5adc3b20456e823bf636ff7c94bf3682c95fbca /git-count-objects-script
parent840eb9a1c54f76b1e16b249eb3f4240c3622daf3 (diff)
cat-file: declare loop counter inside for()
Declare loop counters in the for statement when they are only used within the loop body, limiting their scope and improving readability. While updating the loop counters, use size_t instead of int for counters that iterate over object counts. Update the 'nr' parameter of dispatch_calls() to size_t as all callers already pass a value of that type. Helped-by: Christian Couder <chriscool@tuxfamily.org> Signed-off-by: Eric Ju <eric.peijian@gmail.com> Signed-off-by: Pablo Sabater <pabloosabaterr@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-count-objects-script')
0 files changed, 0 insertions, 0 deletions