Nguyễn Thái Ngọc Duy
8ef05193bc
diff-parseopt: restore -U (no argument) behavior
...
Before d473e2e0e8 (diff.c: convert -U|--unified, 2019-01-27), -U and
--unified are implemented with a custom parser opt_arg() in diff.c. I
didn't check this code carefully and not realize that it's the
equivalent of PARSE_OPT_NONEG | PARSE_OPT_OPTARG.
In other words, if -U is specified without any argument, the option
should be accepted, and the default value should be used. Without
PARSE_OPT_OPTARG, parse_options() will reject this case and cause a
regression.
Reported-by: Bryan Turner <bturner@atlassian.com >
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com >
Signed-off-by: Junio C Hamano <gitster@pobox.com >
2019-05-29 11:04:32 -07:00
..
2011-02-07 15:04:30 -08:00
2011-02-07 15:04:30 -08:00
2011-04-11 11:16:15 -07:00
2011-04-11 10:12:24 -07:00
2016-08-31 18:07:09 -07:00
2016-08-31 18:07:09 -07:00
2016-12-08 14:40:30 -08:00
2016-12-08 14:40:30 -08:00
2016-12-08 14:40:30 -08:00
2012-04-30 14:17:26 -07:00
2012-04-30 14:17:26 -07:00
2016-12-08 14:40:30 -08:00
2016-12-08 14:40:30 -08:00
2016-12-08 14:40:30 -08:00
2012-04-30 14:17:26 -07:00
2012-04-30 14:17:26 -07:00
2019-05-29 11:04:32 -07:00
2019-05-29 11:04:32 -07:00
2019-05-29 11:04:32 -07:00
2012-04-30 14:17:26 -07:00
2012-04-30 14:17:26 -07:00
2012-04-30 14:17:26 -07:00
2012-04-30 14:17:26 -07:00
2012-04-30 14:17:26 -07:00
2012-04-30 14:17:26 -07:00
2012-04-30 14:17:26 -07:00
2012-04-30 14:17:26 -07:00
2018-02-27 15:22:47 -08:00
2012-04-30 14:17:26 -07:00
2012-04-30 14:17:26 -07:00
2018-02-27 15:22:47 -08:00
2012-04-30 14:17:26 -07:00
2012-04-30 14:17:26 -07:00
2018-02-27 15:22:47 -08:00
2017-09-28 13:15:59 +09:00
2017-09-28 13:15:59 +09:00
2012-04-30 14:17:26 -07:00
2012-04-30 14:17:26 -07:00
2012-04-30 14:17:26 -07:00
2018-02-27 15:22:47 -08:00
2017-09-28 13:15:59 +09:00
2012-04-30 14:17:26 -07:00
2012-04-30 14:17:26 -07:00
2012-04-30 14:17:26 -07:00
2012-04-30 14:17:26 -07:00
2012-04-30 14:17:26 -07:00
2012-04-30 14:17:26 -07:00
2012-04-30 14:17:26 -07:00
2012-04-30 14:17:26 -07:00
2012-04-30 14:17:26 -07:00
2012-04-30 14:17:26 -07:00
2012-04-30 14:17:26 -07:00
2012-04-30 14:17:26 -07:00
2012-04-30 14:17:26 -07:00
2012-04-30 14:17:26 -07:00
2012-04-30 14:17:26 -07:00
2012-04-30 14:17:26 -07:00
2017-09-28 13:15:59 +09:00
2017-09-28 13:15:59 +09:00
2012-04-30 14:17:26 -07:00
2012-04-30 14:17:26 -07:00
2012-04-30 14:17:26 -07:00
2012-04-30 14:17:26 -07:00
2012-04-30 14:17:26 -07:00
2012-04-30 14:17:26 -07:00
2012-04-30 14:17:26 -07:00
2010-08-31 14:30:29 -07:00
2010-08-31 14:30:29 -07:00
2010-08-31 14:30:29 -07:00
2010-08-06 09:14:22 -07:00
2011-03-09 14:28:24 -08:00
2011-03-09 14:28:24 -08:00
2011-03-09 14:28:24 -08:00
2017-12-06 07:32:59 -08:00
2017-12-06 07:32:59 -08:00
2017-12-06 07:32:59 -08:00
2017-12-06 07:32:59 -08:00
2017-12-06 07:32:59 -08:00
2017-12-06 07:32:59 -08:00
2017-12-06 07:32:59 -08:00
2017-12-06 07:32:59 -08:00
2017-12-06 07:32:59 -08:00
2017-12-06 07:32:59 -08:00
2017-12-06 07:32:59 -08:00
2017-12-06 07:32:59 -08:00
2017-12-06 07:32:59 -08:00
2017-12-06 07:32:59 -08:00
2010-03-09 01:11:19 -08:00
2012-04-30 14:17:26 -07:00
2012-04-30 14:17:26 -07:00
2012-04-30 14:17:26 -07:00
2012-04-30 14:17:26 -07:00
2010-03-09 01:11:18 -08:00
2010-03-09 01:11:19 -08:00
2012-04-30 14:17:26 -07:00
2012-04-30 14:17:26 -07:00
2012-04-30 14:17:26 -07:00
2012-04-30 14:17:26 -07:00
2012-04-30 14:17:26 -07:00
2012-04-30 14:17:26 -07:00
2012-04-30 14:17:26 -07:00