libgit2

git_diff_find_similar

Version:

Transform a diff list marking file renames, copies, etc.

This modifies a diff list 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_list *diff, git_diff_find_options *options);

Parameters

In
diff

Diff list 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