From: Ben Jackson Date: Sun, 31 May 2009 01:17:06 +0000 (-0700) Subject: Add 'git svn help [cmd]' which works outside a repo. X-Git-Tag: v1.6.4-rc0~36^2~8 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=9a8c92ac9e4698da150a413ce80f185005447f4c;p=git.git Add 'git svn help [cmd]' which works outside a repo. 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 Acked-by: Eric Wong --- diff --git a/git-svn.perl b/git-svn.perl index 33fe34cba..da1e1f64e 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); } };