diff options
author | Junio C Hamano <gitster@pobox.com> | 2020-03-05 21:43:02 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-03-05 21:43:02 +0300 |
commit | 2cbb0586697585995908c325a0c70aad37602274 (patch) | |
tree | 829da1f1b35211523f214783fc6350a37f62d38d /strbuf.h | |
parent | 25063e2530e2fbdccf5d372a8ad80309421c9df1 (diff) | |
parent | 46fd7b390034eb5dde6a3f955e677c5260e4d10c (diff) |
Merge branch 'bc/wildcard-credential'
A configuration element used for credential subsystem can now use
wildcard pattern to specify for which set of URLs the entry
applies.
* bc/wildcard-credential:
credential: allow wildcard patterns when matching config
credential: use the last matching username in the config
t0300: add tests for some additional cases
t1300: add test for urlmatch with multiple wildcards
mailmap: add an additional email address for brian m. carlson
Diffstat (limited to 'strbuf.h')
-rw-r--r-- | strbuf.h | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -379,6 +379,12 @@ size_t strbuf_expand_dict_cb(struct strbuf *sb, void strbuf_addbuf_percentquote(struct strbuf *dst, const struct strbuf *src); /** + * Append the contents of a string to a strbuf, percent-encoding any characters + * that are needed to be encoded for a URL. + */ +void strbuf_add_percentencode(struct strbuf *dst, const char *src); + +/** * Append the given byte size as a human-readable string (i.e. 12.23 KiB, * 3.50 MiB). */ |