aboutsummaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2014-06-10 16:20:30 -0400
committerJunio C Hamano <gitster@pobox.com>2014-06-10 14:05:19 -0700
commit71d76cb48029c94af022ea9dc9c74b4ba8bcc3a3 (patch)
tree5632c4870f1acdcb47d3d6f9661728c09786e94c /builtin
parent2bed2d47b4394bd6d4ae4645be9f7424009d3c9c (diff)
downloadgit-71d76cb48029c94af022ea9dc9c74b4ba8bcc3a3.tar.gz
git-71d76cb48029c94af022ea9dc9c74b4ba8bcc3a3.tar.xz
repack: introduce repack.writeBitmaps config option
We currently have pack.writeBitmaps, which originally operated at the pack-objects level. This should really have been a repack.* option from day one. Let's give it the more sensible name, but keep the old version as a deprecated synonym. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin')
-rw-r--r--builtin/repack.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/builtin/repack.c b/builtin/repack.c
index 634668a7c..cd4d4d427 100644
--- a/builtin/repack.c
+++ b/builtin/repack.c
@@ -28,7 +28,8 @@ static int repack_config(const char *var, const char *value, void *cb)
pack_kept_objects = git_config_bool(var, value);
return 0;
}
- if (!strcmp(var, "pack.writebitmaps")) {
+ if (!strcmp(var, "repack.writebitmaps") ||
+ !strcmp(var, "pack.writebitmaps")) {
write_bitmaps = git_config_bool(var, value);
return 0;
}