зеркало из https://github.com/microsoft/git.git
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:
Родитель
5eec27e35f
Коммит
9a8c92ac9e
|
@ -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);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче