diff options
author | Kjetil Barvik <barvik@broadpark.no> | 2009-02-09 21:54:51 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-02-09 20:59:26 -0800 |
commit | e4c7292353dbef39feac1c6a60c5cde9140520a6 (patch) | |
tree | a7f66ac7391e445cd14cbf04caac2971db780bb1 /diff-no-index.c | |
parent | 4857c761e35b07c12ff2ef1140e93b071b8ac4e7 (diff) | |
download | git-e4c7292353dbef39feac1c6a60c5cde9140520a6.tar.gz git-e4c7292353dbef39feac1c6a60c5cde9140520a6.tar.xz |
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 'diff-no-index.c')
0 files changed, 0 insertions, 0 deletions