Make "git prune" use the "--full" flag to git-fsck-cache
authorLinus Torvalds <torvalds@g5.osdl.org>
Thu, 14 Jul 2005 15:57:14 +0000 (08:57 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Thu, 14 Jul 2005 15:57:14 +0000 (08:57 -0700)
It's too dangerous not to.  We need to follow alternate object
directories etc, or we might say something is unreachable just because
we didn't look it up completely.

git-prune-script

index 9764668..2c678f2 100755 (executable)
@@ -14,7 +14,7 @@ do
     shift;
 done
 
-git-fsck-cache --cache --unreachable "$@" |
+git-fsck-cache --full --cache --unreachable "$@" |
 sed -ne '/unreachable /{
     s/unreachable [^ ][^ ]* //
     s|\(..\)|\1/|p