libgit2

git_blob_dup

Version:

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

Signature

int git_blob_dup(git_blob **out, git_blob *source);

Parameters

In
out

Pointer to store the copy of the object

In
source

Original object to copy

Returns

int

Versions