]> git.ipfire.org Git - thirdparty/git.git/commit - run-command.c
usage.c API users: use die_message() for "fatal :" + exit 128
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>
Tue, 7 Dec 2021 18:26:30 +0000 (19:26 +0100)
committerJunio C Hamano <gitster@pobox.com>
Tue, 7 Dec 2021 21:25:15 +0000 (13:25 -0800)
commite081a7c3b7290c50c817598e5f2686d068540762
treee1b23b79d8067b0d4fe4629c5bc8d8d787958aa2
parent18568ee8f8836db5fc1848f2b34e313ac0a86980
usage.c API users: use die_message() for "fatal :" + exit 128

Change code that printed its own "fatal: " message and exited with a
status code of 128 to use the die_message() function added in a
preceding commit.

This change also demonstrates why the return value of
die_message_routine() needed to be that of "report_fn". We have
callers such as the run-command.c::child_err_spew() which would like
to replace its error routine with the return value of
"get_die_message_routine()".

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/fast-import.c
http-backend.c
parse-options.c
run-command.c