diff options
author | Ævar Arnfjörð Bjarmason <avarab@gmail.com> | 2021-12-07 19:26:34 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2021-12-07 13:25:16 -0800 |
commit | f5c39c3268107e1f3def70709d509fd24282832c (patch) | |
tree | f55dcb418820375d5548d7215744fbac6e1cfe72 /git-compat-util.h | |
parent | 24f6e6d626b0125f741880918fb3b9b85f607a79 (diff) | |
download | git-f5c39c3268107e1f3def70709d509fd24282832c.tar.gz |
config API: use get_error_routine(), not vreportf()
Change the git_die_config() function added in 5a80e97c827 (config: add
`git_die_config()` to the config-set API, 2014-08-07) to use the
public callbacks in the usage.[ch] API instead of the the underlying
vreportf() function.
In preceding commits the rest of the vreportf() users outside of
usage.c was migrated to die_message(), so we can now make it "static".
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-compat-util.h')
-rw-r--r-- | git-compat-util.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/git-compat-util.h b/git-compat-util.h index c6c6f7d6b5..bdb3977b9e 100644 --- a/git-compat-util.h +++ b/git-compat-util.h @@ -474,7 +474,6 @@ static inline int git_has_dir_sep(const char *path) struct strbuf; /* General helper functions */ -void vreportf(const char *prefix, const char *err, va_list params); NORETURN void usage(const char *err); NORETURN void usagef(const char *err, ...) __attribute__((format (printf, 1, 2))); NORETURN void die(const char *err, ...) __attribute__((format (printf, 1, 2))); |