git-commit-vandalism/Documentation/technical
Derrick Stolee 65edd96aec treewide: rename 'exclude' methods to 'pattern'
The first consumer of pattern-matching filenames was the
.gitignore feature. In that context, storing a list of patterns
as a 'struct exclude_list'  makes sense. However, the
sparse-checkout feature then adopted these structures and methods,
but with the opposite meaning: these patterns match the files
that should be included!

It would be clearer to rename this entire library as a "pattern
matching" library, and the callers apply exclusion/inclusion
logic accordingly based on their needs.

This commit renames several methods defined in dir.h to make
more sense with the renamed 'struct exclude_list' to 'struct
pattern_list' and 'struct exclude' to 'struct path_pattern':

 * last_exclude_matching() -> last_matching_pattern()
 * parse_exclude() -> parse_path_pattern()

In addition, the word 'exclude' was replaced with 'pattern'
in the methods below:

 * add_exclude_list()
 * add_excludes_from_file_to_list()
 * add_excludes_from_file()
 * add_excludes_from_blob_to_list()
 * add_exclude()
 * clear_exclude_list()

A few methods with the word "exclude" remain. These will
be handled seperately. In particular, the method
"is_excluded()" is concretely about the .gitignore file
relative to a specific directory. This is the important
boundary between library and consumer: is_excluded() cares
about .gitignore, but is_excluded() calls
last_matching_pattern() to make that decision.

Signed-off-by: Derrick Stolee <dstolee@microsoft.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2019-09-05 14:05:12 -07:00
..
.gitignore
api-allocation-growing.txt
api-argv-array.txt
api-config.txt Documentation/technical/api-config.txt: fix formatting 2019-04-01 15:17:47 +09:00
api-credentials.txt
api-diff.txt diff.c: remove implicit dependency on the_index 2018-09-21 09:48:10 -07:00
api-directory-listing.txt treewide: rename 'exclude' methods to 'pattern' 2019-09-05 14:05:12 -07:00
api-error-handling.txt
api-gitattributes.txt Documentation: spelling and grammar fixes 2018-06-22 14:26:23 -07:00
api-grep.txt
api-history-graph.txt docs: graph: remove unnecessary `graph_update()' call 2018-10-07 10:10:49 +09:00
api-index-skel.txt
api-index.sh
api-merge.txt
api-object-access.txt sha1_file.c: rename to use dash in file name 2018-04-11 18:11:00 +09:00
api-oid-array.txt sha1-array: provide oid_array_filter 2018-12-05 11:42:31 +09:00
api-parse-options.txt parse-options: make OPT_ARGUMENT() more useful 2019-03-18 11:44:14 +09:00
api-quote.txt
api-ref-iteration.txt
api-remote.txt
api-revision-walking.txt revision.c: remove implicit dependency on the_index 2018-09-21 09:51:19 -07:00
api-run-command.txt run-command: factor out child_process_clear() 2015-11-02 15:01:00 -08:00
api-setup.txt
api-sigchain.txt
api-submodule-config.txt Merge branch 'sb/submodule-move-nested' 2018-05-08 15:59:17 +09:00
api-trace2.txt trace2: rename environment variables to GIT_TRACE2* 2019-05-28 10:20:34 -07:00
api-trace.txt
api-tree-walking.txt
api-xdiff-interface.txt
bitmap-format.txt
commit-graph-format.txt commit-graph: rename "large edges" to "extra edges" 2019-01-22 11:33:46 -08:00
commit-graph.txt Merge branch 'ma/commit-graph-docs' 2018-10-16 16:16:05 +09:00
directory-rename-detection.txt Merge branch 'ja/dir-rename-doc-markup-fix' 2019-04-10 02:14:21 +09:00
hash-function-transition.txt doc hash-function-transition: pick SHA-256 as NewHash 2018-08-07 07:40:43 -07:00
http-protocol.txt doc: fix want-capability separator 2018-07-30 11:25:20 -07:00
index-format.txt ieot: add Index Entry Offset Table (IEOT) extension 2018-10-11 15:32:48 +09:00
long-running-process-protocol.txt Docs: split out long-running subprocess handshake 2018-01-25 11:24:32 -08:00
multi-pack-index.txt multi-pack-index: add design document 2018-07-12 13:55:02 -07:00
pack-format.txt midx: write object offsets 2018-07-20 11:27:28 -07:00
pack-heuristics.txt
pack-protocol.txt fix pack protocol example client/server communication 2019-03-18 14:37:54 +09:00
partial-clone.txt partial-clone: add missing 'is' in doc 2019-01-14 11:06:47 -08:00
protocol-capabilities.txt protocol-capabilities.txt: document symref 2019-02-21 12:05:52 -08:00
protocol-common.txt
protocol-v2.txt Documentation/technical/protocol-v2.txt: fix formatting 2019-04-01 15:17:47 +09:00
racy-git.txt
repository-version.txt doc: move extensions.worktreeConfig to the right place 2018-11-16 14:10:31 +09:00
rerere.txt rerere: mention caveat about unmatched conflict markers 2018-08-29 08:54:11 -07:00
send-pack-pipeline.txt
shallow.txt technical/shallow: describe why shallow cannot use replace refs 2018-04-30 11:12:31 +09:00
signature-format.txt
trivial-merge.txt