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

Re: Documentation for "git log --all" incorrect

From
Jeff King <peff@peff.net>
Date
Oct 29, 2014, 19:54 UTC
Message-ID
<20141029195445.GA27413@peff.net>
In-Reply-To
<20141029115134.GA33348@bat.dot-bit.org>
On Wed, Oct 29, 2014 at 11:51:34AM +0000, Francis Irving wrote:
Show 14 quoted lines
> The help for "git log --all" says:
> 
>        --all
>                   Pretend as if all the refs in refs/ are listed on
>                   the command line as <commit>.
> 
> This makes no sense, as <commit> is not a documented valid command line
> parameter. These are the documented parameters:
> 
>         SYNOPSIS
>                git log [<options>] [<revision range>] [[--] <path>...]
> 
> Even if it means <revision range>, which is my best guess, it still
> makes no sense as <revision range> cannot be a list of many refs.

The text for "--all" comes from rev-list-options.txt, which is included in git-rev-list.txt and git-log.txt. It makes sense in the former but not the latter. One fix would be to use "<commit>" in the synopsis for git-log. But I think it would probably be OK to just drop the "as <commit>" part of the --all text (and other related options need this, too). It seems pretty clear to me without it.

Do you want to try your hand at a patch?
-Peff
Previous: Francis Irving
Message 2 of 2 in “Documentation for "git log --all" incorrect”
  1. Francis IrvingOct 29, 2014
  2. Jeff KingOct 29, 2014

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.