libgit2

git_transaction_lock_ref

Version:

Lock a reference

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

Signature

int git_transaction_lock_ref(git_transaction *tx, const char *refname);

Parameters

In
tx

the transaction

const char *
In
refname

the reference to lock

Returns

int

0 or an error message

Versions