@matheusbsbs / matheus-bagliano / commits / aa807bc266
Fork 0

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>

Benoit Sigoure committed Nov 3, 2007 at 19:53 UTC aa807bc2663d69d6adb1d823231ba4b6d30d4860
1 file changed +1 -1
git-svn.perl
+1 -1
@@ -252,7 +252,7 @@ Usage: $0 <command> [options] [arguments]\n
252 next if $cmd && $cmd ne $_;
253 next if /^multi-/; # don't show deprecated commands
254 print $fd ' ',pack('A17',$_),$cmd{$_}->[1],"\n";
255 - foreach (keys %{$cmd{$_}->[2]}) {
255 + foreach (sort keys %{$cmd{$_}->[2]}) {
256 # mixed-case options are for .git/config only
257 next if /[A-Z]/ && /^[a-z]+$/i;
258 # prints out arguments as they should be passed: