diff options
| author | Russell Belfer <rb@github.com> | 2012-07-24 11:21:32 -0700 |
|---|---|---|
| committer | Russell Belfer <rb@github.com> | 2012-07-24 11:21:32 -0700 |
| commit | 7779437fd56882060eca6128e9680ba1705e0081 (patch) | |
| tree | 4b204fca95ff0e11766eb3d570c919874d9908db /include/git2 | |
| parent | 944d250f964698b33d9fa09e2e6af74b1dd84de2 (diff) | |
| parent | a1773f9d89887d299248d15b43953d3fa494a025 (diff) | |
| download | libgit2-7779437fd56882060eca6128e9680ba1705e0081.tar.gz | |
Merge pull request #799 from yorah/fix/issue-787
Fix/issue 787
Diffstat (limited to 'include/git2')
| -rw-r--r-- | include/git2/diff.h | 1 | ||||
| -rw-r--r-- | include/git2/status.h | 3 |
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), }; /** |
