MCPcopy Create free account
hub / github.com/git/git / odb_pack_name

Function odb_pack_name

packfile.c:30–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28#include "pack-mtimes.h"
29
30char *odb_pack_name(struct repository *r, struct strbuf *buf,
31 const unsigned char *hash, const char *ext)
32{
33 strbuf_reset(buf);
34 strbuf_addf(buf, "%s/pack/pack-%s.%s", repo_get_object_directory(r),
35 hash_to_hex_algop(hash, r->hash_algo), ext);
36 return buf->buf;
37}
38
39static unsigned int pack_used_ctr;
40static unsigned int pack_mmap_calls;

Callers 6

write_special_fileFunction · 0.85
rename_tmp_packfileFunction · 0.85
keep_packFunction · 0.85
unkeep_all_packsFunction · 0.85
cmd_pack_redundantFunction · 0.85

Calls 3

strbuf_addfFunction · 0.85
hash_to_hex_algopFunction · 0.85

Tested by

no test coverage detected