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):
- get the git source code (e.g. http://github.com/git/git/)
- open the file
builtin/commit.c
- look for the function
int cmd_status(int argc, const char **argv, const char *prefix)
- at the bottom you find a
switch-statement
- comment out the two lines as shown in the following code
- add the line as in the following code
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;
}
...