author | Johannes Schindelin <johannes.schindelin@gmx.de> | |
Thu, 29 Jan 2009 16:30:51 +0000 (17:30 +0100) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sat, 31 Jan 2009 05:11:24 +0000 (21:11 -0800) | ||
commit | 418566b6fdcc0eb1b5549d0742366aa13a7ff277 | |
tree | a2d36ff84e44fef36ed1e9d556aea94c6d5a78a6 | tree | snapshot |
parent | 41a4d16e200d24b2435148e974b665429931abc9 | commit | diff |
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>
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 | diff | blob | history | |
t/t4011-diff-symlink.sh | diff | blob | history |