git_config_lock

Lock the backend with the highest priority

Locking disallows anybody else from writing to that backend. Any updates made after locking will not be visible to a reader until the file is unlocked.

You can apply the changes by calling git_transaction_commit() before freeing the transaction. Either of these actions will unlock the config.

extern (C) nothrow @nogc
int
git_config_lock

Parameters

tx libgit2_d.types.git_transaction**

the resulting transaction, use this to commit or undo the changes

cfg libgit2_d.types.git_config*

the configuration in which to lock

Return Value

Type: int

0 or an error code

Meta