diff options
| author | Patrick Steinhardt <ps@pks.im> | 2022-11-17 06:46:51 +0100 |
|---|---|---|
| committer | Taylor Blau <me@ttaylorr.com> | 2022-11-17 16:22:52 -0500 |
| commit | 1e9f273ac06f7826ee3ec5a8da5d03bf07c14389 (patch) | |
| tree | 03c25dc38a9bd11754e623df778bd29343acd2d3 /builtin/commit.c | |
| parent | revision: move together exclusion-related functions (diff) | |
| download | git-1e9f273ac06f7826ee3ec5a8da5d03bf07c14389.tar.gz git-1e9f273ac06f7826ee3ec5a8da5d03bf07c14389.zip | |
revision: introduce struct to handle exclusions
The functions that handle exclusion of refs work on a single string
list. We're about to add a second mechanism for excluding refs though,
and it makes sense to reuse much of the same architecture for both kinds
of exclusion.
Introduce a new `struct ref_exclusions` that encapsulates all the logic
related to excluding refs and move the `struct string_list` that holds
all wildmatch patterns of excluded refs into it. Rename functions that
operate on this struct to match its name.
Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Taylor Blau <me@ttaylorr.com>
Diffstat (limited to 'builtin/commit.c')
0 files changed, 0 insertions, 0 deletions
