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

git log and merge commits

From
GUGeert Uytterhoeven <geert.uytterhoeven@sonycom.com>
Date
May 14, 2007, 16:13 UTC
Message-ID
<Pine.LNX.4.62.0705141803590.11269@pademelon.sonytel.be>
	Hi,

I noticed `git log -p' doesn't show the changes introduced by merge commits. This is true for plain `git log -p' and for `git log -p <filename>'.

Using `git show <commit-id>' does show the changes.

As I noticed the problem originally in a non-public repository, it was a bit difficult to report. But I've just found an example in linux.git, too:

`git show 5cd47155155a32e5b944ac9fc3f3dc578e429aa0' shows the merge commit. But `git log -p include/asm-arm/arch-ixp4xx/io.h' doesn't show it.

It happens in git 1.4.4.4 (what I'm using regularly), but also in 1.5.1.4.
Gr{oetje,eeting}s,
						Geert

-- Geert Uytterhoeven -- Sony Network and Software Technology Center Europe (NSCE) Geert.Uytterhoeven@sonycom.com ------- The Corporate Village, Da Vincilaan 7-D1 Voice +32-2-7008453 Fax +32-2-7008622 ---------------- B-1935 Zaventem, Belgium

Next: Jakub Narebski
Message 1 of 4 in “git log and merge commits”
  1. Geert UytterhoevenMay 14, 2007
  2. Jakub NarebskiMay 14, 2007
  3. Linus TorvaldsMay 14, 2007
  4. Geert UytterhoevenMay 14, 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.