From: Junio C Hamano Date: Fri, 15 Feb 2013 23:20:51 GMT Subject: Re: [PATCH v4+ 3/4] count-objects: report garbage files in pack directory too Message-ID: <7vliapf9kc.fsf@alter.siamese.dyndns.org> In-Reply-To: <1360930030-21211-1-git-send-email-pclouds@gmail.com> Nguyễn Thái Ngọc Duy writes: > prepare_packed_git_one() is modified to allow count-objects to hook a > report function to so we don't need to duplicate the pack searching > logic in count-objects.c. When report_pack_garbage is NULL, the > overhead is insignificant. > > The garbage is reported with warning() instead of error() in packed > garbage case because it's not an error to have garbage. Loose garbage > is still reported as errors and will be converted to warnings later. > > Signed-off-by: Nguyễn Thái Ngọc Duy > --- Will replace the one from the other day and advance the topic to 'next'. Thanks.