Thread (1 message) 1 message, 1 author, 2020-02-10

Re: [PATCH 4/4] parse-options: simplify parse_options_dup()

From: Junio C Hamano <hidden>
Date: 2020-02-10 17:49:50

René Scharfe [off-list ref] writes:
Simplify parse_options_dup() by making it a trivial wrapper of
parse_options_concat() by making use of the facts that the latter
duplicates its input as well and that appending an empty set is a no-op.
...
+	struct option no_options[] = { OPT_END() };
+
+	return parse_options_concat(o, no_options);
Can't say if this is tricky or cute, but I like it ;-)

Will queue all four.  Thanks.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help