diff options
author | Derrick Stolee <derrickstolee@github.com> | 2022-03-22 17:28:35 (GMT) |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2022-03-23 20:13:17 (GMT) |
commit | cc910442560e606546a328375c1394a982dfe8a6 (patch) | |
tree | b444b0f4cfeb85959a2014f2f7eda1344b566b44 /revision.c | |
parent | f01e51a7cfd75131b7266131b1f7540ce0a8e5c1 (diff) | |
download | git-cc910442560e606546a328375c1394a982dfe8a6.zip git-cc910442560e606546a328375c1394a982dfe8a6.tar.gz git-cc910442560e606546a328375c1394a982dfe8a6.tar.bz2 |
list-objects-filter: remove CL_ARG__FILTER
We have established the command-line interface for the --[no-]filter
options for a while now, so we do not need a helper to make this
editable in the future.
Signed-off-by: Derrick Stolee <derrickstolee@github.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'revision.c')
-rw-r--r-- | revision.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -2691,9 +2691,9 @@ static int handle_revision_pseudo_opt(struct rev_info *revs, revs->no_walk = 0; } else if (!strcmp(arg, "--single-worktree")) { revs->single_worktree = 1; - } else if (skip_prefix(arg, ("--" CL_ARG__FILTER "="), &arg)) { + } else if (skip_prefix(arg, ("--filter="), &arg)) { parse_list_objects_filter(&revs->filter, arg); - } else if (!strcmp(arg, ("--no-" CL_ARG__FILTER))) { + } else if (!strcmp(arg, ("--no-filter"))) { list_objects_filter_set_no_filter(&revs->filter); } else { return 0; |