repo.or.cz
/
git.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Make "git-prune-script" take all refs into account.
[git.git]
/
git-prune-script
blob
a24ba616dd4181dd5a5bd97a2d05228080894545
1
#!/bin/sh
2
REFS
=
$
(
cat
.git
/
refs
/*/*)
3
[
"
$REFS
"
]
||
exit
1
4
git-fsck-cache
--unreachable
$REFS
|
grep
unreachable | cut
-d
' '
-f3
|
sed
's:^\(..\):.git/objects/\1/:'
|
xargs
-r
rm