5 extern int wt_status_use_color
;
7 static const char runstatus_usage
[] =
8 "git-runstatus [--color|--nocolor] [--amend] [--verbose] [--untracked]";
10 int cmd_runstatus(int argc
, const char **argv
, const char *prefix
)
15 git_config(git_status_config
);
16 wt_status_prepare(&s
);
18 for (i
= 1; i
< argc
; i
++) {
19 if (!strcmp(argv
[i
], "--color"))
20 wt_status_use_color
= 1;
21 else if (!strcmp(argv
[i
], "--nocolor"))
22 wt_status_use_color
= 0;
23 else if (!strcmp(argv
[i
], "--amend")) {
25 s
.reference
= "HEAD^1";
27 else if (!strcmp(argv
[i
], "--verbose"))
29 else if (!strcmp(argv
[i
], "--untracked"))
32 usage(runstatus_usage
);
36 return s
.commitable
? 0 : 1;