git_transaction_lock_ref

Lock a reference

Lock the specified reference. This is the first step to updating a reference.

extern (C) nothrow @nogc
int
git_transaction_lock_ref

Parameters

tx libgit2_d.types.git_transaction*

the transaction

refname const(char)*

the reference to lock

Return Value

Type: int

0 or an error message

Meta