From 9a8c92ac9e4698da150a413ce80f185005447f4c Mon Sep 17 00:00:00 2001 From: Ben Jackson Date: Sat, 30 May 2009 18:17:06 -0700 Subject: [PATCH] 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 --- git-svn.perl | 3 +++ 1 file changed, 3 insertions(+) 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); } }; -- 2.30.2