Skip to content
Newer
Older
100644 59 lines (50 sloc) 1.14 KB
c91f0d9 @peff git-commit.sh: convert run_status to a C builtin
peff authored Sep 8, 2006
1 #ifndef STATUS_H
2 #define STATUS_H
3
f26a001 Enable wt-status output to a given FILE pointer.
Kristian Høgsberg authored Sep 17, 2007
4 #include <stdio.h>
50b7e70 @gitster wt-status.c: rework the way changes to the index and work tree are su…
gitster authored Aug 4, 2009
5 #include "string-list.h"
23900a9 @gitster wt-status: move wt_status_colors[] into wt_status structure
gitster authored Aug 9, 2009
6 #include "color.h"
f26a001 Enable wt-status output to a given FILE pointer.
Kristian Høgsberg authored Sep 18, 2007
7
c91f0d9 @peff git-commit.sh: convert run_status to a C builtin
peff authored Sep 8, 2006
8 enum color_wt_status {
23900a9 @gitster wt-status: move wt_status_colors[] into wt_status structure
gitster authored Aug 10, 2009
9 WT_STATUS_HEADER = 0,
c91f0d9 @peff git-commit.sh: convert run_status to a C builtin
peff authored Sep 8, 2006
10 WT_STATUS_UPDATED,
11 WT_STATUS_CHANGED,
12 WT_STATUS_UNTRACKED,
950ce2e @edendevelopment Updated status to show 'Not currently on any branch' in red
edendevelopment authored May 22, 2008
13 WT_STATUS_NOBRANCH,
4d4d572 @gitster status: show worktree status of conflicted paths separately
gitster authored Aug 5, 2009
14 WT_STATUS_UNMERGED,
c91f0d9 @peff git-commit.sh: convert run_status to a C builtin
peff authored Sep 8, 2006
15 };
16
4bfee30 Add an optional <mode> argument to commit/status -u|--untracked-files…
Marius Storm-Olsen authored Jun 5, 2008
17 enum untracked_status_type {
6c2ce04 Add argument 'no' commit/status option -u|--untracked-files
Marius Storm-Olsen authored Jun 5, 2008
18 SHOW_NO_UNTRACKED_FILES,
19 SHOW_NORMAL_UNTRACKED_FILES,
4bfee30 Add an optional <mode> argument to commit/status -u|--untracked-files…
Marius Storm-Olsen authored Jun 5, 2008
20 SHOW_ALL_UNTRACKED_FILES
21 };
22
50b7e70 @gitster wt-status.c: rework the way changes to the index and work tree are su…
gitster authored Aug 5, 2009
23 struct wt_status_change_data {
24 int worktree_status;
25 int index_status;
26 int stagemask;
27 char *head_path;
28 };
29
c91f0d9 @peff git-commit.sh: convert run_status to a C builtin
peff authored Sep 8, 2006
30 struct wt_status {
31 int is_initial;
32 char *branch;
33 const char *reference;
34 int verbose;
35 int amend;
37d07f8 @gitster git-commit: squelch needless message during an empty merge
gitster authored Dec 12, 2007
36 int nowarn;
d249b09 @gitster wt-status: move many global settings to wt_status structure
gitster authored Aug 9, 2009
37 int use_color;
38 int relative_paths;
39 int submodule_summary;
40 enum untracked_status_type show_untracked_files;
23900a9 @gitster wt-status: move wt_status_colors[] into wt_status structure
gitster authored Aug 10, 2009
41 char color_palette[WT_STATUS_UNMERGED+1][COLOR_MAXLEN];
d249b09 @gitster wt-status: move many global settings to wt_status structure
gitster authored Aug 10, 2009
42
2a3a3c2 @j-r Provide better feedback for the untracked only case in status output
j-r authored Jan 10, 2007
43 /* These are computed during processing of the individual sections */
44 int commitable;
45 int workdir_dirty;
46 int workdir_untracked;
0f729f2 Enable wt-status to run against non-standard index file.
Kristian Høgsberg authored Sep 17, 2007
47 const char *index_file;
f26a001 Enable wt-status output to a given FILE pointer.
Kristian Høgsberg authored Sep 18, 2007
48 FILE *fp;
367c988 @dscho git status: show relative paths when run in a subdirectory
dscho authored Nov 11, 2007
49 const char *prefix;
50b7e70 @gitster wt-status.c: rework the way changes to the index and work tree are su…
gitster authored Aug 5, 2009
50 struct string_list change;
7637868 @gitster wt-status: collect untracked files in a separate "collect" phase
gitster authored Aug 10, 2009
51 struct string_list untracked;
c91f0d9 @peff git-commit.sh: convert run_status to a C builtin
peff authored Sep 8, 2006
52 };
53
54 void wt_status_prepare(struct wt_status *s);
55 void wt_status_print(struct wt_status *s);
7637868 @gitster wt-status: collect untracked files in a separate "collect" phase
gitster authored Aug 10, 2009
56 void wt_status_collect(struct wt_status *s);
c91f0d9 @peff git-commit.sh: convert run_status to a C builtin
peff authored Sep 8, 2006
57
58 #endif /* STATUS_H */
Something went wrong with that request. Please try again.