Method

GgitConfigadd_file

Declaration [src]

void
ggit_config_add_file (
  GgitConfig* config,
  GFile* file,
  GgitConfigLevel level,
  gboolean force,
  GError** error
)

Description [src]

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

file GFile
 

A GFile.

 The data is owned by the caller of the function.
level GgitConfigLevel
 

A GgitConfigLevel.

force gboolean
 

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

error GError **
  The return location for a GError*, or NULL.