4 char *odb_pack_name(struct strbuf
*buf
,
5 const unsigned char *sha1
,
9 strbuf_addf(buf
, "%s/pack/pack-%s.%s", get_object_directory(),
10 sha1_to_hex(sha1
), ext
);
14 char *sha1_pack_name(const unsigned char *sha1
)
16 static struct strbuf buf
= STRBUF_INIT
;
17 return odb_pack_name(&buf
, sha1
, "pack");
20 char *sha1_pack_index_name(const unsigned char *sha1
)
22 static struct strbuf buf
= STRBUF_INIT
;
23 return odb_pack_name(&buf
, sha1
, "idx");
26 unsigned int pack_used_ctr
;
27 unsigned int pack_mmap_calls
;
28 unsigned int peak_pack_open_windows
;
29 unsigned int pack_open_windows
;
30 unsigned int pack_open_fds
;
31 unsigned int pack_max_fds
;
32 size_t peak_pack_mapped
;
34 struct packed_git
*packed_git
;
36 static struct mru packed_git_mru_storage
;
37 struct mru
*packed_git_mru
= &packed_git_mru_storage
;