tests: simplify by dropping unnecessary `for` loops
commitefe26b9ee09d53dda0f36d0ea20cb245b934f216
authorEric Sunshine <sunshine@sunshineco.com>
Thu, 9 Dec 2021 05:11:11 +0000 (9 00:11 -0500)
committerJunio C Hamano <gitster@pobox.com>
Mon, 13 Dec 2021 18:29:48 +0000 (13 10:29 -0800)
treed5daf1aaf168c03129ef8b63cc1375cba959bdd2
parent03949e33f58223dd2d8465f4dd8042e5e581fcef
tests: simplify by dropping unnecessary `for` loops

Rather than manually looping over a set of items and plugging those
items into a template string which is printed repeatedly, achieve the
same effect by taking advantage of `printf` which loops over its
arguments automatically.

Signed-off-by: Eric Sunshine <sunshine@sunshineco.com>
Reviewed-by: Elijah Newren <newren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t3005-ls-files-relative.sh
t/t3600-rm.sh
t/t4025-hunk-header.sh
t/t4125-apply-ws-fuzz.sh
t/t6416-recursive-corner-cases.sh
t/t7110-reset-merge.sh
t/t9400-git-cvsserver-server.sh