count-objects: recognize .bitmap in garbage-checking
commitd3d3e4c490c83daeba61ac1f2be5da2396f7411c
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>
Sat, 21 Dec 2013 14:00:34 +0000 (21 09:00 -0500)
committerJunio C Hamano <gitster@pobox.com>
Mon, 30 Dec 2013 20:19:23 +0000 (30 12:19 -0800)
tree8c6bd0e30887ec4ca99124fdc34d32bad36a62ff
parent5cf2741c5a55cfb63076ce679e4b5842595125c2
count-objects: recognize .bitmap in garbage-checking

Count-objects will report any "garbage" files in the packs
directory, including files whose extensions it does not
know (case 1), and files whose matching ".pack" file is
missing (case 2).  Without having learned about ".bitmap"
files, the current code reports all such files as garbage
(case 1), even if their pack exists. Instead, they should be
treated as case 2.

Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
sha1_file.c