]> git.ipfire.org Git - thirdparty/git.git/commit
run-command test helper: use "else if" pattern
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Wed, 12 Oct 2022 21:02:20 +0000 (23:02 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 12 Oct 2022 21:12:40 +0000 (14:12 -0700)
commita083f94c2198e10ddb0c79acccd6137c24afce5b
tree5bb28d89d6b213a98ec1e35be1cae89029459a96
parent3dcec76d9df911ed8321007b1d197c1a206dc164
run-command test helper: use "else if" pattern

Adjust the cmd__run_command() to use an "if/else if" chain rather than
mutually exclusive "if" statements. This non-functional change makes a
subsequent commit smaller.

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/helper/test-run-command.c