summaryrefslogtreecommitdiff
path: root/wt-status.h
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@redhat.com>2007-09-18 00:06:42 (GMT)
committerJunio C Hamano <gitster@pobox.com>2007-09-19 19:52:19 (GMT)
commitf26a0012262106e0c7e92d8d07f00611112d3a8d (patch)
tree819a350da21af2493a29a55519e4924a0b29697f /wt-status.h
parent6b30852ded5074652f4304a303521932235c62db (diff)
downloadgit-f26a0012262106e0c7e92d8d07f00611112d3a8d.zip
git-f26a0012262106e0c7e92d8d07f00611112d3a8d.tar.gz
git-f26a0012262106e0c7e92d8d07f00611112d3a8d.tar.bz2
Enable wt-status output to a given FILE pointer.
Still defaults to stdout, but you can now override wt_status.fp after calling wt_status_prepare(). Signed-off-by: Kristian Høgsberg <krh@redhat.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'wt-status.h')
-rw-r--r--wt-status.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/wt-status.h b/wt-status.h
index cfea4ae..4f3a615 100644
--- a/wt-status.h
+++ b/wt-status.h
@@ -1,6 +1,8 @@
#ifndef STATUS_H
#define STATUS_H
+#include <stdio.h>
+
enum color_wt_status {
WT_STATUS_HEADER,
WT_STATUS_UPDATED,
@@ -19,6 +21,7 @@ struct wt_status {
int commitable;
int workdir_dirty;
int workdir_untracked;
+ FILE *fp;
};
int git_status_config(const char *var, const char *value);