Thread (1 message) 1 message, 1 author, 2017-09-07

Re: [PATCHv2] pull: honor submodule.recurse config option

From: Junio C Hamano <hidden>
Date: 2017-09-07 00:54:43

Nicolas Morey-Chaisemartin [off-list ref] writes:
quoted
If it is not the latter, perhaps we may want to flip the order of
config parsing and option parsing around?  That will allow us to fix
the handling of autostash thing to use only one variable, and also
fix your patch to do the right thing.
I see what you mean.
It looks like switching the code around works but I think there
still needs to be 2 variables for autstash for this piece of code:

    if (!opt_rebase && opt_autostash != -1)
        die(_("--[no-]autostash option is only valid with --rebase."));

The config option should not cause git pull to die when not using
--rebase, the CLI option should.
Ah, OK.  That is a worthwhile observation that needs to be recorded
in the log message of a commit that flips the order of option/config
parsing.

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