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.
@param diff diff to run detection algorithms on
@param options Control how detection should be run, null for defaults
@return 0 on success, -1 on failure
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.
@param diff diff to run detection algorithms on @param options Control how detection should be run, null for defaults @return 0 on success, -1 on failure