Re: [PATCH 07/13] rev-list: allow bitmaps when counting objects
- From
Jeff King <peff@peff.net>
- Date
- Feb 13, 2020, 22:27 UTC
- Message-ID
- <20200213222710.GA25317@coredump.intra.peff.net>
- In-Reply-To
- <xmqqftfeqhvp.fsf@gitster-ct.c.googlers.com>
On Thu, Feb 13, 2020 at 01:47:38PM -0800, Junio C Hamano wrote:
Show 12 quoted lines
> Jeff King <peff@peff.net> writes: > > > - count_bitmap_commit_list(bitmap_git, &commit_count, NULL, NULL, NULL); > > + count_bitmap_commit_list(bitmap_git, &commit_count, > > + revs->tree_objects ? &tree_count : NULL, > > + revs->blob_objects ? &blob_count : NULL, > > + revs->tag_objects ? &tag_count : NULL); > > So count_bitmap_commit_list() has been prepared to count non-commits > already, but we are just starting to use that feature? > > Interesting.
Yeah, it goes all the way back to fff42755ef (pack-bitmap: add support for bitmap indexes, 2013-12-21), but was never used for non-commits. I was pleasantly surprised that it actually worked. ;)
-Peff