Files
git/builtin
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
2020-09-03 12:37:02 -07:00
2020-08-11 18:04:11 -07:00
2020-09-30 12:53:47 -07:00
2020-07-30 19:18:06 -07:00
2020-07-30 19:18:06 -07:00
2020-09-25 15:25:38 -07:00
2020-03-24 15:04:43 -07:00
2020-08-24 14:54:30 -07:00
2020-09-25 15:25:38 -07:00
2019-05-13 14:22:54 +09:00
2020-04-28 10:47:10 -07: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-09-25 15:25:38 -07:00
2020-07-30 19:18:06 -07:00
2020-09-02 14:39:25 -07:00
2020-09-02 14:39:25 -07:00
2020-04-28 10:47:10 -07:00
2020-04-28 10:47:10 -07:00
2020-07-30 19:18:06 -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