Lines Matching +full:files +full:- +full:exclude

4 # SPDX-License-Identifier: Apache-2.0
7 Lists maintainers for files or commits. Similar in function to
16 ./get_maintainer.py path --help
60 "-m", "--maintainers",
63 "the top-level repository directory is used, and must exist. "
65 "to the top-level directory.")
68 help="Available commands (each has a separate --help text)")
92 help="List files in areas")
97 help="Name of area to list files in. If not specified, all "
98 "non-orphaned files are listed (all files that do not appear in "
115 help="List orphaned files (files that do not appear in any area)")
120 help="Limit to files under PATH")
127 "-a",
128 "--count-areas",
132 "-c",
133 "--count-collaborators",
137 "-n",
138 "--count-maintainers",
142 "-o",
143 "--count-unmaintained",
175 the top-level directory of the Git repository is used, and must
182 self._toplevel = pathlib.Path(_git("rev-parse", "--show-toplevel"))
198 # area._match_fn(path) tests if the path matches files and/or
199 # files-regex
201 _get_match_fn(area_dict.get("files"),
202 area_dict.get("files-regex"))
204 # Like area._match_fn(path), but for files-exclude and
205 # files-regex-exclude
207 _get_match_fn(area_dict.get("files-exclude"),
208 area_dict.get("files-regex-exclude"))
236 Returns a set() of Area instances for the areas that contain files that
241 # Final '--' is to make sure 'commits' is interpreted as a commit range
243 for path in _git("diff", "--name-only", commits, "--").splitlines():
251 # Command-line subcommands
325 # List all files that appear in some area
332 # List all files that appear in the given area
448 # return search(). (?:) is a non-capturing group.
464 with open(path, encoding="utf-8") as f:
486 ok_keys = {"status", "maintainers", "collaborators", "inform", "files",
487 "files-exclude", "files-regex", "files-regex-exclude",
508 if not area_dict.keys() & {"files", "files-regex"}:
509 ferr("either 'files' or 'files-regex' (or both) must be specified "
512 for list_name in "maintainers", "collaborators", "inform", "files", \
513 "files-regex", "labels", "tags", "tests":
518 ferr("malformed '{}' value for area '{}' -- should "
521 for files_key in "files", "files-exclude":
525 # e.g. to only check non-globbing filenames. The tuple() is
530 "match any files".format(glob_pattern, files_key,
540 for files_regex_key in "files-regex", "files-regex-exclude":
552 ferr("malformed 'description' value for area '{}' -- should be a "
577 git_cmd_s, stdout.decode("utf-8"), stderr.decode("utf-8")))
579 return stdout.decode("utf-8").rstrip()
583 cmd = ["ls-files"]
604 "Exception raised for MAINTAINERS.yml-related errors"
608 "Exception raised for Git-related errors"