From d7b1a1ddbece22c99d52ea45bdecefdb9f17a613 Mon Sep 17 00:00:00 2001 From: Junio C Hamano Date: Fri, 11 Nov 2005 10:41:53 -0800 Subject: [PATCH] git-prune: prune redundant packs Signed-off-by: Junio C Hamano --- git-prune.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/git-prune.sh b/git-prune.sh index ef31bd2a6..aa7980731 100755 --- a/git-prune.sh +++ b/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 -- 2.30.2