make 'git describe --all --contains' work
[git/spearce.git] / wt-status.h
blob02afaa60eee74018e074a4dcb3bec97c2e0ce9dc
1 #ifndef STATUS_H
2 #define STATUS_H
4 #include <stdio.h>
6 enum color_wt_status {
7 WT_STATUS_HEADER,
8 WT_STATUS_UPDATED,
9 WT_STATUS_CHANGED,
10 WT_STATUS_UNTRACKED,
13 struct wt_status {
14 int is_initial;
15 char *branch;
16 const char *reference;
17 int verbose;
18 int amend;
19 int untracked;
20 int nowarn;
21 /* These are computed during processing of the individual sections */
22 int commitable;
23 int workdir_dirty;
24 int workdir_untracked;
25 const char *index_file;
26 FILE *fp;
27 const char *prefix;
30 int git_status_config(const char *var, const char *value);
31 int wt_status_use_color;
32 int wt_status_relative_paths;
33 void wt_status_prepare(struct wt_status *s);
34 void wt_status_print(struct wt_status *s);
36 #endif /* STATUS_H */