libgit2

git_diff_tree_to_tree

Version:

Compute a difference between two tree objects.

Signature

int git_diff_tree_to_tree(git_repository *repo, const git_diff_options *opts, git_tree *old_tree, git_tree *new_tree, git_diff_list **diff);

Parameters

In
repo

The repository containing the trees.

In
opts

Structure with options to influence diff or NULL for defaults.

In
old_tree

A git_tree object to diff from.

In
new_tree

A git_tree object to diff to.

In
diff

A pointer to a git_diff_list pointer that will be allocated.

Returns

int

Versions