Commit 603752a
builtin/apply: make create_one_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_one_file() should return -1 instead of
calling exit().
Signed-off-by: Christian Couder <chriscool@tuxfamily.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>1 parent 739d8a1 commit 603752a
1 file changed
+21
-15
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4198 | 4198 | | |
4199 | 4199 | | |
4200 | 4200 | | |
| 4201 | + | |
| 4202 | + | |
| 4203 | + | |
| 4204 | + | |
4201 | 4205 | | |
4202 | | - | |
4203 | | - | |
4204 | | - | |
4205 | | - | |
4206 | | - | |
| 4206 | + | |
| 4207 | + | |
| 4208 | + | |
| 4209 | + | |
| 4210 | + | |
4207 | 4211 | | |
4208 | 4212 | | |
4209 | 4213 | | |
4210 | 4214 | | |
4211 | | - | |
| 4215 | + | |
4212 | 4216 | | |
4213 | 4217 | | |
4214 | 4218 | | |
4215 | | - | |
| 4219 | + | |
4216 | 4220 | | |
4217 | | - | |
| 4221 | + | |
4218 | 4222 | | |
4219 | 4223 | | |
4220 | 4224 | | |
4221 | | - | |
| 4225 | + | |
4222 | 4226 | | |
4223 | 4227 | | |
4224 | | - | |
| 4228 | + | |
4225 | 4229 | | |
4226 | | - | |
| 4230 | + | |
4227 | 4231 | | |
4228 | 4232 | | |
4229 | 4233 | | |
| |||
4243 | 4247 | | |
4244 | 4248 | | |
4245 | 4249 | | |
4246 | | - | |
| 4250 | + | |
4247 | 4251 | | |
4248 | 4252 | | |
4249 | | - | |
| 4253 | + | |
4250 | 4254 | | |
4251 | 4255 | | |
4252 | 4256 | | |
| |||
4255 | 4259 | | |
4256 | 4260 | | |
4257 | 4261 | | |
4258 | | - | |
| 4262 | + | |
| 4263 | + | |
4259 | 4264 | | |
4260 | 4265 | | |
4261 | 4266 | | |
| |||
4300 | 4305 | | |
4301 | 4306 | | |
4302 | 4307 | | |
4303 | | - | |
| 4308 | + | |
| 4309 | + | |
4304 | 4310 | | |
4305 | 4311 | | |
4306 | 4312 | | |
| |||
0 commit comments