mirror of
https://github.com/git/git.git
synced 2025-12-12 20:36:24 +01:00
for-each-ref, quote: convert *_quote_print -> *_quote_buf
The print_value() function in for-each-ref.c prints values to stdout
immediately using {sq|perl|python|tcl}_quote_print(). Change these
lower-level quote functions to instead leave their results in strbuf
so that we can later add post-processing to the results of them.
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
Signed-off-by: Ramkumar Ramachandra <artagnon@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
committed by
Junio C Hamano
parent
8f6a3e5d71
commit
10d0167fef
6
quote.h
6
quote.h
@@ -68,8 +68,8 @@ extern char *quote_path_relative(const char *in, const char *prefix,
|
||||
struct strbuf *out);
|
||||
|
||||
/* 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);
|
||||
extern void perl_quote_buf(struct strbuf *sb, const char *src);
|
||||
extern void python_quote_buf(struct strbuf *sb, const char *src);
|
||||
extern void tcl_quote_buf(struct strbuf *sb, const char *src);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user