summaryrefslogtreecommitdiff
path: root/include/git2/diff.h
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2015-07-28 19:55:37 -0500
committerEdward Thomson <ethomson@microsoft.com>2015-08-28 18:39:52 -0400
commitef206124de957408c8d867e2f923d0611a7274fc (patch)
treebc9a45937d109c6c7d3b1c2052a486d28b4ae470 /include/git2/diff.h
parented1c64464a4e3126eef5d74d2c14c19133fa9cd8 (diff)
downloadlibgit2-ef206124de957408c8d867e2f923d0611a7274fc.tar.gz
Move filelist into the iterator handling itself.
Diffstat (limited to 'include/git2/diff.h')
-rw-r--r--include/git2/diff.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/git2/diff.h b/include/git2/diff.h
index 0abbc7f06..c3589bb13 100644
--- a/include/git2/diff.h
+++ b/include/git2/diff.h
@@ -163,6 +163,13 @@ typedef enum {
/** Include unreadable files in the diff */
GIT_DIFF_INCLUDE_UNREADABLE_AS_UNTRACKED = (1u << 17),
+ /** Use literal path matching in the iterators. This is more broad
+ * than the DISABLE_PATHSPEC_MATCH flag. The caller must provide an
+ * array of paths (no patterns or prefixes). Only values included in
+ * that list will be returned.
+ */
+ GIT_DIFF_ENABLE_FILELIST_MATCH = (1u << 18),
+
/*
* Options controlling how output will be generated
*/