diff options
author | Junio C Hamano <gitster@pobox.com> | 2019-09-30 04:19:31 (GMT) |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-09-30 04:19:32 (GMT) |
commit | 9755f70fe6498a4eaae2b9c63e91caa0fd97cb5a (patch) | |
tree | 1acd63bdfc87bb065de6fef7a027474a9951a2fa /Documentation/technical | |
parent | 93fc8760e7a29ce9e93c90c63523f0c1f25498bb (diff) | |
parent | 468ce99b77a0efaf1ace4c31a7b0a7d036fd9ca1 (diff) | |
download | git-9755f70fe6498a4eaae2b9c63e91caa0fd97cb5a.zip git-9755f70fe6498a4eaae2b9c63e91caa0fd97cb5a.tar.gz git-9755f70fe6498a4eaae2b9c63e91caa0fd97cb5a.tar.bz2 |
Merge branch 'ds/include-exclude'
The internal code originally invented for ".gitignore" processing
got reshuffled and renamed to make it less tied to "excluding" and
stress more that it is about "matching", as it has been reused for
things like sparse checkout specification that want to check if a
path is "included".
* ds/include-exclude:
unpack-trees: rename 'is_excluded_from_list()'
treewide: rename 'exclude' methods to 'pattern'
treewide: rename 'EXCL_FLAG_' to 'PATTERN_FLAG_'
treewide: rename 'struct exclude_list' to 'struct pattern_list'
treewide: rename 'struct exclude' to 'struct path_pattern'
Diffstat (limited to 'Documentation/technical')
-rw-r--r-- | Documentation/technical/api-directory-listing.txt | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Documentation/technical/api-directory-listing.txt b/Documentation/technical/api-directory-listing.txt index 5abb8e8..76b6e4f 100644 --- a/Documentation/technical/api-directory-listing.txt +++ b/Documentation/technical/api-directory-listing.txt @@ -111,11 +111,11 @@ marked. If you to exclude files, make sure you have loaded index first. * Prepare `struct dir_struct dir` and clear it with `memset(&dir, 0, sizeof(dir))`. -* To add single exclude pattern, call `add_exclude_list()` and then - `add_exclude()`. +* To add single exclude pattern, call `add_pattern_list()` and then + `add_pattern()`. * To add patterns from a file (e.g. `.git/info/exclude`), call - `add_excludes_from_file()` , and/or set `dir.exclude_per_dir`. A + `add_patterns_from_file()` , and/or set `dir.exclude_per_dir`. A short-hand function `setup_standard_excludes()` can be used to set up the standard set of exclude settings. |