projects
/
git.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Make "git-prune-script" take all refs into account.
[git.git]
/
git-prune-script
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