hoist out handle_nonblock function for xread and xwrite
authorEric Wong <e@80x24.org>
Sun, 10 Jul 2016 08:20:46 +0000 (08:20 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 11 Jul 2016 16:51:45 +0000 (09:51 -0700)
commitd751dd11ae16fd4e2410d3a32c8e2d951fafc923
treed8733fde6f5074a46dc991fd6f4357f6ea6ec013
parentef1cf0167a362cd504afdcc0eef4c3200ea6dfbb
hoist out handle_nonblock function for xread and xwrite

At least for me, this improves the readability of xread and
xwrite; hopefully allowing missing "continue" statements to
be spotted more easily.

Signed-off-by: Eric Wong <e@80x24.org>
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
wrapper.c