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 <redacted>
---
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