summaryrefslogtreecommitdiff
path: root/include/git2
diff options
context:
space:
mode:
authoryorah <yoram.harmelin@gmail.com>2012-07-23 18:16:09 +0200
committeryorah <yoram.harmelin@gmail.com>2012-07-24 14:03:09 +0200
commita1773f9d89887d299248d15b43953d3fa494a025 (patch)
tree4b204fca95ff0e11766eb3d570c919874d9908db /include/git2
parentffbc689c8768c66cddf9ef3ab6c88c41ecf4c1ab (diff)
downloadlibgit2-a1773f9d89887d299248d15b43953d3fa494a025.tar.gz
Add flag to turn off pathspec testing for diff and status
Diffstat (limited to 'include/git2')
-rw-r--r--include/git2/diff.h1
-rw-r--r--include/git2/status.h3
2 files changed, 4 insertions, 0 deletions
diff --git a/include/git2/diff.h b/include/git2/diff.h
index edec9957b..85727d969 100644
--- a/include/git2/diff.h
+++ b/include/git2/diff.h
@@ -46,6 +46,7 @@ enum {
GIT_DIFF_INCLUDE_UNTRACKED = (1 << 8),
GIT_DIFF_INCLUDE_UNMODIFIED = (1 << 9),
GIT_DIFF_RECURSE_UNTRACKED_DIRS = (1 << 10),
+ GIT_DIFF_DISABLE_PATHSPEC_MATCH = (1 << 11),
};
/**
diff --git a/include/git2/status.h b/include/git2/status.h
index 69b6e47e0..9e7b5de4a 100644
--- a/include/git2/status.h
+++ b/include/git2/status.h
@@ -96,6 +96,8 @@ typedef enum {
* the top-level directory will be included (with a trailing
* slash on the entry name). Given this flag, the directory
* itself will not be included, but all the files in it will.
+ * - GIT_STATUS_OPT_DISABLE_PATHSPEC_MATCH indicates that the given
+ * path will be treated as a literal path, and not as a pathspec.
*/
enum {
@@ -104,6 +106,7 @@ enum {
GIT_STATUS_OPT_INCLUDE_UNMODIFIED = (1 << 2),
GIT_STATUS_OPT_EXCLUDE_SUBMODULES = (1 << 3),
GIT_STATUS_OPT_RECURSE_UNTRACKED_DIRS = (1 << 4),
+ GIT_STATUS_OPT_DISABLE_PATHSPEC_MATCH = (1 << 5),
};
/**