git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] git-svn: sort the options in the --help message.

From
Benoit Sigoure <tsuna@lrde.epita.fr>
Date
Nov 3, 2007, 18:53 UTC
Message-ID
<1194116014-13964-1-git-send-email-tsuna@lrde.epita.fr>
	* 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.
 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:
-- 
1.5.3.4.398.g859b
Next: Eric Wong
Message 1 of 2 in “git-svn: sort the options in the --help message.”
  1. git-svn: sort the options in the --help message.Benoit Sigoure, Nov 3, 2007
  2. Eric WongNov 3, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.