mirror of
https://github.com/git/git.git
synced 2026-03-14 02:43:25 +01:00
Merge branch 'jc/skip-count' into next
* jc/skip-count: revision: --skip=<n> GIT 1.4.4.3 clarify some error messages wrt unknown object types simplify inclusion of system header files. index-pack usage of mmap() is unacceptably slower on many OSes other than Linux gitweb: Show '...' links in "summary" view only if there are more items config_rename_section: fix FILE* leak Remove COLLISION_CHECK from Makefile since it's not used. fix populate-filespec git-cvsserver: fix breakage when calling git merge-file
This commit is contained in:
5
diff.c
5
diff.c
@@ -1,9 +1,6 @@
|
||||
/*
|
||||
* Copyright (C) 2005 Junio C Hamano
|
||||
*/
|
||||
#include <sys/types.h>
|
||||
#include <sys/wait.h>
|
||||
#include <signal.h>
|
||||
#include "cache.h"
|
||||
#include "quote.h"
|
||||
#include "diff.h"
|
||||
@@ -1237,7 +1234,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);
|
||||
|
||||
Reference in New Issue
Block a user