summaryrefslogtreecommitdiffstats
path: root/git-prune.sh
diff options
context:
space:
mode:
authorJunio C Hamano <junkio@cox.net>2005-11-11 22:37:38 -0800
committerJunio C Hamano <junkio@cox.net>2005-11-11 22:37:38 -0800
commitf7a2eb735982e921ae4379f1dcf5f7a023610393 (patch)
tree26fe2c59a8fed68a531e7b855a495f52198162a2 /git-prune.sh
parentGIT 0.99.9g (diff)
parentIgnore built git-lost+found. (diff)
downloadgit-0.99.9h.tar.gz
git-0.99.9h.zip
GIT 0.99.9hv1.0rc1v0.99.9h
This is GIT 1.0-rc1 in disguise. It is plausible that relatively new parts of the system still need tweaking and fixing, but that is why it is not 1.0 but rc ;-). Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'git-prune.sh')
-rwxr-xr-xgit-prune.sh11
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