Add 'git svn help [cmd]' which works outside a repo.
authorBen Jackson <ben@ben.com>
Sun, 31 May 2009 01:17:06 +0000 (18:17 -0700)
committerEric Wong <normalperson@yhbt.net>
Thu, 25 Jun 2009 07:38:16 +0000 (00:38 -0700)
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>
Acked-by: Eric Wong <normalperson@yhbt.net>
git-svn.perl

index 33fe34cbacfab18ccb0b2fbd53052e90f45e95a9..da1e1f64e9f3da06f687b447e448ad5bc6079072 100755 (executable)
@@ -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);
        }
 };