Code

pack-objects: only repack or loosen objects residing in "local" packs
authorBrandon Casey <casey@nrlssc.navy.mil>
Fri, 20 Mar 2009 03:47:52 +0000 (22:47 -0500)
committerJunio C Hamano <gitster@pobox.com>
Fri, 20 Mar 2009 20:32:33 +0000 (13:32 -0700)
commit79bc4c715516fdb393d107359327c1e7fbb8bf04
tree04fa7c94626afb25a5fd433845404fb4695af047
parent171110a4a67f04c28d2ac89385ab88ba051fc780
pack-objects: only repack or loosen objects residing in "local" packs

These two features were invented for use by repack when repack will delete
the local packs that have been made redundant.  The packs accessible
through alternates are not deleted by repack, so the objects contained in
them are still accessible after the local packs are deleted.  They do not
need to be repacked into the new pack or loosened.  For the case of
loosening they would immediately be deleted by the subsequent prune-packed
that is called by repack anyway.

This fixes the test
'packed unreachable obs in alternate ODB are not loosened' in t7700.

Signed-off-by: Brandon Casey <casey@nrlssc.navy.mil>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin-pack-objects.c
t/t7700-repack.sh