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

Re: [PATCH v9 2/5] command-list.txt: add the common groups block

From
Sébastien Guimmara <sebastien.guimmara@gmail.com>
Date
May 20, 2015, 19:51 UTC
Message-ID
<555CE5C5.8000209@gmail.com>
In-Reply-To
<CAPig+cTM4L7Vt1gYb5zvAgt8hsqGQdLWigN_yB-VsWukNbt=zw@mail.gmail.com>
On 05/20/2015 09:48 PM, Eric Sunshine wrote:
Show 30 quoted lines
> On Wed, May 20, 2015 at 3:22 PM, Sébastien Guimmara
> <sebastien.guimmara@gmail.com> wrote:
>> The ultimate goal is for "git help" to display common commands in
>> groups rather than alphabetically. As a first step, define the
>> groups in a new block, and then assign a group to each
>> common command.
>>
>> Add a block at the beginning of command-list.txt:
>>
>>      init         start a working area (see also: git help tutorial)
>>      worktree     work on the current change (see also:[...]
>>      info         examine the history and state (see also: git [...]
>>      history      grow, mark and tweak your history
>>      remote       collaborate (see also: git help workflows)
>>
>> storing information about common commands group, then map each common
>> command to a group:
>>
>>      git-add          mainporcelain        common worktree
>>
>> Signed-off-by: Sébastien Guimmara <sebastien.guimmara@gmail.com>
>> ---
>>   command-list.txt | 50 ++++++++++++++++++++++++++++++--------------------
>>   1 file changed, 30 insertions(+), 20 deletions(-)
>
> Hmm, did your update to Documentation/technical/new-command.txt get
> lost? I don't see it any of the patches, but would have expected it to
> be included in this patch which introduces the "common groups"
> section.
>
Ah, you're right. A commit got lost in the process. Will fix that. Thanks.
Show 15 quoted lines
>> diff --git a/command-list.txt b/command-list.txt
>> index 609b344..c2bbdc1 100644
>> --- a/command-list.txt
>> +++ b/command-list.txt
>> @@ -1,3 +1,13 @@
>> +# common commands are grouped by themes output by 'git help'
>> +# map each common command in the command list to one of these groups.
>
> Discussed previously: It also would be a good idea to mention that the
> order in which "git help" displays the groups themselves is the order
> they are declared here. Maybe just add one more line between the two
> you already have above:
>
>      # groups are output by 'git help' in the order declared here.
>
Indeed, I'll add the mention.
Show 13 quoted lines
>> +### common groups
>
> In the block below, the "### command list" line is protected by a "#
> do not molest the next line" warning. Perhaps the same should be done
> here? Alternately, make them more compact by incorporating the
> warning:
>
>      ### common groups (do not change this line)
>      ...
>      ### command list (do not change this line)
>
> ?
>
Yes, it's better. I shall modify this.
Show 10 quoted lines
>> +init         start a working area (see also: git help tutorial)
>> +worktree     work on the current change (see also: git help everyday)
>> +info         examine the history and state (see also: git help revisions)
>> +history      grow, mark and tweak your common history
>> +remote       collaborate (see also: git help workflows)
>> +
>> +# List of known git commands.
>>   # do not molest the next line
>>   ### command list
>>   # command name                          category [deprecated] [common]
Previous: Eric SunshineNext: Sébastien Guimmara
Message 5 of 15 in “group common commands by theme”
  1. 0/5 group common commands by themeSébastien Guimmara, May 20, 2015
  2. 1/5 command-list: prepare machinery for upcoming "common groups" sectionSébastien Guimmara, May 20, 2015
  3. 2/5 command-list.txt: add the common groups blockSébastien Guimmara, May 20, 2015
  4. Eric SunshineMay 20, 2015
  5. Sébastien GuimmaraMay 20, 2015
  6. 3/5 generate-cmdlist: parse common group commandsSébastien Guimmara, May 20, 2015
  7. Sébastien GuimmaraMay 20, 2015
  8. Stefan BellerMay 20, 2015
  9. Sébastien GuimmaraMay 20, 2015
  10. Eric SunshineMay 20, 2015
  11. 4/5 command-list.txt: drop the "common" tagSébastien Guimmara, May 20, 2015
  12. 5/5 help: respect new common command groupingSébastien Guimmara, May 20, 2015
  13. Ramsay JonesMay 20, 2015
  14. Sébastien GuimmaraMay 20, 2015
  15. Eric SunshineMay 20, 2015

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.