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:
parent
5eec27e35f
commit
9a8c92ac9e
@ -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);
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user