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_REWRITES
16

mark large rewrites for split (--break-rewrites=/M)

GIT_DIFF_BREAK_REWRITES
32

actually split large rewrites into delete/add pairs

GIT_DIFF_FIND_AND_BREAK_REWRITES
48

mark rewrites for split and break into delete/add pairs

GIT_DIFF_FIND_FOR_UNTRACKED
64

find renames/copies for untracked items in working directory

GIT_DIFF_FIND_ALL
255

turn on all finding features

GIT_DIFF_FIND_IGNORE_LEADING_WHITESPACE
0

measure similarity ignoring leading whitespace (default)

GIT_DIFF_FIND_IGNORE_WHITESPACE
4096

measure similarity ignoring all whitespace

GIT_DIFF_FIND_DONT_IGNORE_WHITESPACE
8192

measure similarity including all data

GIT_DIFF_FIND_EXACT_MATCH_ONLY
16384

measure similarity only by comparing SHAs (fast and cheap)

Versions