libgit2

git_signature_dup

Version:

Create a copy of an existing signature.

All internal strings are also duplicated.

Signature

git_signature *git_signature_dup(const git_signature *sig);

Parameters

In
sig

signature to duplicated

Returns

a copy of sig, NULL on out of memory

Versions