git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] rerere: Separate libgit and builtin functions

From
Junio C Hamano <gitster@pobox.com>
Date
Jul 9, 2008, 18:25 UTC
Message-ID
<7v4p6ylxtj.fsf@gitster.siamese.dyndns.org>
In-Reply-To
<alpine.DEB.1.00.0807091356050.5277@eeepc-johanness>
Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:
Show 13 quoted lines
> 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.

Previous: Johannes Schindelin
Message 11 of 11 in “git-rerere.txt: Mention rr-cache directory”
  1. git-rerere.txt: Mention rr-cache directoryStephan Beyer, Jul 9, 2008
  2. Johannes SchindelinJul 9, 2008
  3. Johannes SchindelinJul 9, 2008
  4. Junio C HamanoJul 9, 2008
  5. Stephan BeyerJul 9, 2008
  6. rerere: Separate libgit and builtin functionsStephan Beyer, Jul 9, 2008
  7. Johannes SchindelinJul 9, 2008
  8. Stephan BeyerJul 9, 2008
  9. [PATCHv2] rerere: Separate libgit and builtin functionsStephan Beyer, Jul 9, 2008
  10. Johannes SchindelinJul 9, 2008
  11. Junio C HamanoJul 9, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.