libgit2

git_tree_entry_dup

Version:

Duplicate a tree entry

Create a copy of a tree entry. The returned copy is owned by the user, and must be freed explicitly with git_tree_entry_free().

Signature

int git_tree_entry_dup(git_tree_entry **dest, const git_tree_entry *source);

Parameters

In
dest

pointer where to store the copy

In
source

tree entry to duplicate

Returns

int

0 or an error code

Versions