mirror of
https://github.com/git/git
synced 2024-08-25 10:45:59 +00:00
git-prune: prune redundant packs
Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
parent
1c3039e8f1
commit
d7b1a1ddbe
11
git-prune.sh
11
git-prune.sh
|
@ -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…
Reference in a new issue