Skip to content

Commit eb9d47c

Browse files
rctaygitster
authored andcommitted
http: make end_url_with_slash() public
Signed-off-by: Tay Ray Chuan <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 9ee6bcd commit eb9d47c

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

http.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -720,7 +720,7 @@ static inline int hex(int v)
720720
return 'A' + v - 10;
721721
}
722722

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)
724724
{
725725
strbuf_addstr(buf, url);
726726
if (buf->len && buf->buf[buf->len - 1] != '/')

http.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ extern void append_remote_object_url(struct strbuf *buf, const char *url,
117117
int only_two_digit_prefix);
118118
extern char *get_remote_object_url(const char *url, const char *hex,
119119
int only_two_digit_prefix);
120+
extern void end_url_with_slash(struct strbuf *buf, const char *url);
120121

121122
/* Options for http_request_*() */
122123
#define HTTP_NO_CACHE 1

0 commit comments

Comments
 (0)