summaryrefslogtreecommitdiff
path: root/config.c
diff options
context:
space:
mode:
authorJohannes Schindelin <Johannes.Schindelin@gmx.de>2009-04-28 00:32:25 +0200
committerJunio C Hamano <gitster@pobox.com>2009-04-29 16:50:07 -0700
commit348df16679cf35b7bba7afea99638e7d81dc3d33 (patch)
tree81bd57136af669f74c387061e6cd3dd502e23882 /config.c
parent26e47f25402ad51c6cfa1cd784a3431dd00deeb2 (diff)
downloadgit-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.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/config.c b/config.c
index 1750cfb85e..563a91594d 100644
--- a/config.c
+++ b/config.c
@@ -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;
}