wrapper: use a loop instead of repetitive statements
commit54a80a9ad84af001470ea22fb0a14f6dc844b9c9
authorAlex Henrie <alexhenrie24@gmail.com>
Tue, 1 Oct 2019 02:29:36 +0000 (30 20:29 -0600)
committerJunio C Hamano <gitster@pobox.com>
Wed, 2 Oct 2019 06:04:23 +0000 (2 15:04 +0900)
treedd1bab35137598fbf4c3bc140137497b05a02397
parentbaed6bbb5b56a501d1137e53caba614f77c3435d
wrapper: use a loop instead of repetitive statements

A check into the history of this code revealed no particular reason for
the code to be written in this way. All popular compilers are capable of
unrolling loops if it benefits performance, and once this code is
replaced with a loop, the magic number 6 used in multiple places in this
function can be replaced with a named constant.

Reviewed-by: Derrick Stolee <stolee@gmail.com>
Reviewed-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
Reviewed-by: Jeff King <peff@peff.net>
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
wrapper.c