Code

fix populate-filespec
authorJunio C Hamano <junkio@cox.net>
Wed, 20 Dec 2006 02:26:48 +0000 (18:26 -0800)
committerJunio C Hamano <junkio@cox.net>
Wed, 20 Dec 2006 05:33:24 +0000 (21:33 -0800)
I hand munged the original patch when committing 1510fea78, and
screwed up the conversion.

Signed-off-by: Junio C Hamano <junkio@cox.net>
diff.c

diff --git a/diff.c b/diff.c
index 99744354a77418ab462b6b797c6ab334cc364960..6e6f2a765c28919d80e7172152d1f760985b605b 100644 (file)
--- a/diff.c
+++ b/diff.c
@@ -1223,7 +1223,7 @@ static int reuse_worktree_file(const char *name, const unsigned char *sha1, int
         * objects however would tend to be slower as they need
         * to be individually opened and inflated.
         */
-       if (FAST_WORKING_DIRECTORY && !want_file && has_sha1_pack(sha1, NULL))
+       if (!FAST_WORKING_DIRECTORY && !want_file && has_sha1_pack(sha1, NULL))
                return 0;
 
        len = strlen(name);