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>
This commit is contained in:
Ben Jackson 2009-05-30 18:17:06 -07:00 коммит произвёл Eric Wong
Родитель 5eec27e35f
Коммит 9a8c92ac9e
1 изменённых файлов: 3 добавлений и 0 удалений

Просмотреть файл

@ -219,6 +219,9 @@ for (my $i = 0; $i < @ARGV; $i++) {
$cmd = $ARGV[$i]; $cmd = $ARGV[$i];
splice @ARGV, $i, 1; splice @ARGV, $i, 1;
last; last;
} elsif ($ARGV[$i] eq 'help') {
$cmd = $ARGV[$i+1];
usage(0);
} }
}; };