I\'d like git status
to always use the short format:
$ git status --short
M file1
M dir/file2
?? file_untracked3
?? dir/file_untracked4
The easiest way is to use another alias, as I suggest in my comment. I think there is no way to create an alias with the name of a built-in command. If you insist on using git status
, another option is (git is open source after all):
builtin/commit.c
int cmd_status(int argc, const char **argv, const char *prefix)
switch-statement
code:
...
switch (status_format) {
case STATUS_FORMAT_SHORT:
wt_shortstatus_print(&s, null_termination);
break;
case STATUS_FORMAT_PORCELAIN:
wt_porcelain_print(&s, null_termination);
break;
case STATUS_FORMAT_LONG:
//s.verbose = verbose; <--lines have to be commented out
//wt_status_print(&s);
wt_shortstatus_print(&s, null_termination); //<-- line has to be added
break;
}
...