git/git-prune-script
Junio C Hamano 0fc65a4572 [PATCH] leftover bits for git rename
Linus said:

    "Let's see what else I forgot.."

Not that many, but here they are.

Signed-off-by: Junio C Hamano <junkio@cox.net>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2005-04-29 16:25:05 -07:00

3 lines
139 B
Bash
Executable file

#!/bin/sh
git-fsck-cache --unreachable $(cat .git/HEAD ) | grep unreachable | cut -d' ' -f3 | sed 's:^\(..\):.git/objects/\1/:' | xargs rm