repack: simplify handling of --write-bitmap-index
commit2bed2d47b4394bd6d4ae4645be9f7424009d3c9c
authorJeff King <peff@peff.net>
Tue, 10 Jun 2014 20:19:38 +0000 (10 16:19 -0400)
committerJunio C Hamano <gitster@pobox.com>
Tue, 10 Jun 2014 21:04:06 +0000 (10 14:04 -0700)
treec412afd638c4c3a02882b7bad3dff0f121d23403
parent15a906c5e99fc34534fd40d61590da142dee71d2
repack: simplify handling of --write-bitmap-index

We previously needed to pass --no-write-bitmap-index
explicitly to pack-objects to override its reading of
pack.writebitmaps from the config. Now that it no longer
does so, we can assume that bitmaps are off by default, and
only turn them on when necessary. This also lets us avoid a
confusing tri-state flag for write_bitmaps.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/repack.c