]>
Commit | Line | Data |
---|---|---|
c91f0d92 JK |
1 | #ifndef STATUS_H |
2 | #define STATUS_H | |
3 | ||
f26a0012 | 4 | #include <stdio.h> |
50b7e70f | 5 | #include "string-list.h" |
f26a0012 | 6 | |
c91f0d92 JK |
7 | enum color_wt_status { |
8 | WT_STATUS_HEADER, | |
9 | WT_STATUS_UPDATED, | |
10 | WT_STATUS_CHANGED, | |
11 | WT_STATUS_UNTRACKED, | |
950ce2e2 | 12 | WT_STATUS_NOBRANCH, |
4d4d5726 | 13 | WT_STATUS_UNMERGED, |
c91f0d92 JK |
14 | }; |
15 | ||
4bfee30a | 16 | enum untracked_status_type { |
6c2ce048 MSO |
17 | SHOW_NO_UNTRACKED_FILES, |
18 | SHOW_NORMAL_UNTRACKED_FILES, | |
4bfee30a MSO |
19 | SHOW_ALL_UNTRACKED_FILES |
20 | }; | |
21 | extern enum untracked_status_type show_untracked_files; | |
22 | ||
50b7e70f JH |
23 | struct wt_status_change_data { |
24 | int worktree_status; | |
25 | int index_status; | |
26 | int stagemask; | |
27 | char *head_path; | |
28 | }; | |
29 | ||
c91f0d92 JK |
30 | struct wt_status { |
31 | int is_initial; | |
32 | char *branch; | |
33 | const char *reference; | |
c91f0d92 JK |
34 | int verbose; |
35 | int amend; | |
2074cb0a | 36 | int untracked; |
37d07f8f | 37 | int nowarn; |
2a3a3c24 JR |
38 | /* These are computed during processing of the individual sections */ |
39 | int commitable; | |
40 | int workdir_dirty; | |
41 | int workdir_untracked; | |
0f729f21 | 42 | const char *index_file; |
f26a0012 | 43 | FILE *fp; |
367c9886 | 44 | const char *prefix; |
50b7e70f | 45 | struct string_list change; |
c91f0d92 JK |
46 | }; |
47 | ||
ef90d6d4 | 48 | int git_status_config(const char *var, const char *value, void *cb); |
32efcd91 JS |
49 | extern int wt_status_use_color; |
50 | extern int wt_status_relative_paths; | |
c91f0d92 JK |
51 | void wt_status_prepare(struct wt_status *s); |
52 | void wt_status_print(struct wt_status *s); | |
50b7e70f | 53 | void wt_status_collect_changes(struct wt_status *s); |
c91f0d92 JK |
54 | |
55 | #endif /* STATUS_H */ |