diff options
author | Christian Couder <christian.couder@gmail.com> | 2016-09-04 22:18:29 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-09-07 12:29:53 -0700 |
commit | 45b78d8ba3c9e542f1375171090fe10baef6b2b2 (patch) | |
tree | 285c8ce6701cc10b4f3c7b0f420cdd7435b39c5f /t/t6111-rev-list-treesame.sh | |
parent | usage: add get_error_routine() and get_warn_routine() (diff) | |
download | tgif-45b78d8ba3c9e542f1375171090fe10baef6b2b2.tar.xz |
apply: change error_routine when silent
To avoid printing anything when applying with
`state->apply_verbosity == verbosity_silent`, let's save the
existing warn and error routines before applying, and let's
replace them with a routine that does nothing.
Then after applying, let's restore the saved routines.
Note that, as we need to restore the saved routines in all
cases, we cannot return early any more in apply_all_patches().
Helped-by: Stefan Beller <sbeller@google.com>
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t6111-rev-list-treesame.sh')
0 files changed, 0 insertions, 0 deletions