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

Function need_bs_quote

quote.c:11–14  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9int quote_path_fully = 1;
10
11static inline int need_bs_quote(char c)
12{
13 return (c == '\'' || c == '!');
14}
15
16/* Help to copy the thing properly quoted for the shell safety.
17 * any single quote is replaced with '\'', any exclamation point

Callers 2

sq_quote_bufFunction · 0.85
sq_dequote_stepFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected