git_repository_set_config

Set the configuration file for this repository

This configuration file will be used for all configuration queries involving this repository.

The repository will keep a reference to the config file; the user must still free the config after setting it to the repository, or it will leak.

package extern (C) nothrow @nogc
int
git_repository_set_config

Parameters

repo libgit2_d.types.git_repository*

A repository object

config libgit2_d.types.git_config*

A Config object

Return Value

Type: int

0 on success, or an error code

Meta