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

Re: git-rev-list diff options broken

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Nov 6, 2007, 23:33 UTC
Message-ID
<Pine.LNX.4.64.0711062330220.4362@racer.site>
In-Reply-To
<f329bf540711061414k1627521bvaf4a7a06460cc3fd@mail.gmail.com>
Hi,
On Tue, 6 Nov 2007, Han-Wen Nienhuys wrote:
Show 23 quoted lines
> the git-rev-list manpage says
> 
> 
> **
> Diff Formatting
> ~~~~~~~~~~~~~~~
> 
> Below are listed options that control the formatting of diff output.
> Some of them are specific to gitlink:git-rev-list[1], however other diff
> options may be given. See gitlink:git-diff-files[1] for more options.
> **
> 
> however, the source code says
> 
> 
> 	if ((!list &&
> 	     (!(revs.tag_objects||revs.tree_objects||revs.blob_objects) &&
> 	      !revs.pending.nr)) ||
> 	    revs.diff)
> 		usage(rev_list_usage);
> 
> so any attempt at showing diffs with git-rev-list will fail. What's
> the deal with this?
Probably you want to use "git log".

"git blame -L 585,589 builtin-rev-list.c" indicates that 8c1f0b44(Fix up rev-list option parsing) was responsible, which in turn indicates that it was intentional.

Hth, Dscho

Previous: Han-Wen NienhuysNext: Han-Wen Nienhuys
Message 3 of 5 in “git-rev-list diff options broken”
  1. Han-Wen NienhuysNov 6, 2007
  2. Han-Wen NienhuysNov 6, 2007
  3. Johannes SchindelinNov 6, 2007
  4. Han-Wen NienhuysNov 6, 2007
  5. Johannes SchindelinNov 6, 2007

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.