count-objects: use for_each_loose_file_in_objdir
authorJeff King <peff@peff.net>
Wed, 15 Oct 2014 22:41:11 +0000 (18:41 -0400)
committerJunio C Hamano <gitster@pobox.com>
Thu, 16 Oct 2014 17:10:41 +0000 (10:10 -0700)
commit4a1e693a30c816fa5293c5f9e83e1e98ee87584e
tree45aa58759c829b6e54fc2afc2fe3b63c25130a15
parentcac05d4dfd148071462939a61ecd44cf932a0b02
count-objects: use for_each_loose_file_in_objdir

This drops our line count considerably, and should make
things more readable by keeping the counting logic separate
from the traversal.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/count-objects.c