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

Re: Re: Remove your ZSH completion in favor of the completion script distributed and maintained by ZSH

From
DBDoron Behar <doron.behar@gmail.com>
Date
Jul 7, 2024, 14:47 UTC
Message-ID
<e4ylt2rihvm2uc22irsxbeid57ijblioekit3o4xpufflrqwal@5t67kr2a5ahq>
In-Reply-To
<87cynpnv8m.fsf@igel.home>

They don't perform any version checks as far as I can see in their implementation.

Almost all commands that the ZSH team maintains completions for, don't perform version checks and the maintainers of the commands themselves don't bother taking responsibility for that and usually users don't complain. If a ZSH user notices a new command or new option missing from such a completion function, they can submit a patch to the ZSH project, and setup a workaround until there is a new ZSH release with their patch included.

Besides the option of living with this potential version mismatch imperfection, you could also ask the ZSH team to remove their implementation and start maintain their implementation here. However, they might object because not all distributions will accommodate to this change in both projects...

I personally think that Git is a stable enough project that the commands and options don't deviate enough between the different versions of it, So it'd be easier for you and for the distributions if you'd let go of your implementation.

On Sun, Jul 07, 2024 at 04:15:53PM +0200, Andreas Schwab wrote:
Show 14 quoted lines
> On Jul 07 2024, Doron Behar wrote:
> 
> > ZSH completion is almost always distributed with every distribution of
> > ZSH, so there is no need for the two projects to maintain two completion
> > functions for the same program :).
> 
> How do they keep it in sync with the particular version of git installed
> in the system?
> 
> -- 
> Andreas Schwab, schwab@linux-m68k.org
> GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510  2552 DF73 E780 A9DA AEC1
> "And now for something completely different."
> 
Previous: Andreas SchwabNext: brian m. carlson
Message 3 of 6 in “Remove your ZSH completion in favor of the completion script distributed and maintained by ZSH”
  1. Doron BeharJul 7, 2024
  2. Andreas SchwabJul 7, 2024
  3. Doron BeharJul 7, 2024
  4. brian m. carlsonJul 7, 2024
  5. Doron BeharJul 7, 2024
  6. rsbecker@nexbridge.comJul 7, 2024

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.