Skip to content

Commit

Permalink
http: make end_url_with_slash() public
Browse files Browse the repository at this point in the history
Signed-off-by: Tay Ray Chuan <rctay89@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Tay Ray Chuan authored and Junio C Hamano committed Apr 10, 2010
1 parent 9ee6bcd commit eb9d47c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion http.c
Original file line number Diff line number Diff line change
Expand Up @@ -720,7 +720,7 @@ static inline int hex(int v)
return 'A' + v - 10;
}

static void end_url_with_slash(struct strbuf *buf, const char *url)
void end_url_with_slash(struct strbuf *buf, const char *url)
{
strbuf_addstr(buf, url);
if (buf->len && buf->buf[buf->len - 1] != '/')
Expand Down
1 change: 1 addition & 0 deletions http.h
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ extern void append_remote_object_url(struct strbuf *buf, const char *url,
int only_two_digit_prefix);
extern char *get_remote_object_url(const char *url, const char *hex,
int only_two_digit_prefix);
extern void end_url_with_slash(struct strbuf *buf, const char *url);

/* Options for http_request_*() */
#define HTTP_NO_CACHE 1
Expand Down

0 comments on commit eb9d47c

Please sign in to comment.