git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH]  Make logAllRefUpdates true by default
@ 2006-11-26 15:36 Anand Kumria
  2006-11-26 20:12 ` Junio C Hamano
  0 siblings, 1 reply; 4+ messages in thread
From: Anand Kumria @ 2006-11-26 15:36 UTC (permalink / raw)
  To: git; +Cc: Anand Kumria

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

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

end of thread, other threads:[~2006-11-27  5:01 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-11-26 15:36 [PATCH] Make logAllRefUpdates true by default Anand Kumria
2006-11-26 20:12 ` Junio C Hamano
2006-11-26 23:05   ` Horst H. von Brand
2006-11-27  5:01   ` Shawn Pearce

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