mirror of
https://github.com/git/git.git
synced 2024-10-28 04:49:43 +01:00
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
1 changed files with 3 additions and 0 deletions
|
@ -219,6 +219,9 @@ BEGIN
|
|||
$cmd = $ARGV[$i];
|
||||
splice @ARGV, $i, 1;
|
||||
last;
|
||||
} elsif ($ARGV[$i] eq 'help') {
|
||||
$cmd = $ARGV[$i+1];
|
||||
usage(0);
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue