projects
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Add git-config-set, a simple helper for scripts to set config variables
[git.git]
/
git-prune.sh
diff --git
a/git-prune.sh
b/git-prune.sh
index
ef31bd2
..
c4de7f5
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