aboutsummaryrefslogtreecommitdiffstats
path: root/parse-options.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2022-01-10 11:52:53 -0800
committerJunio C Hamano <gitster@pobox.com>2022-01-10 11:52:53 -0800
commit4b51386bbfc5d26e552c3c4be135e31cd2f64b44 (patch)
tree5bff7a8a4dee06d92dca0a89976248dc7e571918 /parse-options.c
parentbc61dbac770923a96e2007c3de4027c5d11c6d41 (diff)
parentf5c39c3268107e1f3def70709d509fd24282832c (diff)
downloadgit-4b51386bbfc5d26e552c3c4be135e31cd2f64b44.tar.gz
Merge branch 'ab/usage-die-message'
Code clean-up to hide vreportf() from public API. * ab/usage-die-message: config API: use get_error_routine(), not vreportf() usage.c + gc: add and use a die_message_errno() gc: return from cmd_gc(), don't call exit() usage.c API users: use die_message() for error() + exit 128 usage.c API users: use die_message() for "fatal :" + exit 128 usage.c: add a die_message() routine
Diffstat (limited to 'parse-options.c')
-rw-r--r--parse-options.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/parse-options.c b/parse-options.c
index 629e796349..a8283037be 100644
--- a/parse-options.c
+++ b/parse-options.c
@@ -1076,6 +1076,6 @@ void NORETURN usage_msg_opt(const char *msg,
const char * const *usagestr,
const struct option *options)
{
- fprintf(stderr, "fatal: %s\n\n", msg);
+ die_message("%s\n", msg); /* The extra \n is intentional */
usage_with_options(usagestr, options);
}