git-prune: prune redundant packs

Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
Junio C Hamano 2005-11-11 10:41:53 -08:00
parent 1c3039e8f1
commit d7b1a1ddbe

View file

@ -27,3 +27,14 @@ sed -ne '/unreachable /{
}
git-prune-packed $dryrun
redundant=$(git-pack-redundant --all)
if test "" != "$redundant"
then
if test "" = $dryrun
then
echo "$redundant" | xargs rm -f
else
echo rm -f "$redundant"
fi
fi