git_commit_dup

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

extern (C) nothrow @nogc
int
git_commit_dup

Parameters

out_ libgit2_d.types.git_commit**

Pointer to store the copy of the commit

source libgit2_d.types.git_commit*

Original commit to copy

Meta