http: make end_url_with_slash() public
Signed-off-by: Tay Ray Chuan <rctay89@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Tay Ray Chuan committed
Apr 8, 2010 at 10:15 UTC
eb9d47cf9b1cb36876df1cfd48ab57278729be6d
2 files changed
+2
-1
http.c
+1
-1
@@ -720,7 +720,7 @@ static inline int hex(int v)
720
return 'A' + v - 10;
721
}
722
723
-static void end_url_with_slash(struct strbuf *buf, const char *url)
723
+void end_url_with_slash(struct strbuf *buf, const char *url)
724
{
725
strbuf_addstr(buf, url);
726
if (buf->len && buf->buf[buf->len - 1] != '/')
http.h
+1
@@ -117,6 +117,7 @@ extern void append_remote_object_url(struct strbuf *buf, const char *url,
117
int only_two_digit_prefix);
118
extern char *get_remote_object_url(const char *url, const char *hex,
119
int only_two_digit_prefix);
120
+extern void end_url_with_slash(struct strbuf *buf, const char *url);
121
122
/* Options for http_request_*() */
123
#define HTTP_NO_CACHE 1