libgit2

git_commit_dup

Version:

Create an in-memory copy of a commit. The copy must be explicitly free'd or it will leak.

Signature

int git_commit_dup(git_commit **out, git_commit *source);

Parameters

In
out

Pointer to store the copy of the commit

In
source

Original commit to copy

Returns

int

Versions