Fix gitlink index entry filesystem matching
commita8ee75bc7a2ddbb10e0a4303b21bb5c300f98cc2
authorLinus Torvalds <torvalds@linux-foundation.org>
Fri, 13 Apr 2007 16:24:13 +0000 (13 09:24 -0700)
committerJunio C Hamano <junkio@cox.net>
Sat, 14 Apr 2007 10:14:12 +0000 (14 03:14 -0700)
tree775e5554444449e6d4797546794c653abcdcf217
parentab22aed3b7517c6390cb622b368bfcf503b7a37a
Fix gitlink index entry filesystem matching

The code to match up index entries with the filesystem was stupidly
broken.  We shouldn't compare the filesystem stat() information with
S_IFDIRLNK, since that's purely a git-internal value, and not what the
filesystem uses (on the filesystem, it's just a regular directory).

Also, don't bother to make the stat() time comparisons etc for DIRLNK
entries in ce_match_stat_basic(), since we do an exact match for these
things, and the hints in the stat data simply doesn't matter.

This fixes "git status" with submodules that haven't been checked out in
the supermodule.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
read-cache.c