]> git.ipfire.org Git - thirdparty/git.git/blob - wt-status.h
gitweb: pull ref markes pull out of subject <a> element
[thirdparty/git.git] / wt-status.h
1 #ifndef STATUS_H
2 #define STATUS_H
3
4 #include <stdio.h>
5
6 enum color_wt_status {
7 WT_STATUS_HEADER,
8 WT_STATUS_UPDATED,
9 WT_STATUS_CHANGED,
10 WT_STATUS_UNTRACKED,
11 WT_STATUS_NOBRANCH,
12 };
13
14 enum untracked_status_type {
15 SHOW_NO_UNTRACKED_FILES,
16 SHOW_NORMAL_UNTRACKED_FILES,
17 SHOW_ALL_UNTRACKED_FILES
18 };
19 extern enum untracked_status_type show_untracked_files;
20
21 struct wt_status {
22 int is_initial;
23 char *branch;
24 const char *reference;
25 int verbose;
26 int amend;
27 int untracked;
28 int nowarn;
29 /* These are computed during processing of the individual sections */
30 int commitable;
31 int workdir_dirty;
32 int workdir_untracked;
33 const char *index_file;
34 FILE *fp;
35 const char *prefix;
36 };
37
38 int git_status_config(const char *var, const char *value, void *cb);
39 extern int wt_status_use_color;
40 extern int wt_status_relative_paths;
41 void wt_status_prepare(struct wt_status *s);
42 void wt_status_print(struct wt_status *s);
43
44 #endif /* STATUS_H */