git_diff_tree_to_tree

Create a diff with the difference between two tree objects.

This is equivalent to git diff <old-tree> <new-tree>

The first tree will be used for the "old_file" side of the delta and the second tree will be used for the "new_file" side of the delta. You can pass null to indicate an empty tree, although it is an error to pass null for both the old_tree and new_tree.

Parameters

diff .git_diff**

Output pointer to a git_diff pointer to be allocated.

repo libgit2_d.types.git_repository*

The repository containing the trees.

old_tree libgit2_d.types.git_tree*

A git_tree object to diff from, or null for empty tree.

new_tree libgit2_d.types.git_tree*

A git_tree object to diff to, or null for empty tree.

opts const(.git_diff_options)*

Structure with options to influence diff or null for defaults.

Meta