libgit2

git_tree_dup

Version:

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

Signature

int git_tree_dup(git_tree **out, git_tree *source);

Parameters

In
out

Pointer to store the copy of the tree

In
source

Original tree to copy

Returns

int

0

Versions