summaryrefslogtreecommitdiff
path: root/quote.h
diff options
context:
space:
mode:
authorShawn O. Pearce <spearce@spearce.org>2007-01-28 02:39:13 -0500
committerJunio C Hamano <junkio@cox.net>2007-01-28 13:00:26 -0800
commit5558e55c06a1e897f3064f0c8a343d5c9858f6b2 (patch)
tree7bc79784574ecdba84ff23a67ea7263f88f86240 /quote.h
parentcace16fdcb5d1a3518f92e04c65e78f06b0cd051 (diff)
downloadgit-5558e55c06a1e897f3064f0c8a343d5c9858f6b2.tar.gz
Teach for-each-ref about a little language called Tcl.
Love it or hate it, some people actually still program in Tcl. Some of those programs are meant for interfacing with Git. Programs such as gitk and git-gui. It may be useful to have Tcl-safe output available from for-each-ref, just like shell, Perl and Python already enjoy. Thanks to Sergey Vlasov for pointing out the horrible flaws in the first and second version of this patch, and steering me in the right direction for Tcl value quoting. Signed-off-by: Shawn O. Pearce <spearce@spearce.org> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'quote.h')
-rw-r--r--quote.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/quote.h b/quote.h
index b55e699750..bdc3610df5 100644
--- a/quote.h
+++ b/quote.h
@@ -55,5 +55,6 @@ extern void write_name_quoted(const char *prefix, int prefix_len,
/* quoting as a string literal for other languages */
extern void perl_quote_print(FILE *stream, const char *src);
extern void python_quote_print(FILE *stream, const char *src);
+extern void tcl_quote_print(FILE *stream, const char *src);
#endif