Avoid using 'lstat()' to figure out directories
authorLinus Torvalds <torvalds@linux-foundation.org>
Thu, 9 Jul 2009 20:14:28 +0000 (13:14 -0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 10 Jul 2009 03:05:19 +0000 (20:05 -0700)
commit443e061a41bee30de34793648793ed70477ac575
tree8058073542cbf810c110778f0f49e5674f91a5fc
parentcaa6b7825aaddb8a97a5b793ca61df0c1ec9b76b
Avoid using 'lstat()' to figure out directories

If we have an up-to-date index entry for a file in that directory, we
can know that the directories leading up to that file must be
directories.  No need to do an lstat() on the directory.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
dir.c