Allow overwriting of a previously set "argv" option
commita2887de61e8a06ed640d4da2c9469136b208409d
authorThomas Sibley <tom@zulutango.org>
Mon, 11 Feb 2013 17:41:53 +0000 (11 09:41 -0800)
committerJonas Fonseca <fonseca@diku.dk>
Mon, 18 Feb 2013 06:04:06 +0000 (18 01:04 -0500)
tree924c1a9f39baeee0b8b82c344af754694c9c71ea
parent3567c4e158f50e8ca6813d97195fbbc6697cd09b
Allow overwriting of a previously set "argv" option

parse_args() is only used by option_set_command() for the two "argv"
style options: blame-options and diff-options.  Allowing parse_args() to
overwrite the destination enables ":set diff-options = ..." to work more
than once from within the tig prompt (or at all if first set via tigrc).

This is safe since argv_copy() handles the necessary freeing, added as
part of 7dfa0b2.

Signed-off-by: Jonas Fonseca <fonseca@diku.dk>
tig.c