Skip to content
Newer
Older
100644 37 lines (31 sloc) 711 Bytes
c91f0d9 @peff git-commit.sh: convert run_status to a C builtin
peff authored Sep 8, 2006
1 #ifndef STATUS_H
2 #define STATUS_H
3
f26a001 Enable wt-status output to a given FILE pointer.
Kristian Høgsberg authored Sep 17, 2007
4 #include <stdio.h>
5
c91f0d9 @peff git-commit.sh: convert run_status to a C builtin
peff authored Sep 8, 2006
6 enum color_wt_status {
7 WT_STATUS_HEADER,
8 WT_STATUS_UPDATED,
9 WT_STATUS_CHANGED,
10 WT_STATUS_UNTRACKED,
11 };
12
13 struct wt_status {
14 int is_initial;
15 char *branch;
16 const char *reference;
17 int verbose;
18 int amend;
2074cb0 @dscho Teach runstatus about --untracked
dscho authored Sep 12, 2006
19 int untracked;
37d07f8 @gitster git-commit: squelch needless message during an empty merge
gitster authored Dec 12, 2007
20 int nowarn;
2a3a3c2 @j-r Provide better feedback for the untracked only case in status output
j-r authored Jan 10, 2007
21 /* These are computed during processing of the individual sections */
22 int commitable;
23 int workdir_dirty;
24 int workdir_untracked;
0f729f2 Enable wt-status to run against non-standard index file.
Kristian Høgsberg authored Sep 17, 2007
25 const char *index_file;
f26a001 Enable wt-status output to a given FILE pointer.
Kristian Høgsberg authored Sep 18, 2007
26 FILE *fp;
367c988 @dscho git status: show relative paths when run in a subdirectory
dscho authored Nov 11, 2007
27 const char *prefix;
c91f0d9 @peff git-commit.sh: convert run_status to a C builtin
peff authored Sep 8, 2006
28 };
29
30 int git_status_config(const char *var, const char *value);
bc5d248 @gitster builtin-commit: do not color status output shown in the message template
gitster authored Nov 18, 2007
31 int wt_status_use_color;
46f721c @peff add status.relativePaths config variable
peff authored Dec 7, 2007
32 int wt_status_relative_paths;
c91f0d9 @peff git-commit.sh: convert run_status to a C builtin
peff authored Sep 8, 2006
33 void wt_status_prepare(struct wt_status *s);
34 void wt_status_print(struct wt_status *s);
35
36 #endif /* STATUS_H */
Something went wrong with that request. Please try again.