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

[PATCH] Make logAllRefUpdates true by default

From
AKAnand Kumria <wildfire@progsoc.org>
Date
Nov 26, 2006, 15:36 UTC
Message-ID
<11645554033331-git-send-email-wildfire@progsoc.org>

reflog support, which allows you to determine what the state of a branch was at a particular date/time, is often cited as something that would be useful to have on by default. Modify git init-db, so that newly created repositories have this on.

Signed-off-by: Anand Kumria <wildfire@progsoc.org>
---
 Documentation/config.txt |    2 +-
 builtin-init-db.c        |    3 +++
 2 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/Documentation/config.txt b/Documentation/config.txt
index 9d3c71c..e8d0bc1 100644
--- a/Documentation/config.txt
+++ b/Documentation/config.txt
@@ -80,7 +80,7 @@ core.logAllRefUpdates::
 
 	This information can be used to determine what commit
 	was the tip of a branch "2 days ago".  This value is
-	false by default (no automated creation of log files).
+	true by default.
 
 core.repositoryFormatVersion::
 	Internal variable identifying the repository format and layout
diff --git a/builtin-init-db.c b/builtin-init-db.c
index 235a0ee..4ea865d 100644
--- a/builtin-init-db.c
+++ b/builtin-init-db.c
@@ -239,6 +239,9 @@ static void create_default_files(const c
 		git_config_set("core.filemode",
 			       filemode ? "true" : "false");
 	}
+
+	git_config_set("core.logAllRefUpdates", "true");
+
 }
 
 static const char init_db_usage[] =
-- 
1.4.3.3
Next: Junio C Hamano
Message 1 of 3 in “Make logAllRefUpdates true by default”
  1. Make logAllRefUpdates true by defaultAnand Kumria, Nov 26, 2006
  2. Junio C HamanoNov 26, 2006
  3. Shawn PearceNov 27, 2006

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.