libgit2

git_tree_diff

Version:

Diff two trees

Compare two trees. For each difference in the trees, the callback will be called with a git_tree_diff_data filled with the relevant information.

Signature

int git_tree_diff(git_tree *old, git_tree *newer, git_tree_diff_cb cb, void *data);

Parameters

In
old

the "old" tree

In
newer

the "newer" tree

In
cb

callback

void *
In
data

data to give to the callback

Returns

int

GIT_SUCCESS or an error code

Versions