Thread (1 message) 1 message, 1 author, 2016-06-15

Re: [PATCH 13/16] init: allow alternate backends to be set for new repos

From: Junio C Hamano <hidden>
Date: 2016-06-15 23:07:23

David Turner [off-list ref] writes:
quoted hunk
diff --git a/setup.c b/setup.c
index d343725..de6b8ac 100644
--- a/setup.c
+++ b/setup.c
@@ -1,5 +1,6 @@
 #include "cache.h"
 #include "dir.h"
+#include "refs.h"
 #include "string-list.h"
 
 static int inside_git_dir = -1;
@@ -263,6 +264,15 @@ int get_common_dir_noenv(struct strbuf *sb, const char *gitdir)
 	return ret;
 }
 
+int refdb_config(const char *var, const char *value, void *ptr)
+{
+       struct refdb_config_data *cdata = ptr;
+
+       if (!strcmp(var, "core.refsbackendtype"))
+	       cdata->refs_backend_type = xstrdup((char *)value);
+       return 0;
+}
+
These lines seem to be indented with SPs not HTs.
 /*
  * Test if it looks like we're at a git directory.
  * We want to see:
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help