mirror of
https://github.com/git/git
synced 2024-10-02 14:45:21 +00:00
git-svn: sort the options in the --help message.
"git svn <cmd> --help" gave options in the order they were found in a Perl hash, which meant "randomly" to humans. Signed-off-by: Benoit Sigoure <tsuna@lrde.epita.fr> Acked-by: Eric Wong <normalperson@yhbt.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
4b7bbdd14c
commit
aa807bc266
|
@ -252,7 +252,7 @@ sub usage {
|
||||||
next if $cmd && $cmd ne $_;
|
next if $cmd && $cmd ne $_;
|
||||||
next if /^multi-/; # don't show deprecated commands
|
next if /^multi-/; # don't show deprecated commands
|
||||||
print $fd ' ',pack('A17',$_),$cmd{$_}->[1],"\n";
|
print $fd ' ',pack('A17',$_),$cmd{$_}->[1],"\n";
|
||||||
foreach (keys %{$cmd{$_}->[2]}) {
|
foreach (sort keys %{$cmd{$_}->[2]}) {
|
||||||
# mixed-case options are for .git/config only
|
# mixed-case options are for .git/config only
|
||||||
next if /[A-Z]/ && /^[a-z]+$/i;
|
next if /[A-Z]/ && /^[a-z]+$/i;
|
||||||
# prints out arguments as they should be passed:
|
# prints out arguments as they should be passed:
|
||||||
|
|
Loading…
Reference in a new issue