Browse Source

git-prune: prune redundant packs

Signed-off-by: Junio C Hamano <junkio@cox.net>
maint
Junio C Hamano 19 years ago
parent
commit
d7b1a1ddbe
  1. 11
      git-prune.sh

11
git-prune.sh

@ -27,3 +27,14 @@ sed -ne '/unreachable /{ @@ -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

Loading…
Cancel
Save