MCPcopy Create free account
hub / github.com/git/git / strbuf_addbuf_percentquote

Function strbuf_addbuf_percentquote

strbuf.c:489–498  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

487}
488
489void strbuf_addbuf_percentquote(struct strbuf *dst, const struct strbuf *src)
490{
491 size_t i, len = src->len;
492
493 for (i = 0; i < len; i++) {
494 if (src->buf[i] == '%')
495 strbuf_addch(dst, '%');
496 strbuf_addch(dst, src->buf[i]);
497 }
498}
499
500#define URL_UNSAFE_CHARS " <>\"%{}|\\^`:?#[]@!$&'()*+,;="
501

Callers 1

print_commit_summaryFunction · 0.85

Calls 1

strbuf_addchFunction · 0.85

Tested by

no test coverage detected