Jeff King
424e28fcad
env--helper: write to opt->value in parseopt helper
...
We use OPT_CALLBACK_F() to call the option_parse_type() callback,
passing it the address of "cmdmode" as the value to write to. But the
callback doesn't look at opt->value at all, and instead writes to a
global variable.
This works out because that's the same global variable we happen to pass
in, but it's rather confusing. Let's use the passed-in value instead.
We'll also make "cmdmode" a local variable of the main function,
ensuring we can't make the same mistake again.
Signed-off-by: Jeff King <peff@peff.net >
Signed-off-by: Junio C Hamano <gitster@pobox.com >
2020-09-30 12:53:47 -07:00
..
2020-09-30 12:53:47 -07:00
2020-09-25 15:25:38 -07:00
2020-07-30 19:18:06 -07:00
2018-08-13 14:14:44 -07:00
2019-01-02 13:05:30 -08:00
2020-08-28 14:06:06 -07:00
2020-08-14 09:33:37 -07:00
2020-09-16 12:38:10 -07:00
2020-09-03 12:37:02 -07:00
2020-08-11 18:04:11 -07:00
2020-07-09 14:00:41 -07:00
2019-01-24 11:55:06 -08:00
2020-08-18 17:17:31 -07:00
2020-04-28 10:47:10 -07:00
2020-09-09 13:53:09 -07:00
2020-09-10 10:49:19 -07:00
2020-09-22 09:22:32 -07:00
2019-05-13 14:22:53 +09:00
2020-09-18 10:39:22 -07:00
2020-04-28 10:47:10 -07:00
2020-09-30 12:53:47 -07:00
2020-09-22 12:36:29 -07:00
2018-11-13 14:22:02 +09:00
2020-08-13 11:02:08 -07:00
2020-09-03 12:37:03 -07:00
2020-08-13 11:02:08 -07:00
2020-07-30 19:18:06 -07:00
2020-06-22 10:46:45 -07:00
2019-01-24 11:55:06 -08:00
2020-04-20 18:22:54 -07:00
2020-07-09 14:00:43 -07:00
2020-07-30 19:18:06 -07:00
2020-09-30 12:53:47 -07:00
2020-09-02 14:39:25 -07:00
2020-09-06 13:40:37 -07:00
2020-08-18 16:46:53 -07:00
2020-09-25 15:25:38 -07:00
2020-03-24 15:04:43 -07:00
2020-09-16 12:38:10 -07:00
2020-08-06 13:01:03 -07:00
2020-09-17 11:30:05 -07:00
2019-04-01 11:57:39 +09:00
2020-09-10 10:49:19 -07:00
2019-05-13 14:22:53 +09:00
2020-08-04 18:34:01 -07:00
2020-09-22 12:36:28 -07:00
2020-09-22 09:22:32 -07:00
2020-04-28 10:47:10 -07:00
2020-09-22 12:36:28 -07:00
2020-08-18 17:17:31 -07:00
2020-08-24 14:54:30 -07:00
2019-01-14 15:29:28 -08:00
2020-02-11 09:59:39 -08:00
2018-11-06 12:56:29 +09:00
2019-01-24 11:55:06 -08:00
2019-01-24 11:55:06 -08:00
2019-08-19 10:08:03 -07:00
2019-08-22 12:34:10 -07:00
2020-09-25 15:25:38 -07:00
2020-01-31 10:45:39 -08:00
2019-05-13 14:22:54 +09:00
2019-10-23 12:05:06 +09:00
2020-07-20 14:35:43 -07:00
2020-08-14 09:33:37 -07:00
2020-04-28 10:47:10 -07:00
2020-08-19 16:14:52 -07:00
2019-04-01 11:57:38 +09:00
2019-04-26 10:54:03 +09:00
2019-12-09 12:26:40 -08:00
2020-03-24 15:04:44 -07:00
2020-05-13 12:19:18 -07:00
2020-09-29 14:01:22 -07:00
2020-09-06 13:15:46 -07:00
2020-07-28 15:02:18 -07:00
2020-04-28 10:47:10 -07:00
2020-09-25 15:25:38 -07:00
2020-09-25 15:25:39 -07:00
2020-07-06 22:09:15 -07:00
2020-07-28 15:02:18 -07:00
2020-09-22 12:36:32 -07:00
2020-09-09 13:53:06 -07:00
2020-07-30 19:18:06 -07:00
2019-01-15 15:38:29 -08:00
2020-09-02 14:39:25 -07:00
2020-08-07 15:13:03 -07:00
2020-09-02 14:39:25 -07:00
2019-07-19 11:30:21 -07:00
2020-02-19 10:56:49 -08:00
2020-09-25 15:25:39 -07:00
2020-04-28 10:47:10 -07:00
2020-09-09 13:53:09 -07:00
2020-05-27 10:07:07 -07:00
2020-04-28 10:47:10 -07:00
2020-06-29 14:17:24 -07:00
2020-09-09 13:53:09 -07:00
2018-12-26 15:41:47 -08:00
2020-09-09 13:53:07 -07:00
2020-09-16 12:38:10 -07:00
2020-01-31 10:45:39 -08:00
2020-04-28 10:47:10 -07:00
2020-07-28 15:02:17 -07:00
2020-07-30 19:18:06 -07:00
2019-05-13 14:22:53 +09:00
2019-07-31 14:38:56 -07:00
2020-08-11 18:04:11 -07:00
2019-06-19 08:19:21 -07:00
2020-09-18 17:58:04 -07:00
2019-05-13 14:22:53 +09:00