It would often be convenient to select exactly which references should be used as starting points when enumerating objects for analysis. We already have --branches, --tags, and --remotes to cause those types of references to be included. But what about
Include all references except for those under refs/notes (see issue #1).
Include all references except for the special refs/stash reference used for managing stashes.
Include all references except for remote references and GitHub's special refs/pulls references.
Include all branches and tags but not CI build tags that match refs/tags/build-*.
This PR adds four new options that make it possible to select arbitrary subsets of references:
--include PREFIX and --include-regexp PATTERN: specify references that should be included in the analysis.
--exclude PREFIX and --exclude-regexp PATTERN: specify references that should not be included in the analysis.
It would often be convenient to select exactly which references should be used as starting points when enumerating objects for analysis. We already have
--branches
,--tags
, and--remotes
to cause those types of references to be included. But what aboutrefs/notes
(see issue #1).refs/stash
reference used for managing stashes.refs/pulls
references.refs/tags/build-*
.This PR adds four new options that make it possible to select arbitrary subsets of references:
--include PREFIX
and--include-regexp PATTERN
: specify references that should be included in the analysis.--exclude PREFIX
and--exclude-regexp PATTERN
: specify references that should not be included in the analysis.I still need to add tests.