pack: move approximate object count to object store
commit9a00580d0383fe60c70e966e66584e626ca3a846
authorStefan Beller <sbeller@google.com>
Fri, 23 Mar 2018 17:21:02 +0000 (23 18:21 +0100)
committerJunio C Hamano <gitster@pobox.com>
Mon, 26 Mar 2018 17:05:55 +0000 (26 10:05 -0700)
tree3baff3d5f186ea0134d4b25acea0b23a37a2bd72
parent5508f69348ee1073666d3611a4a62ecdb0849e4e
pack: move approximate object count to object store

The approximate_object_count() function maintains a rough count of
objects in a repository to estimate how long object name abbreviates
should be.  Object names are scoped to a repository and the
appropriate length may differ by repository, so the object count
should not be global.

Signed-off-by: Stefan Beller <sbeller@google.com>
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
object-store.h
packfile.c