summaryrefslogtreecommitdiff
path: root/symlinks.c
diff options
context:
space:
mode:
authorLibravatar Kjetil Barvik <barvik@broadpark.no>2009-02-09 21:54:52 +0100
committerLibravatar Junio C Hamano <gitster@pobox.com>2009-02-09 20:59:26 -0800
commit91fcbcbdcdd845bd43104c5ac0af4c40da15223b (patch)
treedb79289bc0d20fa422969bd2ca93220427e78b7d /symlinks.c
parentwrite_entry(): use fstat() instead of lstat() when file is open (diff)
downloadtgif-91fcbcbdcdd845bd43104c5ac0af4c40da15223b.tar.xz
show_patch_diff(): remove a call to fstat()
Currently inside show_patch_diff() we have an fstat() call after an ok lstat() call. Since before the call to fstat() we have already tested for the link case with S_ISLNK(), the fstat() can be removed. Signed-off-by: Kjetil Barvik <barvik@broadpark.no> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'symlinks.c')
0 files changed, 0 insertions, 0 deletions