@matheusbsbs / matheus-bagliano / commits / 9a8c92ac9e
Fork 0

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 <ben@ben.com> Acked-by: Eric Wong <normalperson@yhbt.net>

Ben Jackson committed May 30, 2009 at 18:17 UTC 9a8c92ac9e4698da150a413ce80f185005447f4c
1 file changed +3
git-svn.perl
+3
@@ -219,6 +219,9 @@ for (my $i = 0; $i < @ARGV; $i++) {
219 $cmd = $ARGV[$i];
220 splice @ARGV, $i, 1;
221 last;
222 + } elsif ($ARGV[$i] eq 'help') {
223 + $cmd = $ARGV[$i+1];
224 + usage(0);
225 }
226 };
227