diff-index: keep the original index intact
[git/git.git] / wt-status.h
CommitLineData
c91f0d92
JK
1#ifndef STATUS_H
2#define STATUS_H
3
f26a0012
KH
4#include <stdio.h>
5
c91f0d92
JK
6enum color_wt_status {
7 WT_STATUS_HEADER,
8 WT_STATUS_UPDATED,
9 WT_STATUS_CHANGED,
10 WT_STATUS_UNTRACKED,
950ce2e2 11 WT_STATUS_NOBRANCH,
c91f0d92
JK
12};
13
4bfee30a 14enum untracked_status_type {
6c2ce048
MSO
15 SHOW_NO_UNTRACKED_FILES,
16 SHOW_NORMAL_UNTRACKED_FILES,
4bfee30a
MSO
17 SHOW_ALL_UNTRACKED_FILES
18};
19extern enum untracked_status_type show_untracked_files;
20
c91f0d92
JK
21struct wt_status {
22 int is_initial;
23 char *branch;
24 const char *reference;
c91f0d92
JK
25 int verbose;
26 int amend;
2074cb0a 27 int untracked;
37d07f8f 28 int nowarn;
2a3a3c24
JR
29 /* These are computed during processing of the individual sections */
30 int commitable;
31 int workdir_dirty;
32 int workdir_untracked;
0f729f21 33 const char *index_file;
f26a0012 34 FILE *fp;
367c9886 35 const char *prefix;
c91f0d92
JK
36};
37
ef90d6d4 38int git_status_config(const char *var, const char *value, void *cb);
32efcd91
JS
39extern int wt_status_use_color;
40extern int wt_status_relative_paths;
c91f0d92
JK
41void wt_status_prepare(struct wt_status *s);
42void wt_status_print(struct wt_status *s);
43
44#endif /* STATUS_H */