Thread (1 message) 1 message, 1 author, 2016-06-15

Re: [PATCH] am: let command-line options override saved options

From: Junio C Hamano <hidden>
Date: 2016-06-15 23:05:55

Paul Tan [off-list ref] writes:
When resuming, git-am ignores command-line options. For instance, when a
patch fails to apply with "git am patch", subsequently running "git am
--3way patch" would not cause git-am to fall back on attempting a
The second one goes without any file argument, i.e. "git am -3".
threeway merge. This occurs because by default the --3way option is
saved as "false", and the saved am options are loaded after the
command-line options are parsed, thus overwriting the command-line
options when resuming.

Fix this by moving the am_load() function call before parse_options(),
so that command-line options will override the saved am options.
Makes sense.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help