git_refdb_backend.lock

Lock a reference.

A refdb implementation may provide this function; if it is not provided, the transaction API will fail to work.

struct git_refdb_backend
int function(void** payload_out, .git_refdb_backend* backend, const(char)* refname) lock;

Return Value

0 on success, a negative error code otherwise

Meta