]> git.ipfire.org Git - thirdparty/git.git/commit
git-send-email: refactor duplicate $? checks into a function
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Tue, 6 Apr 2021 14:00:36 +0000 (16:00 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 6 Apr 2021 19:57:06 +0000 (12:57 -0700)
commitd21616c0394d3339c619409995e48b8cbc0f4e08
tree6fb40125df7166fa48a813050316c6c4abc6d595
parente585210e1bfc5f948bce99596ea9d5e8a6d5cd81
git-send-email: refactor duplicate $? checks into a function

Refactor the duplicate checking of $? into a function. There's an
outstanding series[1] wanting to add a third use of system() in this
file, let's not copy this boilerplate anymore when that happens.

1. http://lore.kernel.org/git/87y2esg22j.fsf@evledraar.gmail.com

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-send-email.perl