commit | d7b1a1ddbece22c99d52ea45bdecefdb9f17a613 | [log] [tgz] |
---|---|---|
author | Junio C Hamano <junkio@cox.net> | Fri Nov 11 10:41:53 2005 -0800 |
committer | Junio C Hamano <junkio@cox.net> | Fri Nov 11 21:19:11 2005 -0800 |
tree | 4ee27c9e30c7fa9a5b022f126ee93968df777b06 | |
parent | 1c3039e8f1eb01766cff976793c8f439095967f6 [diff] [blame] |
git-prune: prune redundant packs Signed-off-by: Junio C Hamano <junkio@cox.net>
diff --git a/git-prune.sh b/git-prune.sh index ef31bd2..aa79807 100755 --- a/git-prune.sh +++ b/git-prune.sh
@@ -27,3 +27,14 @@ } 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