Christian Couder
dbf1b5fb6a
builtin/apply: make gitdiff_*() 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", gitdiff_*() functions should return -1 instead
of calling die().
A previous patch made it possible for gitdiff_*() functions to
return -1 in case of error. Let's take advantage of that to
make gitdiff_verify_name() return -1 on error, and to have
gitdiff_oldname() and gitdiff_newname() directly return
what gitdiff_verify_name() returns.
Helped-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com >
Signed-off-by: Christian Couder <chriscool@tuxfamily.org >
Signed-off-by: Junio C Hamano <gitster@pobox.com >
2016-08-11 12:41:47 -07:00
..
2016-06-07 17:43:39 -07:00
2016-07-19 13:22:23 -07:00
2016-08-11 12:41:47 -07:00
2016-07-25 14:13:45 -07:00
2016-07-25 14:13:32 -07:00
2016-07-28 10:34:42 -07:00
2016-02-01 13:43:02 -08:00
2016-02-01 13:43:02 -08:00
2016-01-15 10:12:51 -08:00
2016-02-22 14:51:09 -08:00
2016-02-01 13:43:49 -08:00
2016-07-13 11:24:10 -07:00
2016-02-26 13:37:16 -08:00
2016-07-06 13:38:13 -07:00
2016-01-15 10:35:07 -08:00
2016-05-13 13:18:27 -07:00
2016-07-11 10:31:08 -07:00
2016-07-08 09:47:28 -07:00
2015-11-20 08:02:05 -05:00
2016-05-13 14:35:49 -07:00
2016-05-13 14:35:49 -07:00
2016-06-06 14:27:35 -07:00
2016-06-06 14:27:35 -07:00
2016-06-28 11:39:02 -07:00
2016-03-01 11:19:19 -08:00
2016-07-25 14:13:33 -07:00
2015-12-11 11:14:13 -08:00
2015-09-17 10:02:49 -07:00
2016-07-28 10:34:42 -07:00
2016-07-13 11:24:12 -07:00
2015-10-16 15:27:52 -07:00
2016-07-13 11:24:18 -07:00
2016-02-10 14:20:08 -08:00
2016-05-09 12:29:08 -07:00
2016-07-13 09:15:08 -07:00
2016-06-17 15:46:10 -07:00
2016-06-13 10:37:48 -07:00
2016-07-19 13:22:15 -07:00
2016-02-10 14:20:08 -08:00
2016-01-19 10:07:56 -08:00
2015-09-25 10:18:18 -07:00
2015-10-21 15:59:34 -07:00
2016-06-06 11:14:43 -07:00
2016-02-22 14:51:09 -08:00
2016-05-09 12:29:08 -07:00
2015-10-05 11:08:05 -07:00
2016-06-28 11:39:02 -07:00
2016-04-25 14:23:42 -07:00
2016-07-19 13:22:23 -07:00
2015-10-16 15:27:52 -07:00
2016-02-26 13:37:16 -08:00
2016-05-18 14:40:05 -07:00
2016-05-31 14:08:26 -07:00
2016-06-17 15:45:49 -07:00
2016-07-28 10:34:42 -07:00
2016-02-22 14:51:09 -08:00
2016-06-03 14:38:03 -07:00
2015-11-03 15:32:25 -08:00
2016-07-13 11:24:10 -07:00
2016-02-26 13:37:25 -08:00
2015-09-25 10:18:18 -07:00
2016-06-27 09:56:52 -07:00
2016-04-25 14:23:42 -07:00
2016-05-06 13:16:37 -07:00
2016-07-25 14:13:33 -07:00
2016-07-13 11:24:10 -07:00
2016-05-06 14:53:24 -07:00
2015-10-05 13:20:08 -07:00
2016-07-19 13:22:16 -07:00
2016-06-20 11:01:03 -07:00
2016-04-14 18:57:44 -07:00
2016-07-25 14:13:36 -07:00
2016-04-29 14:15:57 -07:00
2016-07-19 13:22:15 -07:00
2015-12-11 11:14:14 -08:00
2015-11-20 08:02:07 -05:00
2016-01-29 16:02:34 -08:00
2016-07-11 10:31:04 -07:00
2015-12-21 12:03:03 -08:00
2016-04-29 12:59:09 -07:00
2015-09-25 10:18:18 -07:00
2016-06-28 11:39:02 -07:00
2016-06-02 14:09:22 -07:00
2015-09-11 09:50:02 -07:00
2016-05-09 12:29:08 -07:00
2016-04-22 14:06:46 -07:00
2016-07-28 10:34:42 -07:00