libgit2

git_transaction_remove

Version:

Remove a reference

Signature

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

Parameters

In
tx

the transaction

const char *
In
refname

the reference to remove

Returns

int

0, GIT_ENOTFOUND if the reference is not among the locked ones, or an error code

Versions