Commit ccceb7b
builtin/apply: make write_out_results() return -1 on error
To libify `git apply` functionality we have to signal errors to the
caller instead of exit()ing.
To do that in a compatible manner with the rest of the error handling
in "builtin/apply.c", write_out_results() should return -1 instead of
calling exit().
Helped-by: Eric Sunshine <sunshine@sunshineco.com>
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>1 parent 434389d commit ccceb7b
1 file changed
+21
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4383 | 4383 | | |
4384 | 4384 | | |
4385 | 4385 | | |
| 4386 | + | |
| 4387 | + | |
| 4388 | + | |
| 4389 | + | |
| 4390 | + | |
| 4391 | + | |
4386 | 4392 | | |
4387 | 4393 | | |
4388 | 4394 | | |
| |||
4396 | 4402 | | |
4397 | 4403 | | |
4398 | 4404 | | |
4399 | | - | |
4400 | | - | |
| 4405 | + | |
| 4406 | + | |
| 4407 | + | |
| 4408 | + | |
4401 | 4409 | | |
4402 | 4410 | | |
4403 | 4411 | | |
| |||
4517 | 4525 | | |
4518 | 4526 | | |
4519 | 4527 | | |
4520 | | - | |
4521 | | - | |
4522 | | - | |
4523 | | - | |
| 4528 | + | |
| 4529 | + | |
| 4530 | + | |
| 4531 | + | |
| 4532 | + | |
| 4533 | + | |
| 4534 | + | |
| 4535 | + | |
| 4536 | + | |
| 4537 | + | |
| 4538 | + | |
4524 | 4539 | | |
4525 | 4540 | | |
4526 | 4541 | | |
| |||
0 commit comments