commit | 852f96b816ea8967e799a35b91ea4e941cd0d2ae | [log] [tgz] |
---|---|---|
author | Nicolas Pitre <nico@cam.org> | Wed Jul 16 02:31:37 2008 -0400 |
committer | Junio C Hamano <gitster@pobox.com> | Wed Jul 16 09:33:28 2008 -0700 |
tree | 47f7d8f7972ff6ab647bb1c25627becc245af465 | |
parent | 3205364fc4c1565a587f0f4f1751f4ebd1bc5c12 [diff] |
get rid of num_packed_objects() The coming index format change doesn't allow for the number of objects to be determined from the size of the index file directly. Instead, Let's initialize a field in the packed_git structure with the object count when the index is validated since the count is always known at that point. (based on commit 57059091fad25427bce9b3d47e073ce0518d164b) Signed-off-by: Nicolas Pitre <nico@cam.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>