Re: [PATCH 1/1] Teach for-each-ref about a little language called Tcl.

From: Sergey Vlasov <vsu@altlinux.ru>
Date: 2007-01-29 20:51:22
On Sun, Jan 28, 2007 at 12:58:51PM -0800, Junio C Hamano wrote:
> Then I'd commit after applying this on top of Shawn's.  Ok?
> 
> diff --git a/quote.c b/quote.c
> index 01db5e2..fb9e4ca 100644
> --- a/quote.c
> +++ b/quote.c
> @@ -395,11 +395,9 @@ void tcl_quote_print(FILE *stream, const char *src)
>  	fputc('"', stream);
>  	while ((c = *src++)) {
>  		switch (c) {
> -		case '[':
> -		case ']':
> -		case '$':
> -		case '\\':
> -		case '"':
> +		case '[': case ']':
> +		case '{': case '}':
> +		case '$': case '\\': case '"':
>  			fputc('\\', stream);
>  		default:
>  			fputc(c, stream);

Looks OK (still didn't have time to actually test this thing).

-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Received on Mon Jan 29 20:51:46 2007

This archive was generated by hypermail 2.1.8 : 2007-01-29 20:53:25 EST