aboutsummaryrefslogtreecommitdiff
path: root/wt-status.h
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2012-05-07 15:44:44 -0400
committerJeff King <peff@peff.net>2012-05-08 04:51:07 -0400
commit3207a3a29179c247d1ee9552511123e426845acb (patch)
treef3e0fcdadf9e9d7d81a1cd2716676bc7be393eb0 /wt-status.h
parent036dbbfb2d9127dcef3d742b99ac8677006f6d33 (diff)
downloadgit-3207a3a29179c247d1ee9552511123e426845acb.tar.gz
git-3207a3a29179c247d1ee9552511123e426845acb.tar.xz
status: refactor null_termination option
This option is passed separately to the wt_status printing functions, whereas every other formatting option is contained in the wt_status struct itself. Let's do the same here, so we can avoid passing it around through the call stack. Signed-off-by: Jeff King <peff@peff.net>
Diffstat (limited to 'wt-status.h')
-rw-r--r--wt-status.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/wt-status.h b/wt-status.h
index 682b4c8f7..34a8d7614 100644
--- a/wt-status.h
+++ b/wt-status.h
@@ -56,6 +56,7 @@ struct wt_status {
enum untracked_status_type show_untracked_files;
const char *ignore_submodule_arg;
char color_palette[WT_STATUS_MAXSLOT][COLOR_MAXLEN];
+ int null_termination;
/* These are computed during processing of the individual sections */
int commitable;
@@ -72,8 +73,8 @@ void wt_status_prepare(struct wt_status *s);
void wt_status_print(struct wt_status *s);
void wt_status_collect(struct wt_status *s);
-void wt_shortstatus_print(struct wt_status *s, int null_termination, int show_branch);
-void wt_porcelain_print(struct wt_status *s, int null_termination);
+void wt_shortstatus_print(struct wt_status *s, int show_branch);
+void wt_porcelain_print(struct wt_status *s);
void status_printf_ln(struct wt_status *s, const char *color, const char *fmt, ...)
;