diff options
author | Jeff King <peff@peff.net> | 2011-12-10 05:34:20 -0500 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2011-12-12 16:08:27 -0800 |
commit | c505116b91d3c92f0c3066cb9806773d2df11088 (patch) | |
tree | 5a78822db20c9dbd81557fb376057eac1e1b288e /strbuf.h | |
parent | 6320358e31d42f25fa4ac5eb4e72574630de1692 (diff) | |
download | git-c505116b91d3c92f0c3066cb9806773d2df11088.tar.gz |
strbuf: add strbuf_add*_urlencode
This just follows the rfc3986 rules for percent-encoding
url data into a strbuf.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'strbuf.h')
-rw-r--r-- | strbuf.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -115,4 +115,9 @@ extern int launch_editor(const char *path, struct strbuf *buffer, const char *co extern int strbuf_branchname(struct strbuf *sb, const char *name); extern int strbuf_check_branch_ref(struct strbuf *sb, const char *name); +extern void strbuf_add_urlencode(struct strbuf *, const char *, size_t, + int reserved); +extern void strbuf_addstr_urlencode(struct strbuf *, const char *, + int reserved); + #endif /* STRBUF_H */ |