[PATCH] Let git remote accept up as alias to update
- From
Alexey Zaytsev <alexey.zaytsev@gmail.com>
- Date
- Dec 13, 2008, 18:18 UTC
- Message-ID
- <20081213181704.20126.4200.stgit@zaytsev.su>
Signed-off-by: Alexey Zaytsev <alexey.zaytsev@gmail.com> ---
Don't know why, but I keep typing remote up instead of remote update. As update is probably by far the most used remote action, can we please have this alias?
builtin-remote.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/builtin-remote.c b/builtin-remote.c index abc8dd8..8f5cd6d 100644 --- a/builtin-remote.c +++ b/builtin-remote.c @@ -893,7 +893,7 @@ int cmd_remote(int argc, const char **argv, const char *prefix) result = show(argc, argv); else if (!strcmp(argv[0], "prune")) result = prune(argc, argv); - else if (!strcmp(argv[0], "update")) + else if (!strcmp(argv[0], "update") || !strcmp(argv[0], "up")) result = update(argc, argv); else { error("Unknown subcommand: %s", argv[0]);