Code

show_patch_diff(): remove a call to fstat()
authorKjetil Barvik <barvik@broadpark.no>
Mon, 9 Feb 2009 20:54:52 +0000 (21:54 +0100)
committerJunio C Hamano <gitster@pobox.com>
Tue, 10 Feb 2009 04:59:26 +0000 (20:59 -0800)
commit91fcbcbdcdd845bd43104c5ac0af4c40da15223b
treedb79289bc0d20fa422969bd2ca93220427e78b7d
parente4c7292353dbef39feac1c6a60c5cde9140520a6
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>
combine-diff.c