libgit2

git_apply_to_tree

Version:

Apply a git_diff to a git_tree, and return the resulting image as an index.

Signature

int git_apply_to_tree(git_index **out, git_repository *repo, git_tree *preimage, git_diff *diff, const git_apply_options *options);

Parameters

In
out

the postimage of the application

In
repo

the repository to apply

In
preimage

the tree to apply the diff to

In
diff

the diff to apply

In
options

the options for the apply (or null for defaults)

Returns

int

Versions