4 extern int wt_status_use_color
;
6 static const char runstatus_usage
[] =
7 "git-runstatus [--color|--nocolor] [--amend] [--verbose] [--untracked]";
9 int cmd_runstatus(int argc
, const char **argv
, const char *prefix
)
14 git_config(git_status_config
);
15 wt_status_prepare(&s
);
17 for (i
= 1; i
< argc
; i
++) {
18 if (!strcmp(argv
[i
], "--color"))
19 wt_status_use_color
= 1;
20 else if (!strcmp(argv
[i
], "--nocolor"))
21 wt_status_use_color
= 0;
22 else if (!strcmp(argv
[i
], "--amend")) {
24 s
.reference
= "HEAD^1";
26 else if (!strcmp(argv
[i
], "--verbose"))
28 else if (!strcmp(argv
[i
], "--untracked"))
31 usage(runstatus_usage
);
35 return s
.commitable
? 0 : 1;