args.from_promisor = 1;
continue;
}
- if (skip_prefix(arg, ("--" CL_ARG__FILTER "="), &arg)) {
+ if (skip_prefix(arg, ("--filter="), &arg)) {
parse_list_objects_filter(&args.filter_options, arg);
continue;
}
- if (!strcmp(arg, ("--no-" CL_ARG__FILTER))) {
+ if (!strcmp(arg, ("--no-filter"))) {
list_objects_filter_set_no_filter(&args.filter_options);
continue;
}
*/
};
-/* Normalized command line arguments */
-#define CL_ARG__FILTER "filter"
-
/*
* Parse value of the argument to the "filter" keyword.
* On the command line this looks like:
const char *arg, int unset);
#define OPT_PARSE_LIST_OBJECTS_FILTER(fo) \
- OPT_CALLBACK(0, CL_ARG__FILTER, fo, N_("args"), \
+ OPT_CALLBACK(0, "filter", fo, N_("args"), \
N_("object filtering"), \
opt_parse_list_objects_filter)
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;