diff options
author | Christian Couder <christian.couder@gmail.com> | 2016-09-04 22:18:27 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-09-07 12:29:53 -0700 |
commit | b83f108b082dfd5452d5c1ab03596fa13750d23f (patch) | |
tree | 2ad433439de62fce9fc4551684c9bb4abfda7722 /usage.c | |
parent | 487beee0c37d48f06f1ccf19889f6c3dcbdbfa28 (diff) | |
download | git-b83f108b082dfd5452d5c1ab03596fa13750d23f.tar.gz |
usage: add set_warn_routine()
There are already set_die_routine() and set_error_routine(),
so let's add set_warn_routine() as this will be needed in a
following commit.
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'usage.c')
-rw-r--r-- | usage.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -70,6 +70,11 @@ void set_error_routine(void (*routine)(const char *err, va_list params)) error_routine = routine; } +void set_warn_routine(void (*routine)(const char *warn, va_list params)) +{ + warn_routine = routine; +} + void set_die_is_recursing_routine(int (*routine)(void)) { die_is_recursing = routine; |