summaryrefslogtreecommitdiff
path: root/include/git2/diff.h
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2015-08-28 20:06:18 -0400
committerEdward Thomson <ethomson@edwardthomson.com>2015-08-28 20:45:08 -0400
commit3273ab3f0b04d673b9515b149674d5716939d9a5 (patch)
tree622aaadacda093f686442c03f3898447dbd5a72f /include/git2/diff.h
parent6c9352bf30e97af5d646d92ceab1c7b0f4c7a1c4 (diff)
downloadlibgit2-3273ab3f0b04d673b9515b149674d5716939d9a5.tar.gz
diff: better document GIT_DIFF_PATHSPEC_DISABLE
Document that `GIT_DIFF_PATHSPEC_DISABLE` is not necessarily about explicit path matching, but also includes matching of directory names. Enforce this in a test.
Diffstat (limited to 'include/git2/diff.h')
-rw-r--r--include/git2/diff.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/git2/diff.h b/include/git2/diff.h
index c3589bb13..d3adf9f01 100644
--- a/include/git2/diff.h
+++ b/include/git2/diff.h
@@ -130,7 +130,9 @@ typedef enum {
GIT_DIFF_INCLUDE_CASECHANGE = (1u << 11),
/** If the pathspec is set in the diff options, this flags means to
- * apply it as an exact match instead of as an fnmatch pattern.
+ * use exact prefix matches instead of an fnmatch pattern. Each
+ * path in the list must either be a full filename or a subdirectory
+ * prefix.
*/
GIT_DIFF_DISABLE_PATHSPEC_MATCH = (1u << 12),