pack: move approximate object count to object store
authorStefan Beller <redacted>
Fri, 23 Mar 2018 17:21:02 +0000 (18:21 +0100)
committerJunio C Hamano <redacted>
Mon, 26 Mar 2018 17:05:55 +0000 (10:05 -0700)
commit9a00580d0383fe60c70e966e66584e626ca3a846
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 <redacted>
Signed-off-by: Jonathan Nieder <redacted>
Signed-off-by: Nguyễn Thái Ngọc Duy <redacted>
Signed-off-by: Junio C Hamano <redacted>
object-store.h
packfile.c
git clone https://git.99rst.org/PROJECT