sha1-name.c: remove the_repo from find_abbrev_len_packed()
[gitweb.git] / packfile.h
index d70c6d9afb94c77c285fe8ee3237f7a40867157a..f04440f9840f499b7c9163b8ad595cdbb9a5e9c3 100644 (file)
@@ -57,7 +57,8 @@ struct packed_git *get_all_packs(struct repository *r);
  * Give a rough count of objects in the repository. This sacrifices accuracy
  * for speed.
  */
-unsigned long approximate_object_count(void);
+unsigned long repo_approximate_object_count(struct repository *r);
+#define approximate_object_count() repo_approximate_object_count(the_repository)
 
 extern struct packed_git *find_sha1_pack(const unsigned char *sha1,
                                         struct packed_git *packs);