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

Re: PATCH] parse-options: allow omitting option help text

From
Junio C Hamano <gitster@pobox.com>
Date
Aug 28, 2023, 15:19 UTC
Message-ID
<xmqqr0nnjisv.fsf@gitster.g>
In-Reply-To
<2b08dc43-621d-2170-c4a6-c2aac33a9a19@web.de>
René Scharfe <l.s.r@web.de> writes:
Show 9 quoted lines
> 1b68387e02 (builtin/receive-pack.c: use parse_options API, 2016-03-02)
> added the options --stateless-rpc, --advertise-refs and
> --reject-thin-pack-for-testing with a NULL `help` string; 03831ef7b5
> (difftool: implement the functionality in the builtin, 2017-01-19)
> similarly added the "helpless" option --prompt.  Presumably this was
> done because all four options are hidden and self-explanatory.
>
> They cause a NULL pointer dereference when using the option --help-all
> with their respective tool, though.
Good find.  Will apply.  Thanks.
Previous: René Scharfe
Message 2 of 2 in “PATCH] parse-options: allow omitting option help text”
  1. René ScharfeAug 26, 2023
  2. Junio C HamanoAug 28, 2023

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.