for-each-ref, quote: convert *_quote_print -> *_quote_buf
commit10d0167fef35c7a4e4e3ef9dd448594b62089c5a
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>
Tue, 30 Jul 2013 08:31:25 +0000 (30 14:01 +0530)
committerJunio C Hamano <gitster@pobox.com>
Tue, 30 Jul 2013 15:06:27 +0000 (30 08:06 -0700)
tree367433861d0aebab3512ce7a82efe5c1d7d9eb36
parent8f6a3e5d71fa1800c3f330bab2b6b6399ec7aea7
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>
builtin/for-each-ref.c
quote.c
quote.h