diff options
author | Eric Wong <e@80x24.org> | 2019-12-26 10:42:20 +0000 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-12-26 11:57:46 -0800 |
commit | 4e61b2214d333a47ec56eb0806be1774f7ac1b7d (patch) | |
tree | ab2b5a7e1003c35757865432b2632e9427d169f7 /t/t5515/refs.br-config-glob | |
parent | packfile: remove redundant fcntl F_GETFD/F_SETFD (diff) | |
download | tgif-4e61b2214d333a47ec56eb0806be1774f7ac1b7d.tar.xz |
packfile: replace lseek+read with pread
We already have pread emulation for portability, so there's
there's no reason to make two syscalls where one suffices.
Furthermore, readers of the packfile will be using mmap
(or pread to emulate mmap), anyways, so the file description
offset does not matter in this case.
Signed-off-by: Eric Wong <e@80x24.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t5515/refs.br-config-glob')
0 files changed, 0 insertions, 0 deletions