Commit a6ebc2bdb314543a1fdf25f523f8793f4f52b8b3

Ben Straub 2013-12-04T15:17:39

Introduce GIT_DIFF_FIND_BY_CONFIG

1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/include/git2/diff.h b/include/git2/diff.h
index db6bce2..312702b 100644
--- a/include/git2/diff.h
+++ b/include/git2/diff.h
@@ -468,6 +468,9 @@ typedef int (*git_diff_line_cb)(
  * Flags to control the behavior of diff rename/copy detection.
  */
 typedef enum {
+	/** Obey `diff.renames`. This is overridden by any other GIT_DIFF_FIND_ALL flag. */
+	GIT_DIFF_FIND_BY_CONFIG = 0,
+
 	/** Look for renames? (`--find-renames`) */
 	GIT_DIFF_FIND_RENAMES = (1u << 0),