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

[PATCH 1/2] Add 'git svn help [cmd]' which works outside a repo.

From
Ben Jackson <ben@ben.com>
Date
May 31, 2009, 01:17 UTC
Message-ID
<1243732627-82282-1-git-send-email-ben@ben.com>

Previously there was no explicit 'help' command, but 'git svn help' still printed the usage message (as an invalid command), provided you got past the initialization steps that required a valid repo.

Signed-off-by: Ben Jackson <ben@ben.com>
---

This was just a minor nit I noticed while working on the 'git-svn reset' patch.

 git-svn.perl |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/git-svn.perl b/git-svn.perl
index a70c7d7..20bf828 100755
--- a/git-svn.perl
+++ b/git-svn.perl
@@ -219,6 +219,9 @@ for (my $i = 0; $i < @ARGV; $i++) {
 		$cmd = $ARGV[$i];
 		splice @ARGV, $i, 1;
 		last;
+	} elsif ($ARGV[$i] eq 'help') {
+		$cmd = $ARGV[$i+1];
+		usage(0);
 	}
 };
 
-- 
1.6.3.GIT
Next: Ben Jackson
Message 1 of 5 in “Add 'git svn help [cmd]' which works outside a repo.”
  1. 1/2 Add 'git svn help [cmd]' which works outside a repo.Ben Jackson, May 31, 2009
  2. 2/2 Add 'git svn reset' to unwind 'git svn fetch'Ben Jackson, May 31, 2009
  3. Ben JacksonJun 1, 2009
  4. Eric WongJun 4, 2009
  5. Eric WongJun 4, 2009

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.