Commit 119ab15
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>1 parent dbf1b5f commit 119ab15
1 file changed
+21
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3704 | 3704 | | |
3705 | 3705 | | |
3706 | 3706 | | |
3707 | | - | |
| 3707 | + | |
3708 | 3708 | | |
3709 | 3709 | | |
3710 | 3710 | | |
| |||
3716 | 3716 | | |
3717 | 3717 | | |
3718 | 3718 | | |
3719 | | - | |
| 3719 | + | |
3720 | 3720 | | |
3721 | | - | |
| 3721 | + | |
| 3722 | + | |
3722 | 3723 | | |
3723 | 3724 | | |
3724 | 3725 | | |
| |||
3808 | 3809 | | |
3809 | 3810 | | |
3810 | 3811 | | |
3811 | | - | |
3812 | | - | |
| 3812 | + | |
| 3813 | + | |
3813 | 3814 | | |
3814 | 3815 | | |
3815 | 3816 | | |
| |||
3837 | 3838 | | |
3838 | 3839 | | |
3839 | 3840 | | |
| 3841 | + | |
3840 | 3842 | | |
3841 | 3843 | | |
3842 | 3844 | | |
3843 | | - | |
| 3845 | + | |
| 3846 | + | |
| 3847 | + | |
| 3848 | + | |
3844 | 3849 | | |
3845 | 3850 | | |
3846 | 3851 | | |
| |||
4472 | 4477 | | |
4473 | 4478 | | |
4474 | 4479 | | |
4475 | | - | |
4476 | | - | |
4477 | | - | |
4478 | | - | |
4479 | | - | |
| 4480 | + | |
| 4481 | + | |
| 4482 | + | |
| 4483 | + | |
| 4484 | + | |
| 4485 | + | |
| 4486 | + | |
| 4487 | + | |
| 4488 | + | |
| 4489 | + | |
4480 | 4490 | | |
4481 | 4491 | | |
4482 | 4492 | | |
| |||
0 commit comments