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

Function sq_quote_argv

quote.c:85–95  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

83}
84
85void sq_quote_argv(struct strbuf *dst, const char **argv)
86{
87 int i;
88
89 /* Copy into destination buffer. */
90 strbuf_grow(dst, 255);
91 for (i = 0; argv[i]; ++i) {
92 strbuf_addch(dst, ' ');
93 sq_quote_buf(dst, argv[i]);
94 }
95}
96
97/*
98 * Legacy function to append each argv value, quoted as necessasry,

Callers 6

am_setupFunction · 0.85
cmd_parseoptFunction · 0.85
cmd_sq_quoteFunction · 0.85
bisect_append_log_quotedFunction · 0.85
bisect_startFunction · 0.85
bisect_runFunction · 0.85

Calls 3

strbuf_growFunction · 0.85
strbuf_addchFunction · 0.85
sq_quote_bufFunction · 0.85

Tested by

no test coverage detected