git-prune: prune redundant packs
Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
11
git-prune.sh
11
git-prune.sh
@ -27,3 +27,14 @@ sed -ne '/unreachable /{
|
|||||||
}
|
}
|
||||||
|
|
||||||
git-prune-packed $dryrun
|
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
|
||||||
|
Reference in New Issue
Block a user