libgit2

git_diff_find_t

Version:

Flags to control the behavior of diff rename/copy detection.

Values

GIT_DIFF_FIND_RENAMES
1

look for renames? (--find-renames)

GIT_DIFF_FIND_RENAMES_FROM_REWRITES
2

consider old side of modified for renames? (--break-rewrites=N)

GIT_DIFF_FIND_COPIES
4

look for copies? (a la --find-copies)

GIT_DIFF_FIND_COPIES_FROM_UNMODIFIED
8

consider unmodified as copy sources? (--find-copies-harder)

GIT_DIFF_FIND_AND_BREAK_REWRITES
16

split large rewrites into delete/add pairs (--break-rewrites=/M)

GIT_DIFF_FIND_ALL
31

turn on all finding features

GIT_DIFF_FIND_IGNORE_LEADING_WHITESPACE
0

measure similarity ignoring leading whitespace (default)

GIT_DIFF_FIND_IGNORE_WHITESPACE
64

measure similarity ignoring all whitespace

GIT_DIFF_FIND_DONT_IGNORE_WHITESPACE
128

measure similarity including all data

Versions