diff options
| author | Carlos Martín Nieto <cmn@dwim.me> | 2015-09-01 02:26:11 +0200 |
|---|---|---|
| committer | Carlos Martín Nieto <cmn@dwim.me> | 2015-09-01 02:26:11 +0200 |
| commit | 21e7015ca3425e396c2b7cc03ac67e297a646c91 (patch) | |
| tree | 9eea2c6b61f9a1f2f57c52e52d9bc170feb14c1f /include/git2 | |
| parent | ed38e26db5435b519d8b796e4b6c2c660fe982b5 (diff) | |
| parent | 53c2296bfed972026809803415944b4dd4eff6d3 (diff) | |
| download | libgit2-21e7015ca3425e396c2b7cc03ac67e297a646c91.tar.gz | |
Merge pull request #3402 from ethomson/faster_diff
Provide path matching in the iterators (for faster diffs)
Diffstat (limited to 'include/git2')
| -rw-r--r-- | include/git2/diff.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/include/git2/diff.h b/include/git2/diff.h index 0abbc7f06..a0f6db350 100644 --- a/include/git2/diff.h +++ b/include/git2/diff.h @@ -129,8 +129,12 @@ 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. + /** If the pathspec is set in the diff options, this flags indicates + * that the paths will be treated as literal paths instead of + * fnmatch patterns. Each path in the list must either be a full + * path to a file or a directory. (A trailing slash indicates that + * the path will _only_ match a directory). If a directory is + * specified, all children will be included. */ GIT_DIFF_DISABLE_PATHSPEC_MATCH = (1u << 12), |
