summaryrefslogtreecommitdiff
path: root/string-list.c
diff options
context:
space:
mode:
authorJonathan Nieder <jrnieder@gmail.com>2011-02-26 05:09:41 (GMT)
committerJunio C Hamano <gitster@pobox.com>2011-03-08 20:10:02 (GMT)
commite0335fcdad28da578904bb33fcf1dfbcdf172599 (patch)
tree66c92c293581575690b26ab211b6d880a45d8eab /string-list.c
parent26db0f2e3afc043e184a5e0ce5eb7c53aeb1f644 (diff)
downloadgit-e0335fcdad28da578904bb33fcf1dfbcdf172599.zip
git-e0335fcdad28da578904bb33fcf1dfbcdf172599.tar.gz
git-e0335fcdad28da578904bb33fcf1dfbcdf172599.tar.bz2
wt-status: add helpers for printing wt-status lines
Introduce status_printf{,_ln,_more} wrapper functions around color_vfprintf() which take care of adding "#" to the beginning of status lines automatically. The semantics: - status_printf() is just like color_fprintf() but it adds a "# " at the beginning of each line of output; - status_printf_ln() is a convenience function that additionally adds "\n" at the end; - status_printf_more() is a variant of status_printf() used to continue lines that have already started. It suppresses the "#" at the beginning of the first line. Helped-by: Junio C Hamano <gitster@pobox.com> Signed-off-by: Jonathan Nieder <jrnieder@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'string-list.c')
0 files changed, 0 insertions, 0 deletions