Merge branch 'bc/wildcard-credential'
Update the parser used for credential.<URL>.<variable> configuration, to handle <URL>s with '/' in them correctly. * bc/wildcard-credential: credential: fix matching URLs with multiple levels in path
This commit is contained in:
7
strbuf.h
7
strbuf.h
@ -378,11 +378,16 @@ size_t strbuf_expand_dict_cb(struct strbuf *sb,
|
||||
*/
|
||||
void strbuf_addbuf_percentquote(struct strbuf *dst, const struct strbuf *src);
|
||||
|
||||
#define STRBUF_ENCODE_SLASH 1
|
||||
|
||||
/**
|
||||
* Append the contents of a string to a strbuf, percent-encoding any characters
|
||||
* that are needed to be encoded for a URL.
|
||||
*
|
||||
* If STRBUF_ENCODE_SLASH is set in flags, percent-encode slashes. Otherwise,
|
||||
* slashes are not percent-encoded.
|
||||
*/
|
||||
void strbuf_add_percentencode(struct strbuf *dst, const char *src);
|
||||
void strbuf_add_percentencode(struct strbuf *dst, const char *src, int flags);
|
||||
|
||||
/**
|
||||
* Append the given byte size as a human-readable string (i.e. 12.23 KiB,
|
||||
|
Reference in New Issue
Block a user