libgit2

git_diff_index_to_tree

Version:

Compute a difference between a tree and the index.

Signature

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

Parameters

In
repo

The repository containing the tree and index.

In
opts

Structure with options to influence diff or NULL for defaults.

In
old_tree

A git_tree object to diff from.

In
diff

A pointer to a git_diff_list pointer that will be allocated.

Returns

int

Versions