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

[PATCH] Allow default core.logallrefupdates to be overridden with template's config

From
Alex Riesen <raa.lkml@gmail.com>
Date
Jan 23, 2007, 15:54 UTC
Message-ID
<81b0412b0701230754p3425ded4k1f37dd26500c1744@mail.gmail.com>
Signed-off-by: Alex Riesen <raa.lkml@gmail.com>
---

Never found a use for the reflogs and tried to switch them off. Didn't work - init-db rewrote it.

 builtin-init-db.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
From 713c4890ce795c840f5b4468db8689de44572ef8 Mon Sep 17 00:00:00 2001
From: Alex Riesen <raa.lkml@gmail.com>
Date: Tue, 23 Jan 2007 16:51:18 +0100
Subject: [PATCH] Allow default core.logallrefupdates to be overridden with template's config
Signed-off-by: Alex Riesen <raa.lkml@gmail.com>
---
 builtin-init-db.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/builtin-init-db.c b/builtin-init-db.c
index 8e7540b..1865489 100644
--- a/builtin-init-db.c
+++ b/builtin-init-db.c
@@ -257,7 +257,9 @@ static int create_default_files(const char *git_dir, const char *template_path)
 	}
 	else {
 		git_config_set("core.bare", "false");
-		git_config_set("core.logallrefupdates", "true");
+		/* allow template config file to override the default */
+		if (log_all_ref_updates == -1)
+		    git_config_set("core.logallrefupdates", "true");
 	}
 	return reinit;
 }
-- 
1.5.0.rc2.g83d3
Next: Linus Torvalds
Message 1 of 8 in “Allow default core.logallrefupdates to be overridden with template's config”
  1. Allow default core.logallrefupdates to be overridden with template's configAlex Riesen, Jan 23, 2007
  2. Linus TorvaldsJan 23, 2007
  3. Uwe Kleine-KönigJan 23, 2007
  4. Alex RiesenJan 23, 2007
  5. Junio C HamanoJan 24, 2007
  6. Johannes SchindelinJan 24, 2007
  7. Junio C HamanoJan 24, 2007
  8. Junio C HamanoJan 24, 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.