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

[bug] 2.39.0: error in help for ls-remote

From
JHJeremy Hetzler <jeremyhetzler@gmail.com>
Date
Oct 31, 2023, 18:11 UTC
Message-ID
<CAOh4nmm9fTm8fa=1Hyi8t3R-VMnf30-0xe0vcst57dvY-FrL+w@mail.gmail.com>
In-Reply-To
<CAOh4nmk2KZBTuW9qn_ZgDY3yLRZ6NgGOWuBMLRRm1sU=pdmRoQ@mail.gmail.com>
All,
The short help for ls-remote advertises that '-h' is short for '--heads':
Show 16 quoted lines
> usage: git ls-remote [--heads] [--tags] [--refs] [--upload-pack=<exec>]
>                      [-q | --quiet] [--exit-code] [--get-url] [--sort=<key>]
>                      [--symref] [<repository> [<refs>...]]
>
>
>     -q, --quiet           do not print remote URL
>     --upload-pack <exec>  path of git-upload-pack on the remote host
>     -t, --tags            limit to tags
>     -h, --heads           limit to heads
>     --refs                do not show peeled tags
>     --get-url             take url.<base>.insteadOf into account
>     --sort <key>          field name to sort on
>     --exit-code           exit with exit code 2 if no matching refs are found
>     --symref              show underlying ref in addition to the object pointed by it
>     -o, --server-option <server-specific>
>                           option to transmit

However, 'git ls-remote -h' instead prints the help. So perhaps the help message should be revised.

git version 2.39.0

Thanks, Jeremy

Next: Jeff King
Message 1 of 3 in “[bug] 2.39.0: error in help for ls-remote”
  1. Jeremy HetzlerOct 31, 2023
  2. Jeff KingOct 31, 2023
  3. Jeremy HetzlerOct 31, 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.