summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRussell Belfer <rb@github.com>2012-06-12 09:29:56 -0700
committerRussell Belfer <rb@github.com>2012-06-12 09:29:56 -0700
commit64e56478ad8b3310e957701ebe234764f9f4a147 (patch)
treed2079a05a7ed028f10640a91d09fefc1b20d50a8 /src
parent14ebe518320b0306b04d256d0f5230de32c3f8b3 (diff)
parent7623b1b63f787e7d8a4354db3a0a75d7b6039bf5 (diff)
downloadlibgit2-64e56478ad8b3310e957701ebe234764f9f4a147.tar.gz
Merge pull request #760 from nulltoken/topic/logAllRefUpdates
make git_repository_init() value the core.logallrefupdates config entry
Diffstat (limited to 'src')
-rw-r--r--src/repository.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/repository.c b/src/repository.c
index 718170839..4e467e689 100644
--- a/src/repository.c
+++ b/src/repository.c
@@ -718,6 +718,9 @@ static int repo_init_config(const char *git_dir, bool is_bare, bool is_reinit)
SET_REPO_CONFIG(int32, "core.repositoryformatversion", GIT_REPO_VERSION);
SET_REPO_CONFIG(bool, "core.filemode", is_chmod_supported(git_buf_cstr(&cfg_path)));
+ if (!is_bare)
+ SET_REPO_CONFIG(bool, "core.logallrefupdates", true);
+
if (!is_reinit && is_filesystem_case_insensitive(git_dir))
SET_REPO_CONFIG(bool, "core.ignorecase", true);
/* TODO: what other defaults? */