From: Eric Wong <normalperson@yhbt.net>
To: Benoit Sigoure <tsuna@lrde.epita.fr>
Cc: git@vger.kernel.org, gitster@pobox.com
Subject: Re: [PATCH] git-svn: sort the options in the --help message.
Date: Sat, 3 Nov 2007 12:42:12 -0700 [thread overview]
Message-ID: <20071103194212.GA28755@muzzle> (raw)
In-Reply-To: <1194116014-13964-1-git-send-email-tsuna@lrde.epita.fr>
Benoit Sigoure <tsuna@lrde.epita.fr> wrote:
> * git-svn.perl (&usage): Sort the various options.
>
> Signed-off-by: Benoit Sigoure <tsuna@lrde.epita.fr>
> ---
> It always annoys me when I read the output of git svn <cmd> --help that the
> options are printed in no particular order.
The above sentence belongs in the commit message.
Thanks,
Acked-by: Eric Wong <normalperson@yhbt.net>
> git-svn.perl | 2 +-
> 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:
--
Eric Wong
prev parent reply other threads:[~2007-11-03 19:42 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-03 18:53 [PATCH] git-svn: sort the options in the --help message Benoit Sigoure
2007-11-03 19:42 ` Eric Wong [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20071103194212.GA28755@muzzle \
--to=normalperson@yhbt.net \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=tsuna@lrde.epita.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).