From: Junio C Hamano <gitster@pobox.com>
To: Johannes Schindelin <Johannes.Schindelin@gmx.de>
Cc: Stephan Beyer <s-beyer@gmx.net>, git@vger.kernel.org
Subject: Re: [PATCH] rerere: Separate libgit and builtin functions
Date: Wed, 09 Jul 2008 11:25:12 -0700 [thread overview]
Message-ID: <7v4p6ylxtj.fsf@gitster.siamese.dyndns.org> (raw)
In-Reply-To: <alpine.DEB.1.00.0807091356050.5277@eeepc-johanness> (Johannes Schindelin's message of "Wed, 9 Jul 2008 14:03:53 +0200 (CEST)")
Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:
> On Wed, 9 Jul 2008, Stephan Beyer wrote:
>
>> Makefile | 2 +
>> builtin-rerere.c | 324 +++---------------------------------------
>> builtin-rerere.c => rerere.c | 133 +-----------------
>> rerere.h | 9 ++
>> 4 files changed, 32 insertions(+), 436 deletions(-)
>
> Heh, that sounds nice! Deleting way more lines than adding! :-)
>
>> copy builtin-rerere.c => rerere.c (66%)
>
> Oh, well :-)
We may want to fix this, though. I haven't verified by looking at the
diffstat summary code, but what I think is happening is that the bogus 436
is the result of counting the lines removed from builtin-rerere.c (that
lost many of its lines to rerere.c), and also counting the lines that were
remove from rerere.c pretending as if rerere.c had full contents of
builtin-rerere.c initially (i.e., counting the lines that were _not_ moved
to rerere.c).
It may just be the matter of subtracting the size of the preimage of
copied files (in this case, builtin-rerere.c that was used to initialize
rerere.c) from the grand total of deleted lines. I dunno.
prev parent reply other threads:[~2008-07-09 18:26 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-09 0:17 [PATCH] git-rerere.txt: Mention rr-cache directory Stephan Beyer
2008-07-09 0:25 ` Johannes Schindelin
2008-07-09 0:38 ` Johannes Schindelin
2008-07-09 1:09 ` Junio C Hamano
2008-07-09 9:21 ` Stephan Beyer
2008-07-09 10:18 ` [PATCH] rerere: Separate libgit and builtin functions Stephan Beyer
2008-07-09 11:55 ` Johannes Schindelin
2008-07-09 12:00 ` Stephan Beyer
2008-07-09 12:58 ` [PATCHv2] " Stephan Beyer
2008-07-09 12:03 ` [PATCH] " Johannes Schindelin
2008-07-09 18:25 ` Junio C Hamano [this message]
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=7v4p6ylxtj.fsf@gitster.siamese.dyndns.org \
--to=gitster@pobox.com \
--cc=Johannes.Schindelin@gmx.de \
--cc=git@vger.kernel.org \
--cc=s-beyer@gmx.net \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.