libgit2

git_diff_find_similar

Version:

Transform a diff marking file renames, copies, etc.

This modifies a diff in place, replacing old entries that look like renames or copies with new entries reflecting those changes. This also will, if requested, break modified files into add/remove pairs if the amount of change is above a threshold.

Signature

int git_diff_find_similar(git_diff *diff, const git_diff_find_options *options);

Parameters

In
diff

diff to run detection algorithms on

In
options

Control how detection should be run, NULL for defaults

Returns

int

0 on success, -1 on failure

Versions