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

[PATCH] git init: activate rerere by default

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Jul 5, 2007, 12:16 UTC
Message-ID
<Pine.LNX.4.64.0707051312260.9789@racer.site>

We have a working implementation of rerere since long ago, and we even make sure that it works as expected in a test case. It is also a very useful feature, so why not turn it on for the benefit of users who are not even aware of it? This patch does that.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
---
	Maybe it is too late for 1.5.3? But maybe this is nice enough to 
	have in 1.5.3?
	BTW I shamelessly put in a comment to boost my comment ration on 
	ohloh.net...
 builtin-init-db.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/builtin-init-db.c b/builtin-init-db.c
index 66ddaeb..aa3a01e 100644
--- a/builtin-init-db.c
+++ b/builtin-init-db.c
@@ -293,6 +293,9 @@ static int create_default_files(const char *git_dir, const char *git_work_tree,
 		if (git_work_tree)
 			git_config_set("core.worktree", git_work_tree);
 	}
+	/* activate rerere */
+	strcpy(path + len, "rr-cache");
+	safe_create_dir(path, 1);
 	return reinit;
 }
 
-- 
1.5.3.rc0.2689.g99ca2-dirty
Next: Alex Riesen
Message 1 of 11 in “git init: activate rerere by default”
  1. git init: activate rerere by defaultJohannes Schindelin, Jul 5, 2007
  2. Alex RiesenJul 5, 2007
  3. Junio C HamanoJul 5, 2007
  4. Johannes SchindelinJul 5, 2007
  5. Junio C HamanoJul 5, 2007
  6. Johannes SchindelinJul 5, 2007
  7. Alex RiesenJul 5, 2007
  8. Johannes SchindelinJul 5, 2007
  9. Junio C HamanoJul 6, 2007
  10. Johannes SchindelinJul 6, 2007
  11. しらいしななこJul 6, 2007

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.