From: Heikki Orsila <shdl@zakalwe.fi>
To: git@vger.kernel.org
Subject: A bug in git 1.6.5.2 with git log --stat: shows a negative number as a size
Date: Fri, 16 Apr 2010 16:59:48 +0300 [thread overview]
Message-ID: <20100416135948.GA26918@zakalwe.fi> (raw)
I'm running git version 1.6.5.2. git log --stat shows a negative
diffstat size for two files that are each 2049MiB in size.
Steps to reproduce:
$ for f in 0 1 ; do dd bs=$((1024*1024)) if=/dev/zero of=$f count=2049 ; done
$ git add 0 1
$ git commit -m "test commit"
$ git log --stat
commit 6afe3d3c889daa92bd79956c4bb733eb5cb408dc
Author: Heikki Orsila <heikki.orsila@iki.fi>
Date: 2010-04-16 16:54:52 +0300
test commit
0 | Bin 0 -> -2146435072 bytes
1 | Bin 0 -> -2146435072 bytes
2 files changed, 0 insertions(+), 0 deletions(-)
--
Heikki Orsila
heikki.orsila@iki.fi
http://www.iki.fi/shd
next reply other threads:[~2010-04-16 14:09 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-16 13:59 Heikki Orsila [this message]
2010-04-16 15:02 ` A bug in git 1.6.5.2 with git log --stat: shows a negative number as a size Tomas Carnecky
2010-04-17 10:25 ` [PATCH] diff: use 64-bit integers for diffstat calculations Jeff King
2010-04-17 17:00 ` Junio C Hamano
2010-04-17 17:41 ` Jeff King
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20100416135948.GA26918@zakalwe.fi \
--to=shdl@zakalwe.fi \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).