{"thread":{"id":"10624","subject":"[PATCH] git-svn: sort the options in the --help message.","startedAt":"2007-11-03T18:53:34Z","lastAt":"2007-11-03T19:42:12Z","messageCount":2,"participants":["Benoit Sigoure","Eric Wong"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"58163","messageId":"1194116014-13964-1-git-send-email-tsuna@lrde.epita.fr","threadId":"10624","inReplyTo":null,"subject":"[PATCH] git-svn: sort the options in the --help message.","fromName":"Benoit Sigoure","fromEmail":"tsuna@lrde.epita.fr","sentAt":"2007-11-03T18:53:34Z","receivedAt":"2007-11-03T18:53:34Z","isPatch":true,"sender":{"key":"tsunanet@gmail.com","avatar":"https://avatars.githubusercontent.com/u/128281?v=4"},"body":"\t* git-svn.perl (&usage): Sort the various options.\n\nSigned-off-by: Benoit Sigoure <tsuna@lrde.epita.fr>\n---\nIt always annoys me when I read the output of git svn <cmd> --help that the\noptions are printed in no particular order.\n\n git-svn.perl |    2 +-\n 1 files changed, 1 insertions(+), 1 deletions(-)\n\ndiff --git a/git-svn.perl b/git-svn.perl\nindex 22bb47b..4900f57 100755\n--- a/git-svn.perl\n+++ b/git-svn.perl\n@@ -252,7 +252,7 @@ Usage: $0 <command> [options] [arguments]\\n\n \t\tnext if $cmd && $cmd ne $_;\n \t\tnext if /^multi-/; # don't show deprecated commands\n \t\tprint $fd '  ',pack('A17',$_),$cmd{$_}->[1],\"\\n\";\n-\t\tforeach (keys %{$cmd{$_}->[2]}) {\n+\t\tforeach (sort keys %{$cmd{$_}->[2]}) {\n \t\t\t# mixed-case options are for .git/config only\n \t\t\tnext if /[A-Z]/ && /^[a-z]+$/i;\n \t\t\t# prints out arguments as they should be passed:\n-- \n1.5.3.4.398.g859b\n"},{"id":"58168","messageId":"20071103194212.GA28755@muzzle","threadId":"10624","inReplyTo":"1194116014-13964-1-git-send-email-tsuna@lrde.epita.fr","subject":"Re: [PATCH] git-svn: sort the options in the --help message.","fromName":"Eric Wong","fromEmail":"normalperson@yhbt.net","sentAt":"2007-11-03T19:42:12Z","receivedAt":"2007-11-03T19:42:12Z","isPatch":true,"sender":{"key":"e@80x24.org","avatar":null},"body":"Benoit Sigoure <tsuna@lrde.epita.fr> wrote:\n> \t* git-svn.perl (&usage): Sort the various options.\n> \n> Signed-off-by: Benoit Sigoure <tsuna@lrde.epita.fr>\n> ---\n> It always annoys me when I read the output of git svn <cmd> --help that the\n> options are printed in no particular order.\n\nThe above sentence belongs in the commit message.\n\nThanks,\n\nAcked-by: Eric Wong <normalperson@yhbt.net>\n\n>  git-svn.perl |    2 +-\n>  1 files changed, 1 insertions(+), 1 deletions(-)\n> \n> diff --git a/git-svn.perl b/git-svn.perl\n> index 22bb47b..4900f57 100755\n> --- a/git-svn.perl\n> +++ b/git-svn.perl\n> @@ -252,7 +252,7 @@ Usage: $0 <command> [options] [arguments]\\n\n>  \t\tnext if $cmd && $cmd ne $_;\n>  \t\tnext if /^multi-/; # don't show deprecated commands\n>  \t\tprint $fd '  ',pack('A17',$_),$cmd{$_}->[1],\"\\n\";\n> -\t\tforeach (keys %{$cmd{$_}->[2]}) {\n> +\t\tforeach (sort keys %{$cmd{$_}->[2]}) {\n>  \t\t\t# mixed-case options are for .git/config only\n>  \t\t\tnext if /[A-Z]/ && /^[a-z]+$/i;\n>  \t\t\t# prints out arguments as they should be passed:\n\n-- \nEric Wong\n"}]}