MCPcopy Index your code
hub / github.com/git/git / new_http_pack_request

Function new_http_pack_request

http.c:2726–2736  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2724}
2725
2726struct http_pack_request *new_http_pack_request(
2727 const unsigned char *packed_git_hash, const char *base_url) {
2728
2729 struct strbuf buf = STRBUF_INIT;
2730
2731 end_url_with_slash(&buf, base_url);
2732 strbuf_addf(&buf, "objects/pack/pack-%s.pack",
2733 hash_to_hex(packed_git_hash));
2734 return new_direct_http_pack_request(packed_git_hash,
2735 strbuf_detach(&buf, NULL));
2736}
2737
2738struct http_pack_request *new_direct_http_pack_request(
2739 const unsigned char *packed_git_hash, char *url)

Callers 2

http_fetch_packFunction · 0.85
start_fetch_packedFunction · 0.85

Calls 5

end_url_with_slashFunction · 0.85
strbuf_addfFunction · 0.85
hash_to_hexFunction · 0.85
strbuf_detachFunction · 0.85

Tested by

no test coverage detected