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@xxxxxxxxxxx> --- 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 - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html