summaryrefslogtreecommitdiff
path: root/git-svn.perl
diff options
context:
space:
mode:
authorBenoit Sigoure <tsuna@lrde.epita.fr>2007-11-03 18:53:34 (GMT)
committerJunio C Hamano <gitster@pobox.com>2007-11-04 04:39:12 (GMT)
commitaa807bc2663d69d6adb1d823231ba4b6d30d4860 (patch)
treea62e7bac08a5ab7d324cac0b8c36bfba0497e262 /git-svn.perl
parent4b7bbdd14c6b926fbb0dbd203ce02e150b308694 (diff)
downloadgit-aa807bc2663d69d6adb1d823231ba4b6d30d4860.zip
git-aa807bc2663d69d6adb1d823231ba4b6d30d4860.tar.gz
git-aa807bc2663d69d6adb1d823231ba4b6d30d4860.tar.bz2
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>
Diffstat (limited to 'git-svn.perl')
-rwxr-xr-xgit-svn.perl2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-svn.perl b/git-svn.perl
index 22bb47b..4900f57 100755
--- a/git-svn.perl
+++ b/git-svn.perl
@@ -252,7 +252,7 @@ Usage: $0 <command> [options] [arguments]\n
next if $cmd && $cmd ne $_;
next if /^multi-/; # don't show deprecated commands
print $fd ' ',pack('A17',$_),$cmd{$_}->[1],"\n";
- foreach (keys %{$cmd{$_}->[2]}) {
+ foreach (sort keys %{$cmd{$_}->[2]}) {
# mixed-case options are for .git/config only
next if /[A-Z]/ && /^[a-z]+$/i;
# prints out arguments as they should be passed: