dulwich.diff_tree.RenameDetector(object)
class documentationdulwich.diff_tree
(View In Hierarchy)
Method | __init__ | Initialize the rename detector. |
Method | changes_with_renames | Iterate TreeChanges between two tree SHAs, with rename detection. |
Method | _reset | Undocumented |
Method | _should_split | Undocumented |
Method | _add_change | Undocumented |
Method | _collect_changes | Undocumented |
Method | _prune | Undocumented |
Method | _find_exact_renames | Undocumented |
Method | _should_find_content_renames | Undocumented |
Method | _rename_type | Undocumented |
Method | _find_content_rename_candidates | Undocumented |
Method | _choose_content_renames | Undocumented |
Method | _join_modifies | Undocumented |
Method | _sorted_changes | Undocumented |
Method | _prune_unchanged | Undocumented |
Parameters | store | An ObjectStore for looking up objects. |
rename_threshold | The threshold similarity score for considering an add/delete pair to be a rename/copy; see _similarity_score. | |
max_files | The maximum number of adds and deletes to consider, or None for no limit. The detector is guaranteed to compare no more than max_files ** 2 add/delete pairs. This limit is provided because rename detection can be quadratic in the project size. If the limit is exceeded, no content rename detection is attempted. | |
rewrite_threshold | The threshold similarity score below which a modify should be considered a delete/add, or None to not break modifies; see _similarity_score. | |
find_copies_harder | If True, consider unmodified files when detecting copies. |