Re: git log -p file.c
- From
Jakub Narebski <jnareb@gmail.com>
- Date
- Jun 14, 2007, 21:55 UTC
- Message-ID
- <f4shn6$r6q$1@sea.gmane.org>
- In-Reply-To
- <20070614090217.GA8271@informatik.uni-freiburg.de>
[Cc: git@vger.kernel.org]
Uwe Kleine-Koenig wrote:
Show 7 quoted lines
> 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.
Try unfortunately _undocumented_ --full-diff option to git-log.
git log -p --full-diff -- file.c
(the --full-diff option was introduced in commit-477f2b41 without adding appropriate info to Documentation/git-log.txt)
> And is it intended that (clean) merges are shown?
Path limiting simplifies history, and might linearize it (i.e. merges become non-merges).
-- Jakub Narebski Warsaw, Poland ShadeHawk on #git