diff options
author | Ben Jackson <ben@ben.com> | 2009-05-30 18:17:06 -0700 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2009-06-25 00:38:16 -0700 |
commit | 9a8c92ac9e4698da150a413ce80f185005447f4c (patch) | |
tree | 61b1a4742672a4bbf786c1afc4ba348cd2198101 /git-svn.perl | |
parent | 5eec27e35f0a6231d2b0c50d94c726a67f14b23e (diff) | |
download | git-9a8c92ac9e4698da150a413ce80f185005447f4c.tar.gz |
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>
Diffstat (limited to 'git-svn.perl')
-rwxr-xr-x | git-svn.perl | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/git-svn.perl b/git-svn.perl index 33fe34cbac..da1e1f64e9 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); } }; |