libgit2

git_config_set_writeorder

Version:

Set the write order for configuration backends. By default, the write ordering does not match the read ordering; for example, the worktree configuration is a high-priority for reading, but is not written to unless explicitly chosen.

Signature

int git_config_set_writeorder(git_config *cfg, git_config_level_t *levels, size_t len);

Parameters

In
cfg

the configuration to change write order of

In
levels

the ordering of levels for writing

size_t
In
len

the length of the levels array

Returns

int

0 or an error code

Versions