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

Re: [PATCH] Documentation/config.txt: Order variables alphabetically

From
Jakub Narebski <jnareb@gmail.com>
Date
Dec 1, 2010, 16:37 UTC
Message-ID
<201012011737.53652.jnareb@gmail.com>
In-Reply-To
<20101201150917.GD6537@picasso.cante.net>
Dnia środa 1. grudnia 2010 16:09, jari napisał:
Show 26 quoted lines
> On 2010-12-01 15:57, Jakub Narebski wrote:
>| On Wed, 1 Dec 2010, Jari Aalto wrote:
>|> On 2010-12-01 05:58, Jakub Narebski wrote:
>|>| jari.aalto@cante.net writes:
>|>| 
>|>|> From: Jari Aalto <jari.aalto@cante.net>
>|>|> 
>|>|> 
>|>|> Signed-off-by: Jari Aalto <jari.aalto@cante.net>
>|>|> ---
>|>|>  Documentation/config.txt| 1698 +++++++++++++++++++++++-----------------------
>|>|>  1 files changed, 852 insertions(+), 846 deletions(-)
>|>| 
>|>| Why?  What such large change is for?
>|>| 
>|>| Note that currently config variables are grouped by functionality: for
>|>| example core.eol and core.safecrlf, or core.compression and
>|>| core.loosecompression are close to each other.
>| 
>| What about the above?
> 
> We use standard biblical refences:
> 
> 	 Se ....
> 
> Suggest what is needed, and it will be so.

Having related config variables together is IMVHO more important than having config variables sorted alphabetically.

Show 11 quoted lines
>|> The phone books have an index where to up information.
>|> 
>|>     - When you see script and it use VARIABLE, you look it from
>|>       manual page
>| 
>| Manpages (and 'git <cmd> --help') are displayed in pager, so you can
>| always search for option in a pager (e.g. '/' in 'less', the default
>| pager).
> 
> Yuck, it's real fun start backward/forward ping-pong when you dont'
> know the directions and can't rely on standard A-Z index.

No need for backward/forward, simply go to beginning ([Home]) and search forward (/<pattern>), or go to end ([End]) and search backward (?<pattern>).

Show 7 quoted lines
>|> It is same as putting option in alphabetical order. See GNU cp(1),
>|> ssh(1) etc.
>| 
>| In git documentation command line options are not in alphabetical order,
>| but grouped by functionality, therefore your argument is invalid.
> 
> I see that only in pages that have tens and tens and tens of options..
And git command doesn't have tens and tens of options?
BTW. you discarded my counterexamples of tar, rpm and uname.
Show 7 quoted lines
> 
> The problem is more the asciidoc's. Various bits and pices are
> "included" in place and make ordering the options impossible in some
> pages.
> 
> Let's get all pages in shape with A-Z in this regard. That's a good
> quality goal.

If it is impossible to have options ordered alphabetically because common options are extracted to separate file and then "included", why bother?

Show 9 quoted lines
> 
>|> There are zillion values and for a reference, alphabetical order makes
>|> sense.
>| 
>| I agree that alphabetical order makes sense for glossary; I disagree that
>| it makes sense here.
> 
> About 60% in git-config is already in alpha order (core.*, sendmail.*
> etc), so there is not really much that is changing.

core.* is not in alphabetical order: we have `core.eol', `core.safecrlf', `core.autocrlf'.

sendemail.* is not fully in alphabetical order: we have 
`sendemail.smtpserverport', then `sendemail.smtpserveroption' (p-o, not
alphabetical o-p).
 
> Well. If standard reading order is not the standard, I don't know what
> is.

I'd rather, _if we must_, *generate* gitconfig(5) file with alphabetically ordered configuration variables (and subvariables).

Functional grouping is IMVHO more important than alphabetical ordering.
-- 
Jakub Narebski
Poland
Previous: Jari AaltoNext: Jari Aalto
Message 9 of 17 in “Documentation/config.txt: Order variables alphabetically”
  1. Documentation/config.txt: Order variables alphabeticallyjari.aalto@cante.net, Dec 1, 2010
  2. Jakub NarebskiDec 1, 2010
  3. jariDec 1, 2010
  4. Jakub NarebskiDec 1, 2010
  5. jariDec 1, 2010
  6. Erik Faye-LundDec 1, 2010
  7. Jari AaltoDec 1, 2010
  8. Jari AaltoDec 1, 2010
  9. Jakub NarebskiDec 1, 2010
  10. Jari AaltoDec 1, 2010
  11. Jeff KingDec 1, 2010
  12. Jakub NarebskiDec 1, 2010
  13. SZEDER GáborDec 2, 2010
  14. Jari AaltoDec 2, 2010
  15. SZEDER GáborDec 2, 2010
  16. Jari AaltoDec 2, 2010
  17. SZEDER GáborDec 2, 2010

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.