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

Re: [PATCH 1/1] doc: Change zsh git completion file name

From
Junio C Hamano <gitster@pobox.com>
Date
Oct 11, 2019, 05:57 UTC
Message-ID
<xmqqmue7hlih.fsf@gitster-ct.c.googlers.com>
In-Reply-To
<nycvar.QRO.7.76.6.1910102310260.46@tvgsbejvaqbjf.bet>
Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:
Show 13 quoted lines
> On Thu, 10 Oct 2019, Maxim Belsky via GitGitGadget wrote:
>
>> From: Maxim Belsky <public.belsky@gmail.com>
>>
>> Signed-off-by: Maxim Belsky <public.belsky@gmail.com>
>
> I totally agree with the patch, but only because I read a couple of
> reports that users were struggling with this. Maybe add a couple of
> reference points to the commit message, to describe how easy it is to
> miss the fact that it needs to be a _file_, not a directory, and also
> describe how `zsh` tells you that there is a problem (even if it does
> not report a problem, that's a valuable piece of information for the
> commit message).

After reading the updated text, and then hearing many people cannot get if the existing reference to ~/.zsh/_git is about a directory (to which this should be added as one of the files in it) or a file, I doubt that the updated text is clear enough for these people.

Show 5 quoted lines
>> -# The recommended way to install this script is to copy to '~/.zsh/_git', and
>> -# then add the following to your ~/.zshrc file:
>> +# The recommended way to install this script is to copy to
>> +# '~/.zsh/.git-completion.zsh', and then add the following to your ~/.zshrc
>> +# file:

Perhaps making it absolutely clear by risking to be overly verbose, like so?

    The recommended way to install this script is to make a copy of it
    in ~/.zsh/ directory as ~/.zsh/git-completion.zsh and then ...

If my attempt to be overly verbose and absolutely clear above is giving a wrong piece of advice, then that would be an indication that the original nor the updated text is clear enough, as they are the primary sources of information on this matter I used to come up with the suggestion ;-)

Show 6 quoted lines
>>  #
>>  #  fpath=(~/.zsh $fpath)
>>
>> --
>> gitgitgadget
>>
Previous: Johannes SchindelinNext: Max Belsky via GitGitGadget
Message 4 of 13 in “doc: Add a note about ~/.zsh/_git file”
  1. 0/1 doc: Add a note about ~/.zsh/_git fileMax Belsky via GitGitGadget, Oct 10, 2019
  2. 1/1 doc: Change zsh git completion file nameMaxim Belsky via GitGitGadget, Oct 10, 2019
  3. Johannes SchindelinOct 10, 2019
  4. Junio C HamanoOct 11, 2019
  5. 0/1 doc: Add a note about ~/.zsh/_git fileMax Belsky via GitGitGadget, Oct 11, 2019
  6. 1/1 doc: Change zsh git completion file nameMaxim Belsky via GitGitGadget, Oct 11, 2019
  7. Junio C HamanoOct 12, 2019
  8. SZEDER GáborOct 14, 2019
  9. Junio C HamanoOct 15, 2019
  10. Felipe ContrerasOct 25, 2020
  11. 0/1 doc: Add a note about ~/.zsh/_git fileMax Belsky via GitGitGadget, Oct 15, 2019
  12. 1/1 doc: Change zsh git completion file nameMaxim Belsky via GitGitGadget, Oct 15, 2019
  13. Junio C HamanoOct 16, 2019

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.