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

Re: [PATCH] ls-remote: a lone "-h" is asking for help

From
Sverre Rabbelier <srabbelier@gmail.com>
Date
Sep 16, 2011, 19:09 UTC
Message-ID
<CAGdFq_h474OrLzP+CHj_eSdSp53n8x7jz1ORT16dOhvRdQMP+g@mail.gmail.com>
In-Reply-To
<7vobykfj7g.fsf@alter.siamese.dyndns.org>
Heya,
On Fri, Sep 16, 2011 at 20:14, Junio C Hamano <gitster@pobox.com> wrote:
> It does not give a short-help for the command. Instead because "-h" is a
> synonym for "--heads", it runs "git ls-remote --heads", and because there
> is no remote specified on the command line, we run it against the default
> "origin" remote, hence end up doing the same as

Should we really have "-h" as a short for anything other than "--help" in the first place?

-- 
Cheers,

Sverre Rabbelier
Previous: Junio C HamanoNext: Junio C Hamano
Message 2 of 7 in “ls-remote: a lone "-h" is asking for help”
  1. ls-remote: a lone "-h" is asking for helpJunio C Hamano, Sep 16, 2011
  2. Sverre RabbelierSep 16, 2011
  3. Junio C HamanoSep 16, 2011
  4. Sverre RabbelierSep 16, 2011
  5. Junio C HamanoSep 16, 2011
  6. Sverre RabbelierSep 16, 2011
  7. Junio C HamanoSep 16, 2011

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.