From: Linus Torvalds Date: Thu, 14 Jul 2005 15:57:14 +0000 (-0700) Subject: Make "git prune" use the "--full" flag to git-fsck-cache X-Git-Tag: v0.99.1~25 X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=commitdiff_plain;h=b0966e1010547095ea6fe546dcbbe23a03b62841;p=git.git Make "git prune" use the "--full" flag to git-fsck-cache 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. --- diff --git a/git-prune-script b/git-prune-script index 97646685b..2c678f26a 100755 --- a/git-prune-script +++ b/git-prune-script @@ -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