diff options
author | Alex Henrie <alexhenrie24@gmail.com> | 2019-09-30 20:29:36 -0600 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-10-02 15:04:23 +0900 |
commit | 54a80a9ad84af001470ea22fb0a14f6dc844b9c9 (patch) | |
tree | dd1bab35137598fbf4c3bc140137497b05a02397 /worktree.h | |
parent | diffcore-break: use a goto instead of a redundant if statement (diff) | |
download | tgif-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 'worktree.h')
0 files changed, 0 insertions, 0 deletions