Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

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