From a6ebc2bdb314543a1fdf25f523f8793f4f52b8b3 Mon Sep 17 00:00:00 2001 From: Ben Straub Date: Wed, 4 Dec 2013 15:17:39 -0800 Subject: [PATCH] Introduce GIT_DIFF_FIND_BY_CONFIG --- include/git2/diff.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/git2/diff.h b/include/git2/diff.h index db6bce2eb..312702bc2 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),