git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Bug: git log --numstat counts wrong
@ 2011-09-21  9:03 Alexander Pepper
  2011-09-21 12:24 ` Junio C Hamano
  0 siblings, 1 reply; 16+ messages in thread
From: Alexander Pepper @ 2011-09-21  9:03 UTC (permalink / raw)
  To: git

Hello there.

I already reported some similar bug with git log --numstat to this mailinglist (see http://www.spinics.net/lists/git/msg163358.html ). Back then empty lines seems to be the issue, but the bug was never fixed.

I found another case, where git log --numstat counts wrong. This time git log --numstat yields bigger numbers than diffstat.

Minimal example:
$ git clone https://github.com/voldemort/voldemort.git
$ cd voldemort/
$ git show 48a07e7e533f507228e8d1c99d4d48e175e14260 -- src/java/voldemort/server/storage/StorageService.java | diffstat
 StorageService.java |   19 ++++++++++---------
 1 file changed, 10 insertions(+), 9 deletions(-)
$ git log --numstat 48a07e7e533f507228e8d1c99d4d48e175e14260
[...]
11      10      src/java/voldemort/server/storage/StorageService.java


So git log --numstat claimes that 11 lines where added, where diffstat only counts 10! A closer look inside the StorageService.java reveals no empty lines.

My system:
* Mac osx 10.6.8
* git 1.7.5.4 (but also check with a self compiled 1.7.6.1)

Can you confirm that this is a bug? If so, are there plans to fix it in the future?

Greetings from Berlin
Alex

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2011-09-25 17:53 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-21  9:03 Bug: git log --numstat counts wrong Alexander Pepper
2011-09-21 12:24 ` Junio C Hamano
2011-09-21 13:40   ` Alexander Pepper
2011-09-21 14:23   ` Alexander Pepper
2011-09-21 20:35     ` Junio C Hamano
2011-09-22 13:19       ` Alexander Pepper
2011-09-22 17:32         ` Junio C Hamano
2011-09-22 16:15       ` René Scharfe
2011-09-23  6:30         ` Tay Ray Chuan
2011-09-25 13:39         ` [PATCH] Revert removal of multi-match discard heuristic in 27af01 Tay Ray Chuan
2011-09-25 17:53           ` René Scharfe
2011-09-22 17:51       ` Bug: git log --numstat counts wrong Junio C Hamano
2011-09-23  9:18         ` Tay Ray Chuan
2011-09-23 16:38           ` Tay Ray Chuan
2011-09-23 19:23             ` Junio C Hamano
2011-09-23 10:30         ` Alexander Pepper

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).