repo.or.cz
/
git
/
gitweb.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[PATCH] Allow removing files in a subdirectory.
[git/gitweb.git]
/
git-prune-script
blob
b6e927a749a95614fed1f0e651417edbec84eb56
1
#!/bin/sh
2
git-fsck-cache
--unreachable
$
(
cat
.git
/
HEAD
)
|
grep
unreachable | cut
-d
' '
-f3
|
sed
's:^\(..\):.git/objects/\1/:'
|
xargs rm