diff options
Diffstat (limited to 'config.c')
-rw-r--r-- | config.c | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -495,8 +495,13 @@ static int git_default_core_config(const char *var, const char *value) return 0; } - if (!strcmp(var, "core.unreliablehardlinks")) { - unreliable_hardlinks = git_config_bool(var, value); + if (!strcmp(var, "core.createobject")) { + if (!strcmp(value, "rename")) + object_creation_mode = OBJECT_CREATION_USES_RENAMES; + else if (!strcmp(value, "link")) + object_creation_mode = OBJECT_CREATION_USES_HARDLINKS; + else + die("Invalid mode for object creation: %s", value); return 0; } |