Fix 'git diff --no-index' with a non-existing symlink target
commit418566b6fdcc0eb1b5549d0742366aa13a7ff277
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Thu, 29 Jan 2009 16:30:51 +0000 (29 17:30 +0100)
committerJunio C Hamano <gitster@pobox.com>
Sat, 31 Jan 2009 05:11:24 +0000 (30 21:11 -0800)
treea2d36ff84e44fef36ed1e9d556aea94c6d5a78a6
parent41a4d16e200d24b2435148e974b665429931abc9
Fix 'git diff --no-index' with a non-existing symlink target

When trying to find out mode changes, we should not access the symlink
targets using stat(); instead we use lstat() so that the diff does
not fail trying to find a non-existing symlink target.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
diff-no-index.c
t/t4011-diff-symlink.sh