diff options
author | Edward Thomson <ethomson@microsoft.com> | 2013-08-21 14:07:53 -0500 |
---|---|---|
committer | Edward Thomson <ethomson@microsoft.com> | 2013-08-28 08:30:19 -0500 |
commit | 17c7fbf6d276443344c54f55800367b9837c0259 (patch) | |
tree | 97aeafdfa0eca4736a4f0cd733250f5d150278e8 /include/git2/diff.h | |
parent | 1ef05e3f0ea8fa8db2167307101c8c43d1c1784b (diff) | |
download | libgit2-17c7fbf6d276443344c54f55800367b9837c0259.tar.gz |
Split rewrites, status doesn't return rewrites
Ensure that we apply splits to rewrites, even if we're not
interested in examining it closely for rename/copy detection.
In keeping with core git, status should not display rewrites,
it should simply show files as "modified".
Diffstat (limited to 'include/git2/diff.h')
-rw-r--r-- | include/git2/diff.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/git2/diff.h b/include/git2/diff.h index c989ba4ee..596098574 100644 --- a/include/git2/diff.h +++ b/include/git2/diff.h @@ -454,6 +454,9 @@ typedef enum { GIT_DIFF_FIND_DONT_IGNORE_WHITESPACE = (1 << 13), /** measure similarity only by comparing SHAs (fast and cheap) */ GIT_DIFF_FIND_EXACT_MATCH_ONLY = (1 << 14), + + /** do not break rewrites unless they contribute to a rename */ + GIT_DIFF_BREAK_REWRITES_FOR_RENAMES_ONLY = (1 << 15), } git_diff_find_t; /** |