summaryrefslogtreecommitdiff
path: root/wt-status.h
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@redhat.com>2007-09-17 20:06:42 -0400
committerJunio C Hamano <gitster@pobox.com>2007-09-19 12:52:19 -0700
commitf26a0012262106e0c7e92d8d07f00611112d3a8d (patch)
tree819a350da21af2493a29a55519e4924a0b29697f /wt-status.h
parent6b30852ded5074652f4304a303521932235c62db (diff)
downloadgit-f26a0012262106e0c7e92d8d07f00611112d3a8d.tar.gz
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 cfea4ae688..4f3a615c32 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);