add_file


Description:

public void add_file (File file, ConfigLevel level, bool force) throws Error

Add an on-disk config file instance to an existing config

The on-disk file pointed at by file will be opened and parsed; it's expected to be a native Git config file following the default Git config syntax (see man git-config).

Further queries on this config object will access each of the config file instances in order (instances with a higher priority level will be accessed first).

Parameters:

this

a Config.

file

a File.

level

a ConfigLevel.

force

if a config file already exists for the given priority level, replace it.