Commit 8f5b544
builtin/apply: make create_file() 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", create_file() should just return what
add_conflicted_stages_file() and add_index_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 69e1609 commit 8f5b544
1 file changed
+13
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4269 | 4269 | | |
4270 | 4270 | | |
4271 | 4271 | | |
4272 | | - | |
| 4272 | + | |
4273 | 4273 | | |
4274 | 4274 | | |
4275 | 4275 | | |
| |||
4280 | 4280 | | |
4281 | 4281 | | |
4282 | 4282 | | |
4283 | | - | |
4284 | | - | |
4285 | | - | |
4286 | | - | |
4287 | | - | |
4288 | | - | |
4289 | | - | |
| 4283 | + | |
| 4284 | + | |
| 4285 | + | |
| 4286 | + | |
4290 | 4287 | | |
4291 | 4288 | | |
4292 | 4289 | | |
| |||
4302 | 4299 | | |
4303 | 4300 | | |
4304 | 4301 | | |
4305 | | - | |
4306 | | - | |
| 4302 | + | |
| 4303 | + | |
| 4304 | + | |
| 4305 | + | |
4307 | 4306 | | |
4308 | 4307 | | |
4309 | 4308 | | |
| |||
4314 | 4313 | | |
4315 | 4314 | | |
4316 | 4315 | | |
4317 | | - | |
4318 | | - | |
| 4316 | + | |
| 4317 | + | |
| 4318 | + | |
| 4319 | + | |
4319 | 4320 | | |
4320 | 4321 | | |
4321 | 4322 | | |
| |||
0 commit comments