Skip to content

Commit

Permalink
git-prune: prune redundant packs
Browse files Browse the repository at this point in the history
Signed-off-by: Junio C Hamano <junkio@cox.net>
  • Loading branch information
Junio C Hamano committed Nov 12, 2005
1 parent 1c3039e commit d7b1a1d
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions git-prune.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit d7b1a1d

Please sign in to comment.