libgit2

git_transaction_new

Version:

Create a new transaction object

This does not lock anything, but sets up the transaction object to know from which repository to lock.

Signature

int git_transaction_new(git_transaction **out, git_repository *repo);

Parameters

In
out

the resulting transaction

In
repo

the repository in which to lock

Returns

int

0 or an error code

Versions