Commit a902edc
builtin/apply: make add_conflicted_stages_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", add_conflicted_stages_file() should return -1
instead of calling die().
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 6e8df31 commit a902edc
1 file changed
+13
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4224 | 4224 | | |
4225 | 4225 | | |
4226 | 4226 | | |
4227 | | - | |
| 4227 | + | |
4228 | 4228 | | |
4229 | 4229 | | |
4230 | 4230 | | |
4231 | 4231 | | |
4232 | 4232 | | |
4233 | 4233 | | |
4234 | 4234 | | |
4235 | | - | |
| 4235 | + | |
4236 | 4236 | | |
4237 | 4237 | | |
4238 | 4238 | | |
| |||
4247 | 4247 | | |
4248 | 4248 | | |
4249 | 4249 | | |
4250 | | - | |
4251 | | - | |
| 4250 | + | |
| 4251 | + | |
| 4252 | + | |
| 4253 | + | |
| 4254 | + | |
4252 | 4255 | | |
| 4256 | + | |
| 4257 | + | |
4253 | 4258 | | |
4254 | 4259 | | |
4255 | 4260 | | |
| |||
4263 | 4268 | | |
4264 | 4269 | | |
4265 | 4270 | | |
4266 | | - | |
4267 | | - | |
4268 | | - | |
| 4271 | + | |
| 4272 | + | |
| 4273 | + | |
| 4274 | + | |
4269 | 4275 | | |
4270 | 4276 | | |
4271 | 4277 | | |
| |||
0 commit comments