Files
git/Documentation/RelNotes
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
..
2017-06-27 10:35:49 -07:00
2016-08-11 14:35:42 -07:00
2016-08-11 14:35:42 -07:00
2016-03-17 11:23:05 -07:00
2017-05-05 12:43:16 +09:00
2015-09-04 10:46:07 -07:00
2015-09-17 12:16:17 -07:00
2016-08-11 14:35:42 -07:00
2016-03-17 11:24:59 -07:00
2017-05-05 12:50:38 +09:00
2015-09-17 12:33:24 -07:00
2016-08-11 14:35:42 -07:00
2015-10-16 14:40:05 -07:00
2015-11-05 12:20:34 -08:00
2015-12-08 14:12:45 -08:00
2016-01-04 14:06:00 -08:00
2016-03-17 11:26:41 -07:00
2017-05-05 12:56:19 +09:00
2015-12-28 14:00:52 -08:00
2016-02-22 13:12:56 -08:00
2016-03-10 11:14:08 -08:00
2016-03-17 11:32:13 -07:00
2017-05-05 13:03:40 +09:00
2017-07-30 14:45:13 -07:00
2016-04-03 10:14:12 -07:00
2016-04-29 14:19:11 -07:00
2016-05-18 15:32:41 -07:00
2016-06-06 14:29:32 -07:00
2017-05-05 13:08:54 +09:00
2017-07-30 14:49:08 -07:00
2016-07-11 10:45:50 -07:00
2016-07-15 10:48:16 -07:00
2016-08-12 09:17:51 -07:00
2017-05-05 13:19:10 +09:00
2017-07-30 14:53:25 -07:00
2016-10-03 13:24:18 -07:00
2016-10-28 09:02:44 -07:00
2017-05-05 13:24:10 +09:00
2017-07-30 15:00:04 -07:00
2017-09-22 14:42:22 +09:00
2017-02-02 13:21:27 -08:00
2017-05-05 13:29:43 +09:00
2017-07-30 15:02:37 -07:00
2017-09-22 14:44:45 +09:00
2017-06-27 10:35:49 -07:00
2017-03-16 14:01:20 -07:00
2017-03-24 12:59:15 -07:00
2017-05-05 13:33:22 +09:00
2017-07-30 15:06:06 -07:00
2017-09-22 14:47:41 +09:00
2017-05-09 23:26:02 +09:00
2017-06-05 09:05:38 +09:00
2017-06-24 15:31:36 -07:00
2017-07-12 15:24:15 -07:00
2017-07-31 13:52:40 -07:00
2017-08-01 12:30:00 -07:00
2017-09-22 14:49:24 +09:00
2018-05-22 13:50:36 +09:00
2017-08-04 09:31:12 -07:00
2017-08-04 12:41:54 -07:00
2017-09-22 14:51:37 +09:00
2017-10-23 14:44:17 +09:00
2018-05-22 14:12:02 +09:00
2018-09-27 11:19:11 -07:00
2017-11-06 11:34:26 +09:00
2017-11-28 13:39:14 +09:00
2018-05-22 14:15:59 +09:00
2018-09-27 11:33:47 -07:00
2018-01-17 13:06:51 -08:00
2018-01-21 21:14:25 -08:00
2018-02-15 15:21:23 -08:00
2018-03-22 14:24:45 -07:00
2018-05-22 14:18:51 +09:00
2018-09-27 11:38:32 -07:00
2018-05-22 14:28:26 +09:00
2018-09-27 11:44:07 -07:00
2018-09-27 11:48:19 -07:00
2018-09-10 10:41:56 -07:00
2018-09-27 11:52:33 -07:00
2018-11-21 23:22:12 +09:00
2018-12-15 12:31:34 +09:00
2019-02-13 18:18:43 -08:00
2019-06-03 11:25:12 -07:00
2019-06-21 11:26:11 -07:00