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