Commit 434389d
builtin/apply: make write_out_one_result() 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_one_result() should just return what
remove_file() and create_file() are returning instead of calling
exit().
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>1 parent 8f5b544 commit 434389d
1 file changed
+16
-22
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4287 | 4287 | | |
4288 | 4288 | | |
4289 | 4289 | | |
4290 | | - | |
4291 | | - | |
4292 | | - | |
| 4290 | + | |
| 4291 | + | |
| 4292 | + | |
4293 | 4293 | | |
4294 | 4294 | | |
4295 | | - | |
4296 | | - | |
4297 | | - | |
4298 | | - | |
4299 | | - | |
| 4295 | + | |
| 4296 | + | |
| 4297 | + | |
4300 | 4298 | | |
4301 | 4299 | | |
4302 | | - | |
4303 | | - | |
4304 | | - | |
4305 | | - | |
4306 | | - | |
| 4300 | + | |
| 4301 | + | |
| 4302 | + | |
4307 | 4303 | | |
4308 | 4304 | | |
4309 | 4305 | | |
4310 | 4306 | | |
4311 | 4307 | | |
4312 | | - | |
4313 | | - | |
4314 | | - | |
4315 | | - | |
4316 | | - | |
4317 | | - | |
4318 | | - | |
4319 | | - | |
| 4308 | + | |
| 4309 | + | |
| 4310 | + | |
| 4311 | + | |
| 4312 | + | |
4320 | 4313 | | |
4321 | 4314 | | |
4322 | 4315 | | |
| |||
4403 | 4396 | | |
4404 | 4397 | | |
4405 | 4398 | | |
4406 | | - | |
| 4399 | + | |
| 4400 | + | |
4407 | 4401 | | |
4408 | 4402 | | |
4409 | 4403 | | |
| |||
0 commit comments