Skip to main content

merge

Function merge 

Source
pub fn merge(
    cli: Overrides,
    file: Config,
    default_author: String,
) -> Result<Resolved>
Expand description

Fold the command line over the file.

Lives here rather than inside main so that it can be tested at all: the precedence is three ors and an extend, any one of which could be turned around without a single test noticing, and the result decides which host a URL reaches.

The command line wins, because it is what was typed for this run. Aliases are the exception and are added rather than replacing: naming one host on the command line should not silently drop the six in the file.