summaryrefslogtreecommitdiff
path: root/include/git2/diff.h
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@microsoft.com>2013-08-21 14:07:53 -0500
committerEdward Thomson <ethomson@microsoft.com>2013-08-28 08:30:19 -0500
commit17c7fbf6d276443344c54f55800367b9837c0259 (patch)
tree97aeafdfa0eca4736a4f0cd733250f5d150278e8 /include/git2/diff.h
parent1ef05e3f0ea8fa8db2167307101c8c43d1c1784b (diff)
downloadlibgit2-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.h3
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;
/**