diff options
| author | Junio C Hamano <junkio@cox.net> | 2005-11-11 10:41:53 -0800 |
|---|---|---|
| committer | Junio C Hamano <junkio@cox.net> | 2005-11-11 21:19:11 -0800 |
| commit | d7b1a1ddbece22c99d52ea45bdecefdb9f17a613 (patch) | |
| tree | 4ee27c9e30c7fa9a5b022f126ee93968df777b06 | |
| parent | Make git-pack-redundant consider alt-odbs (diff) | |
| download | git-d7b1a1ddbece22c99d52ea45bdecefdb9f17a613.tar.gz git-d7b1a1ddbece22c99d52ea45bdecefdb9f17a613.zip | |
git-prune: prune redundant packs
Signed-off-by: Junio C Hamano <junkio@cox.net>
| -rwxr-xr-x | git-prune.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/git-prune.sh b/git-prune.sh index ef31bd2a68..aa79807313 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 |
