usage: add get_error_routine() and get_warn_routine()
commit725149beab088b1368cc01aa3f1a7845db14132d
authorChristian Couder <christian.couder@gmail.com>
Sun, 4 Sep 2016 20:18:28 +0000 (4 22:18 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 7 Sep 2016 19:29:53 +0000 (7 12:29 -0700)
tree51acd0365798a5e8393ddb1960cfef37ace9a2bc
parentb83f108b082dfd5452d5c1ab03596fa13750d23f
usage: add get_error_routine() and get_warn_routine()

Let's make it possible to get the current error_routine and warn_routine,
so that we can store them before using set_error_routine() or
set_warn_routine() to use new ones.

This way we will be able put back the original routines, when we are done
with using new ones.

Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-compat-util.h
usage.c