| 1874 | } |
| 1875 | |
| 1876 | void 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 | |
| 1887 | char *get_remote_object_url(const char *url, const char *hex, |
| 1888 | int only_two_digit_prefix) |
no test coverage detected