diff options
author | Johannes Schindelin <Johannes.Schindelin@gmx.de> | 2009-04-28 00:32:25 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-04-29 16:50:07 -0700 |
commit | 348df16679cf35b7bba7afea99638e7d81dc3d33 (patch) | |
tree | 81bd57136af669f74c387061e6cd3dd502e23882 /config.c | |
parent | 26e47f25402ad51c6cfa1cd784a3431dd00deeb2 (diff) | |
download | git-348df16679cf35b7bba7afea99638e7d81dc3d33.tar.gz |
Rename core.unreliableHardlinks to core.createObject
"Unreliable hardlinks" is a misleading description for what is happening.
So rename it to something less misleading.
Suggested by Linus Torvalds.
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
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; } |