repack: only unpack-unreachable if we are deleting redundant packs
commit83d0289df6fb4deae100ee3fc37b90683c2e8c9f
authorBrandon Casey <casey@nrlssc.navy.mil>
Thu, 13 Nov 2008 20:11:46 +0000 (13 14:11 -0600)
committerJunio C Hamano <gitster@pobox.com>
Sat, 15 Nov 2008 05:39:10 +0000 (14 21:39 -0800)
tree0c863808154fd99432f37d205c286eda6512b622
parent3289b9dec56d34fe05f90c262d11adc0a61e16e7
repack: only unpack-unreachable if we are deleting redundant packs

The -A option calls pack-objects with the --unpack-unreachable option so
that the unreachable objects in local packs are left in the local object
store loose. But if the -d option to repack was _not_ used, then these
unpacked loose objects are redundant and unnecessary.

Update tests in t7701.

Signed-off-by: Brandon Casey <casey@nrlssc.navy.mil>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-repack.txt
git-repack.sh
t/t7701-repack-unpack-unreachable.sh