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

Function append_remote_object_url

http.c:1876–1885  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1874}
1875
1876void append_remote_object_url(struct strbuf *buf, const char *url,
1877 const char *hex,
1878 int only_two_digit_prefix)
1879{
1880 end_url_with_slash(buf, url);
1881
1882 strbuf_addf(buf, "objects/%.*s/", 2, hex);
1883 if (!only_two_digit_prefix)
1884 strbuf_addstr(buf, hex + 2);
1885}
1886
1887char *get_remote_object_url(const char *url, const char *hex,
1888 int only_two_digit_prefix)

Callers 2

get_remote_object_urlFunction · 0.85
start_putFunction · 0.85

Calls 3

end_url_with_slashFunction · 0.85
strbuf_addfFunction · 0.85
strbuf_addstrFunction · 0.85

Tested by

no test coverage detected