git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Let git remote accept up as alias to update
@ 2008-12-13 18:18 Alexey Zaytsev
  2008-12-14 11:25 ` Jeff King
  0 siblings, 1 reply; 2+ messages in thread
From: Alexey Zaytsev @ 2008-12-13 18:18 UTC (permalink / raw)
  To: git

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]);

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-12-14 11:26 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-13 18:18 [PATCH] Let git remote accept up as alias to update Alexey Zaytsev
2008-12-14 11:25 ` Jeff King

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).