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

[PATCH] git-remote: no longer silent on unknown commands.

From
QTQuy Tonthat <qtonthat@gmail.com>
Date
Jan 13, 2007, 11:55 UTC
Message-ID
<45A8C8A9.2030706@gmail.com>
Signed-off-by: Quy Tonthat <qtonthat@gmail.com>
---
 git-remote.perl |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/git-remote.perl b/git-remote.perl
index 059c141..fc055b6 100755
--- a/git-remote.perl
+++ b/git-remote.perl
@@ -274,4 +274,9 @@ elsif ($ARGV[0] eq 'add') {
 	}
 	add_remote($ARGV[1], $ARGV[2]);
 }
-
+else {
+	print STDERR "Usage: git remote\n";
+	print STDERR "       git remote add <name> <url>\n";
+	print STDERR "       git remote show <name>\n";
+	exit(1);
+}
-- 
1.5.0.rc1
Message 1 of 1 in “git-remote: no longer silent on unknown commands.”
  1. git-remote: no longer silent on unknown commands.Quy Tonthat, Jan 13, 2007

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.