libgit2

git_signature_dup

Version:

Create a copy of an existing signature. All internal strings are also duplicated.

Call git_signature_free() to free the data.

Signature

int git_signature_dup(git_signature **dest, const git_signature *sig);

Parameters

In
dest

pointer where to store the copy

In
sig

signature to duplicate

Returns

int

0 or an error code

Versions