We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 71ae535 + 44cd91e commit 119ffa3Copy full SHA for 119ffa3
quote.c
@@ -4,9 +4,15 @@
4
5
int quote_path_fully = 1;
6
7
+static inline int need_bs_quote(char c)
8
+{
9
+ return (c == '\'' || c == '!');
10
+}
11
+
12
/* Help to copy the thing properly quoted for the shell safety.
13
* any single quote is replaced with '\'', any exclamation point
14
* is replaced with '\!', and the whole thing is enclosed in a
15
+ * single quote pair.
16
*
17
* E.g.
18
* original sq_quote result
@@ -15,11 +21,6 @@ int quote_path_fully = 1;
21
* a'b ==> a'\''b ==> 'a'\''b'
22
* a!b ==> a'\!'b ==> 'a'\!'b'
23
*/
-static inline int need_bs_quote(char c)
19
-{
20
- return (c == '\'' || c == '!');
-}
-
24
void sq_quote_buf(struct strbuf *dst, const char *src)
25
{
26
char *to_free = NULL;
0 commit comments