Thread (2 messages) 2 messages, 2 authors, 2022-06-29

Re: Bug: "git-remote ls -h"

From: Eric Sunshine <hidden>
Date: 2022-06-29 16:30:08

On Wed, Jun 29, 2022 at 11:39 AM Ian Whitlock [off-list ref] wrote:
I found a bug and couldn't find another way to report it. I hope this is okay.
The help output for `git ls-remote` shows that `-h` should display remote HEADs, but instead the help output is displayed!
Thanks for the report.
 ➜ git ls-remote -h
usage: git ls-remote [--heads] [--tags] [--refs] [--upload-pack=<exec>]
                     [-q | --quiet] [--exit-code] [--get-url]
                     [--symref] [<repository> [<refs>...]]
This is a known and documented behavior. The description of the `-h`
option in the `ls-remote` help page:

    Limit to only refs/heads and refs/tags, respectively. These
    options are not mutually exclusive; when given both, references
    stored in refs/heads and refs/tags are displayed. Note that git
    ls-remote -h used without anything else on the command line gives
    help, consistent with other git subcommands.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help