Control behavior of rename and copy detection
These options mostly mimic parameters that can be passed to git-diff.
rename_threshold
is the same as the -M option with a valuecopy_threshold
is the same as the -C option with a valuerename_from_rewrite_threshold
matches the top of the -B optionbreak_rewrite_threshold
matches the bottom of the -B optiontarget_limit
matches the -l optionThe metric
option allows you to plug in a custom similarity metric.
Set it to NULL for the default internal metric which is based on sampling
hashes of ranges of data in the file. The default metric is a pretty
good similarity approximation that should work fairly well for both text
and binary data, and is pretty fast with fixed memory overhead.
Combination of git_diff_find_t values (default FIND_RENAMES)
Similarity to consider a file renamed (default 50)
Similarity of modified to be eligible rename source (default 50)
Similarity to consider a file a copy (default 50)
Similarity to split modify into delete/add pair (default 60)
Maximum similarity sources to examine (a la diff's -l
option or the diff.renameLimit
config) (default 200)