git-svn: fix parsing of timestamp obtained from svn
[git/dscho.git] / wt-status.h
blob78add09bd67c727babb61cd1eaa773bcd0c6e55e
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,
11 WT_STATUS_NOBRANCH,
14 enum untracked_status_type {
15 SHOW_NO_UNTRACKED_FILES,
16 SHOW_NORMAL_UNTRACKED_FILES,
17 SHOW_ALL_UNTRACKED_FILES
19 extern enum untracked_status_type show_untracked_files;
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;
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);
44 #endif /* STATUS_H */