git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[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]);
Next: Jeff King
Message 1 of 2 in “Let git remote accept up as alias to update”
  1. Let git remote accept up as alias to updateAlexey Zaytsev, Dec 13, 2008
  2. Jeff KingDec 14, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.