projects
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1c3039e
)
git-prune: prune redundant packs
author
Junio C Hamano
<junkio@cox.net>
Fri, 11 Nov 2005 18:41:53 +0000
(10:41 -0800)
committer
Junio C Hamano
<junkio@cox.net>
Sat, 12 Nov 2005 05:19:11 +0000
(21:19 -0800)
Signed-off-by: Junio C Hamano <junkio@cox.net>
git-prune.sh
patch
|
blob
|
history
diff --git
a/git-prune.sh
b/git-prune.sh
index
ef31bd2
..
aa79807
100755
(executable)
--- 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