summaryrefslogtreecommitdiff
path: root/t/t5000
diff options
context:
space:
mode:
authorLibravatar Alex Henrie <alexhenrie24@gmail.com>2019-09-30 20:29:36 -0600
committerLibravatar Junio C Hamano <gitster@pobox.com>2019-10-02 15:04:23 +0900
commit54a80a9ad84af001470ea22fb0a14f6dc844b9c9 (patch)
treedd1bab35137598fbf4c3bc140137497b05a02397 /t/t5000
parentdiffcore-break: use a goto instead of a redundant if statement (diff)
downloadtgif-54a80a9ad84af001470ea22fb0a14f6dc844b9c9.tar.xz
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>
Diffstat (limited to 't/t5000')
0 files changed, 0 insertions, 0 deletions