git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] git init: activate rerere by default
@ 2007-07-05 12:16 Johannes Schindelin
  2007-07-05 13:10 ` Alex Riesen
  0 siblings, 1 reply; 12+ messages in thread
From: Johannes Schindelin @ 2007-07-05 12:16 UTC (permalink / raw)
  To: git, gitster


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

^ permalink raw reply related	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2007-07-06 12:10 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <200707061112.l66BCb6w017186@mi1.bluebottle.com>
2007-07-06 12:03 ` [PATCH] git init: activate rerere by default Johannes Schindelin
2007-07-05 12:16 Johannes Schindelin
2007-07-05 13:10 ` Alex Riesen
2007-07-05 16:46   ` Junio C Hamano
2007-07-05 17:15     ` Johannes Schindelin
2007-07-05 18:53       ` Junio C Hamano
2007-07-05 19:22         ` Johannes Schindelin
2007-07-05 21:40           ` Alex Riesen
2007-07-05 22:29             ` Johannes Schindelin
2007-07-06  5:12           ` Junio C Hamano
2007-07-06 12:03             ` Johannes Schindelin
2007-07-06 11:12           ` しらいしななこ

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).