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

Re: [PATCH] git.c: reorder builtin command list

From
Junio C Hamano <gitster@pobox.com>
Date
Feb 14, 2011, 19:20 UTC
Message-ID
<7vvd0ms9ra.fsf@alter.siamese.dyndns.org>
In-Reply-To
<1297689984-3151-1-git-send-email-pclouds@gmail.com>
Nguyễn Thái Ngọc Duy  <pclouds@gmail.com> writes:
Show 11 quoted lines
> The majority of commands is in alphabet order except some. Reorder
> them so it's easier to locate a command by (my trained) eye.
>
> Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com>
> ---
>  I originally wanted to put "stage" in alphabet order. It was near
>  "add" probably because it's an alias of "add". But the rest was in
>  alphabet order.. Then I wondered if there were any other out-of-order
>  commands...
>
>  A worthless OCD patch in a sense.

I did this myself the other day, as I think it simply is a good project hygiene. If this were 1/2 of a series followed by 2/2 that runs binary search in the table, that would make it make more sense ;-)

Will apply. I don't think there is anything in-flight to conflict with it at this moment.

Previous: Nguyễn Thái Ngọc DuyNext: Nguyễn Thái Ngọc Duy
Message 2 of 6 in “git.c: reorder builtin command list”
  1. git.c: reorder builtin command listNguyễn Thái Ngọc Duy, Feb 14, 2011
  2. Junio C HamanoFeb 14, 2011
  3. 1/2 git.c: reorder builtin command listNguyễn Thái Ngọc Duy, Feb 15, 2011
  4. 2/2 git.c: binary-search builtin commandsNguyễn Thái Ngọc Duy, Feb 15, 2011
  5. Junio C HamanoFeb 15, 2011
  6. Nguyen Thai Ngoc DuyFeb 16, 2011

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.