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

Re: git-log -p --raw broken?

From
Linus Torvalds <torvalds@linux-foundation.org>
Date
Nov 6, 2007, 23:10 UTC
Message-ID
<alpine.LFD.0.999.0711061508490.15101@woody.linux-foundation.org>
In-Reply-To
<f329bf540711061448iab9d4a9q37e13b846dbc5ff1@mail.gmail.com>
On Tue, 6 Nov 2007, Han-Wen Nienhuys wrote:
Show 9 quoted lines
>
> The manual page suggests that I should be able to do
> 
>  git log -p --raw COMMIT-RANGE
> 
> however, when I try that, I get always get the same style output,
> which is the (to me: useless) human readable output.
> 
> Am I missing something?
No, you're not *missing* anything. You have something *too much*.
Please remove the "-p" if you don't want a patch.
This works:
	git log --raw COMMIT-RANGE

(actually, most of the time you'd want to use "-r" too when you get raw output, but git log enables that by default)

			Linus
Previous: Han-Wen Nienhuys
Message 3 of 3 in “git-log -p --raw broken?”
  1. Han-Wen NienhuysNov 6, 2007
  2. Han-Wen NienhuysNov 6, 2007
  3. Linus TorvaldsNov 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.