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

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

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Jul 9, 2008, 12:03 UTC
Message-ID
<alpine.DEB.1.00.0807091356050.5277@eeepc-johanness>
In-Reply-To
<1215598683-9685-1-git-send-email-s-beyer@gmx.net>
Hi,
On Wed, 9 Jul 2008, Stephan Beyer wrote:
Show 5 quoted lines
>  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 :-)
Show 16 quoted lines
> diff --git a/builtin-rerere.c b/rerere.c
> similarity index 66%
> copy from builtin-rerere.c
> copy to rerere.c
> index 85222d9..5c22bed 100644
> --- a/builtin-rerere.c
> +++ b/rerere.c
> @@ -1,18 +1,11 @@
> -#include "builtin.h"
>  #include "cache.h"
>  #include "path-list.h"
> +#include "rerere.h"
>  #include "xdiff/xdiff.h"
>  #include "xdiff-interface.h"
>  
>  #include <time.h>
No longer necessary, is it?
Show 12 quoted lines
> diff --git a/rerere.h b/rerere.h
> new file mode 100644
> index 0000000..35b0fa8
> --- /dev/null
> +++ b/rerere.h
> @@ -0,0 +1,9 @@
> +#ifndef RERERE_H
> +#define RERERE_H
> +
> +#include "path-list.h"
> +
> +extern int setup_rerere(struct path_list *);
Why?

Ah, it is needed for "gc". Maybe this needs documentation, since it cause some minutes of head scratching with yours truly.

Ciao, Dscho

Previous: Stephan BeyerNext: Junio C Hamano
Message 10 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.