summaryrefslogtreecommitdiff
path: root/wt-status.c
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2009-12-07 00:17:15 -0500
committerJunio C Hamano <gitster@pobox.com>2009-12-07 00:40:22 -0800
commit4a7cc2fdf39c90e6eff84d30b86490cac2c33705 (patch)
treebeb918d27e1a49d4df08ad47eb0e19a66e195b47 /wt-status.c
parent3fe2a894e98566dd91e69982552454cfb381cf24 (diff)
downloadgit-4a7cc2fdf39c90e6eff84d30b86490cac2c33705.tar.gz
status: disable color for porcelain format
The porcelain format is identical to the shortstatus format, except that it should not respect any user configuration, including color. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'wt-status.c')
-rw-r--r--wt-status.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/wt-status.c b/wt-status.c
index 696c6b0bf1..756defea1a 100644
--- a/wt-status.c
+++ b/wt-status.c
@@ -688,3 +688,9 @@ void wt_shortstatus_print(struct wt_status *s, int null_termination)
wt_shortstatus_untracked(null_termination, it, s);
}
}
+
+void wt_porcelain_print(struct wt_status *s, int null_termination)
+{
+ s->use_color = 0;
+ wt_shortstatus_print(s, null_termination);
+}