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

git log -p file.c

From
Uwe Kleine-Koenig <ukleinek@informatik.uni-freiburg.de>
Date
Jun 14, 2007, 09:02 UTC
Message-ID
<20070614090217.GA8271@informatik.uni-freiburg.de>
hello,
when I run
	git log -p file.c

I don't get the complete change a commit introduces but only how file.c changed. This is kind of surprising for me, I had expected to get the whole diff.

Reading git-log(1), -p should "Show the change the commit introduces in a patch form." It's not 100% clear, but as I understand it, this means the whole patch should be shown?

And is it intended that (clean) merges are shown?

Best regards Uwe

PS: I currently have only very limited access to the internet, so the
version used is 1.5.2.1.133.gd44c7.  Sorry if that issue is already
resolved :-)
-- 
Uwe Kleine-Koenig

http://www.google.com/search?q=gigabyte+in+bit
Next: sf
Message 1 of 4 in “git log -p file.c”
  1. Uwe Kleine-KoenigJun 14, 2007
  2. sfJun 14, 2007
  3. Jakub NarebskiJun 14, 2007
  4. Linus TorvaldsJun 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.