summaryrefslogtreecommitdiff
path: root/symlinks.c
diff options
context:
space:
mode:
authorKjetil Barvik <barvik@broadpark.no>2009-02-09 20:54:51 (GMT)
committerJunio C Hamano <gitster@pobox.com>2009-02-10 04:59:26 (GMT)
commite4c7292353dbef39feac1c6a60c5cde9140520a6 (patch)
treea7f66ac7391e445cd14cbf04caac2971db780bb1 /symlinks.c
parent4857c761e35b07c12ff2ef1140e93b071b8ac4e7 (diff)
downloadgit-e4c7292353dbef39feac1c6a60c5cde9140520a6.zip
git-e4c7292353dbef39feac1c6a60c5cde9140520a6.tar.gz
git-e4c7292353dbef39feac1c6a60c5cde9140520a6.tar.bz2
write_entry(): use fstat() instead of lstat() when file is open
Currently inside write_entry() we do an lstat(path, &st) call on a file which have just been opened inside the exact same function. It should be better to call fstat(fd, &st) on the file while it is open, and it should be at least as fast as the lstat() method. 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