format-patch: use OPT_STRING_LIST for to/cc options
commit3ccb4c55adc36793ec34f6f9f2235a695df7d0a5
authorJeff King <peff@peff.net>
Thu, 31 Aug 2023 21:17:33 +0000 (31 17:17 -0400)
committerJunio C Hamano <gitster@pobox.com>
Thu, 31 Aug 2023 22:07:10 +0000 (31 15:07 -0700)
treefd7e48e3aa60e622a8e76ce879e013676e9102bb
parent7fa701106d485f7bf9d042f822d4366d7059f8ba
format-patch: use OPT_STRING_LIST for to/cc options

The to_callback() and cc_callback() functions are identical to the
generic parse_opt_string_list() function (except that they don't handle
optional arguments, but that's OK because their callers do not use the
OPTARG flag).

Let's simplify the code by using OPT_STRING_LIST.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/log.c