summaryrefslogtreecommitdiff
path: root/git-add--interactive.perl
diff options
context:
space:
mode:
authorChristian Couder <christian.couder@gmail.com>2016-09-04 22:18:29 +0200
committerJunio C Hamano <gitster@pobox.com>2016-09-07 12:29:53 -0700
commit45b78d8ba3c9e542f1375171090fe10baef6b2b2 (patch)
tree285c8ce6701cc10b4f3c7b0f420cdd7435b39c5f /git-add--interactive.perl
parent725149beab088b1368cc01aa3f1a7845db14132d (diff)
downloadgit-45b78d8ba3c9e542f1375171090fe10baef6b2b2.tar.gz
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 'git-add--interactive.perl')
0 files changed, 0 insertions, 0 deletions