author | Linus Torvalds <torvalds@linux-foundation.org> | |
Tue, 14 Jul 2009 21:19:10 +0000 (14:19 -0700) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Tue, 14 Jul 2009 22:17:01 +0000 (15:17 -0700) | ||
commit | 05c1da2f5e7a5c0d2bbd1154bbb6c5cc9cb2b17f | |
tree | 87252bd99b85a9f158a662c58f0124c93b4293e4 | tree | snapshot |
parent | a38837341c995773f2adc29ff5971196187b07fb | commit | diff |
Fix extraneous lstat's in 'git checkout -f'
In our 'oneway_merge()' we always do an 'lstat()' to see if we might
need to mark the entry for updating.
But we really shouldn't need to do that when the cache entry is already
marked as being ce_uptodate(), and this makes us do unnecessary lstat()
calls if we have index preloading enabled.
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
In our 'oneway_merge()' we always do an 'lstat()' to see if we might
need to mark the entry for updating.
But we really shouldn't need to do that when the cache entry is already
marked as being ce_uptodate(), and this makes us do unnecessary lstat()
calls if we have index preloading enabled.
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
unpack-trees.c | diff | blob | history |