summaryrefslogtreecommitdiff
path: root/t/t5403-post-checkout-hook.sh
diff options
context:
space:
mode:
authorLibravatar Jeff King <peff@peff.net>2014-10-16 20:44:54 -0400
committerLibravatar Junio C Hamano <gitster@pobox.com>2014-10-19 15:07:07 -0700
commitb1e757f36377df1f2a6c165ebf171b09a8ad957b (patch)
tree06aa8d88ce27396ab313a47980356536ede59758 /t/t5403-post-checkout-hook.sh
parentrepack: pack objects mentioned by the index (diff)
downloadtgif-b1e757f36377df1f2a6c165ebf171b09a8ad957b.tar.xz
pack-objects: double-check options before discarding objects
When we are given an expiration time like --unpack-unreachable=2.weeks.ago, we avoid writing out old, unreachable loose objects entirely, under the assumption that running "prune" would simply delete them immediately anyway. However, this is only valid if we computed the same set of reachable objects as prune would. In practice, this is the case, because only git-repack uses the --unpack-unreachable option with an expiration, and it always feeds as many objects into the pack as possible. But we can double-check at runtime just to be sure. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t5403-post-checkout-hook.sh')
0 files changed, 0 insertions, 0 deletions