Hi guys.
I'm probably just missing something here, but I've run across a rather
annoying behavior of log.
When I do "git log --stat FILE", then only commits which touch FILE
are displayed, as expected. However, contrary to expectation (well,
my expectation at least), the stat shows that only one file (FILE) is
modified by the commits, even if they actually modified multiple files.
That's not what I wanted; I used FILE to select commits, not to
control how they are presented. In fact, the information which is
hidden is exactly that which I wanted to see; the whole reason for the
--stat was that I wanted to know what _other_ files were modified
together with FILE.
What's worse, I could not find how to circumvent this behavior, short
of using
git log --format=format:'%H' FILE | xargs git show --stat
which isn't especially convenient...
So, if this behavior is intentional, how can it be turned off?
// Marcus
Marcus Comstedt [off-list ref] writes:
Hi guys.
I'm probably just missing something here, but I've run across a rather
annoying behavior of log.
When I do "git log --stat FILE", then only commits which touch FILE
are displayed, as expected. However, contrary to expectation (well,
my expectation at least), the stat shows that only one file (FILE) is
modified by the commits, even if they actually modified multiple files.
That's not what I wanted; I used FILE to select commits, not to
control how they are presented. In fact, the information which is
hidden is exactly that which I wanted to see; the whole reason for the
--stat was that I wanted to know what _other_ files were modified
together with FILE.
What's worse, I could not find how to circumvent this behavior, [...]
See --full-diff option to git-log.
--
Jakub Narebski
Poland
ShadeHawk on #git
On Sun, Aug 8, 2010 at 13:29, Marcus Comstedt [off-list ref] wrote:
When I do "git log --stat FILE", then only commits which touch FILE
are displayed, as expected. However, contrary to expectation (well,
my expectation at least), the stat shows that only one file (FILE) is
modified by the commits, even if they actually modified multiple files.
That's not what I wanted;
Try adding --full-diff to your `git log` incantation.
--
larsh