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

Re: [PATCH 2/3] ls-remote: remove documentation for custom -h option

From
Jeff King <peff@peff.net>
Date
Sep 24, 2021, 17:54 UTC
Message-ID
<YU4QxcORBBR01iV8@coredump.intra.peff.net>
In-Reply-To
<20210924171113.GA3311029@szeder.dev>
On Fri, Sep 24, 2021 at 07:11:13PM +0200, SZEDER Gábor wrote:
Show 14 quoted lines
> > diff --git a/Documentation/git-ls-remote.txt b/Documentation/git-ls-remote.txt
> > index 492e573856f..6e241640bd9 100644
> > --- a/Documentation/git-ls-remote.txt
> > +++ b/Documentation/git-ls-remote.txt
> > @@ -21,7 +21,6 @@ commit IDs.
> >  
> >  OPTIONS
> >  -------
> > --h::
> 
> The description of this option contains the following:
> 
>   Note that git ls-remote -h used without anything else on the command
>   line gives help, consistent with other git subcommands.
Yup. That comes from this thread discussing an identical patch:
  https://lore.kernel.org/git/b0397b3285eab3448a3fd5dd2c50abb9@pascalroeleven.nl/
which in turn references more discussion of this behavior:
  https://lore.kernel.org/git/xmqqk1ztmkbn.fsf@gitster.mtv.corp.google.com/
It's gross and weird, but kept for backwards compatibility.
-Peff
Previous: SZEDER GáborNext: Junio C Hamano
Message 9 of 12 in “Wrong option -h in grep, ls-remote, and show-ref.”
  1. Ignacy GawedzkiSep 24, 2021
  2. 0/3 show-ref, ls-remote, grep: fix -h handlingÆvar Arnfjörð Bjarmason, Sep 24, 2021
  3. 1/3 show-ref: remove unused custom handling of -hÆvar Arnfjörð Bjarmason, Sep 24, 2021
  4. Junio C HamanoSep 24, 2021
  5. René ScharfeSep 24, 2021
  6. Junio C HamanoSep 24, 2021
  7. 2/3 ls-remote: remove documentation for custom -h optionÆvar Arnfjörð Bjarmason, Sep 24, 2021
  8. SZEDER GáborSep 24, 2021
  9. Jeff KingSep 24, 2021
  10. Junio C HamanoSep 24, 2021
  11. 3/3 grep: pass PARSE_OPT_NO_INTERNAL_HELP, fix odd -h handlingÆvar Arnfjörð Bjarmason, Sep 24, 2021
  12. Junio C HamanoSep 24, 2021

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.