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

Re: [PATCH] Allow 'git cmd -h' outside of repository

From
SZEDER Gábor <szeder@ira.uka.de>
Date
Aug 29, 2008, 11:52 UTC
Message-ID
<20080829115255.GD8000@neumann>
In-Reply-To
<alpine.DEB.1.00.0808291333010.24820@pacific.mpi-cbg.de.mpi-cbg.de>
On Fri, Aug 29, 2008 at 01:35:02PM +0200, Johannes Schindelin wrote:
> You miss the fact that "git grep -h" does not mean "show usage".  Oh, and 
> "git ls-remote -h" neither.  Three times's a charm: "git show-ref -h" does 
> not show the help either.

you are right with grep and show-ref. However, ls-remote does not require a repository, so it would not be affected by this patch.

> I am also not quite certain if we should not just tout "git help <cmd>" as 
> the official way to request help.
Well, I would prefer to keep the short usage.

But anyway, having this inconsistency with the -h option across git commands is bad.

Regards, Gábor

Previous: Nguyen Thai Ngoc Duy
Message 4 of 4 in “Allow 'git cmd -h' outside of repository”
  1. Allow 'git cmd -h' outside of repositorySZEDER Gábor, Aug 28, 2008
  2. Johannes SchindelinAug 29, 2008
  3. Nguyen Thai Ngoc DuyAug 29, 2008
  4. SZEDER GáborAug 29, 2008

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.