quote: move comment before sq_quote_buf()

A big comment at the beginning of quote.c is really related to sq_quote_buf(), so let's move it in front of this function. Signed-off-by: Christian Couder <chriscool@tuxfamily.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Christian Couder committed Oct 8, 2015 at 00:05 UTC 44cd91eab2992cbf63c789321f16c087696ce324
1 file changed +5 -5
quote.c
+5 -5
@@ -4,6 +4,11 @@
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
@@ -16,11 +21,6 @@ int quote_path_fully = 1;
21 * a'b ==> a'\''b ==> 'a'\''b'
22 * a!b ==> a'\!'b ==> 'a'\!'b'
23 */
19 -static inline int need_bs_quote(char c)
20 -{
21 - return (c == '\'' || c == '!');
22 -}
23 -
24 void sq_quote_buf(struct strbuf *dst, const char *src)
25 {
26 char *to_free = NULL;