builtin/apply: change die_on_unsafe_path() to check_unsafe_path()
commit119ab159e65b229feb3851334441ca24aab131ba
authorChristian Couder <christian.couder@gmail.com>
Mon, 8 Aug 2016 21:03:15 +0000 (8 23:03 +0200)
committerJunio C Hamano <gitster@pobox.com>
Thu, 11 Aug 2016 19:41:47 +0000 (11 12:41 -0700)
tree41ddf2994a715600efee622e0e606a987b9037a9
parentdbf1b5fb6a86acafd8294e98b464e2aa370fdde0
builtin/apply: change die_on_unsafe_path() to check_unsafe_path()

To libify `git apply` functionality we have to signal errors to the
caller instead of die()ing.

To do that in a compatible manner with the rest of the error handling
in "builtin/apply.c", die_on_unsafe_path() should return a negative
integer instead of calling die(), so while doing that let's change
its name to check_unsafe_path().

Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/apply.c