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

Re: [PATCH] git help: promote 'git help -av'

From
Junio C Hamano <gitster@pobox.com>
Date
Sep 24, 2018, 20:58 UTC
Message-ID
<xmqq4leesjdc.fsf@gitster-ct.c.googlers.com>
In-Reply-To
<20180924181927.GB25341@sigill.intra.peff.net>
Jeff King <peff@peff.net> writes:
> I agree that "help -av" is likely to be more friendly. I kind of wonder
> if it should just be the default for "-a". Do we have any obligation not
> to change the format of that output?

I know that at least older versions of git-completion.bash (I think it was up to 2.17.x series, but do not quote me on that) have parsed "git help -a" output to obtain the list of commands. So such a change would impact those minority users who keep stale completion script in their $HOME/.bashrc without ever update it, thinking it is good enough.

I personally find "help -av" a bit too loud to my taste than plain "-a", and more importantly, I look at "help -a" primarily to check the last section "avaialble from elsewhere on your $PATH" to find things like "clang-format", which I do not think is available anywhere in "help -av", so I do not think "-av" can be promoted as an upward-compatible replacement in its current form.

I probably am not a part of the target audience, though.
Previous: Jeff KingNext: Duy Nguyen
Message 7 of 18 in “git help: promote 'git help -av'”
  1. git help: promote 'git help -av'Nguyễn Thái Ngọc Duy, Sep 22, 2018
  2. Ævar Arnfjörð BjarmasonSep 22, 2018
  3. Duy NguyenSep 23, 2018
  4. Jeff KingSep 24, 2018
  5. Taylor BlauSep 24, 2018
  6. Jeff KingSep 24, 2018
  7. Junio C HamanoSep 24, 2018
  8. Duy NguyenSep 25, 2018
  9. Duy NguyenSep 25, 2018
  10. Jeff KingSep 25, 2018
  11. Duy NguyenSep 26, 2018
  12. Junio C HamanoSep 26, 2018
  13. Junio C HamanoSep 26, 2018
  14. Taylor BlauSep 28, 2018
  15. Junio C HamanoSep 28, 2018
  16. Taylor BlauSep 28, 2018
  17. help -a: improve and make --verbose defaultNguyễn Thái Ngọc Duy, Sep 29, 2018
  18. Taylor BlauOct 1, 2018

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.