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

Re: [PATCH] complete: zsh: add missing sub cmd completion candidates

From
Felipe Contreras <felipe.contreras@gmail.com>
Date
Oct 25, 2020, 03:35 UTC
Message-ID
<CAMP44s0gy5JbB6+NuxPEzV5hOo1dXNB-J5hhZNViM9o+NweeuA@mail.gmail.com>
In-Reply-To
<xmqqsgh2ug1q.fsf@gitster.c.googlers.com>
On Fri, Apr 17, 2020 at 1:26 PM Junio C Hamano <gitster@pobox.com> wrote:
> This is not a new issue, but it makes me wonder if we can initialize
> this list just once by running "git help" and picking up pieces from
> it.  That way, we won't have to maintain this hardcoded list at all,
> no?

Yes, that would be nice, but what if the user has an older version of git without --list-cmds? No solution has been proposed for those cases in the bash script.

Most users of the zsh script are decoupled from the corresponding git version, and since you refused to graduate the scripts out of contrib, that gives distro maintainers the excuse not to automatically package the zsh script.

So no, given the current situation, I would rather keep updating them manually.
-- 
Felipe Contreras
Previous: Junio C Hamano
Message 3 of 3 in “complete: zsh: add missing sub cmd completion candidates”
  1. complete: zsh: add missing sub cmd completion candidatesTerry via GitGitGadget, Apr 17, 2020
  2. Junio C HamanoApr 17, 2020
  3. Felipe ContrerasOct 25, 2020

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.