Code

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 97646685b70ac18210be130566b2c36395120385..2c678f26a4ec8c9a319944b76c427b30450bf861 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