Commit 6e8df31
builtin/apply: make remove_file() return -1 on error
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", remove_file() should return -1 instead of
calling die().
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>1 parent fe41b80 commit 6e8df31
1 file changed
+11
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4085 | 4085 | | |
4086 | 4086 | | |
4087 | 4087 | | |
4088 | | - | |
| 4088 | + | |
4089 | 4089 | | |
4090 | 4090 | | |
4091 | 4091 | | |
4092 | | - | |
| 4092 | + | |
4093 | 4093 | | |
4094 | 4094 | | |
4095 | 4095 | | |
4096 | 4096 | | |
4097 | 4097 | | |
4098 | 4098 | | |
| 4099 | + | |
4099 | 4100 | | |
4100 | 4101 | | |
4101 | 4102 | | |
| |||
4274 | 4275 | | |
4275 | 4276 | | |
4276 | 4277 | | |
4277 | | - | |
4278 | | - | |
| 4278 | + | |
| 4279 | + | |
| 4280 | + | |
| 4281 | + | |
4279 | 4282 | | |
4280 | 4283 | | |
4281 | 4284 | | |
| |||
4287 | 4290 | | |
4288 | 4291 | | |
4289 | 4292 | | |
4290 | | - | |
4291 | | - | |
| 4293 | + | |
| 4294 | + | |
| 4295 | + | |
| 4296 | + | |
4292 | 4297 | | |
4293 | 4298 | | |
4294 | 4299 | | |
| |||
0 commit comments