summaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2014-06-10 20:20:30 (GMT)
committerJunio C Hamano <gitster@pobox.com>2014-06-10 21:05:19 (GMT)
commit71d76cb48029c94af022ea9dc9c74b4ba8bcc3a3 (patch)
tree5632c4870f1acdcb47d3d6f9661728c09786e94c /builtin
parent2bed2d47b4394bd6d4ae4645be9f7424009d3c9c (diff)
downloadgit-71d76cb48029c94af022ea9dc9c74b4ba8bcc3a3.zip
git-71d76cb48029c94af022ea9dc9c74b4ba8bcc3a3.tar.gz
git-71d76cb48029c94af022ea9dc9c74b4ba8bcc3a3.tar.bz2
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 634668a..cd4d4d4 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;
}