summaryrefslogtreecommitdiff
path: root/pager.c
diff options
context:
space:
mode:
authorChristian Couder <christian.couder@gmail.com>2016-09-04 20:18:29 (GMT)
committerJunio C Hamano <gitster@pobox.com>2016-09-07 19:29:53 (GMT)
commit45b78d8ba3c9e542f1375171090fe10baef6b2b2 (patch)
tree285c8ce6701cc10b4f3c7b0f420cdd7435b39c5f /pager.c
parent725149beab088b1368cc01aa3f1a7845db14132d (diff)
downloadgit-45b78d8ba3c9e542f1375171090fe10baef6b2b2.zip
git-45b78d8ba3c9e542f1375171090fe10baef6b2b2.tar.gz
git-45b78d8ba3c9e542f1375171090fe10baef6b2b2.tar.bz2
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 'pager.c')
0 files changed, 0 insertions, 0 deletions