Skip to content

Commit aa0275a

Browse files
szedergitster
authored andcommitted
parse-options.h: rename _OPT_CONTAINS_OR_WITH()'s parameters
Rename the 'help' parameter as it matches one of the fields in 'struct option', and, while at it, rename all other parameters to the usual one-letter name used in similar macro definitions. Furthermore, put all parameters in the replacement list between parentheses, like all other OPT_* macros do. Signed-off-by: SZEDER Gábor <[email protected]> Reviewed-by: Elijah Newren <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent ab0845b commit aa0275a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

parse-options.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -381,9 +381,9 @@ int parse_opt_tracking_mode(const struct option *, const char *, int);
381381
{ OPTION_CALLBACK, (s), (l), (v), (a), (h), (f), parse_opt_passthru }
382382
#define OPT_PASSTHRU_ARGV(s, l, v, a, h, f) \
383383
{ OPTION_CALLBACK, (s), (l), (v), (a), (h), (f), parse_opt_passthru_argv }
384-
#define _OPT_CONTAINS_OR_WITH(name, variable, help, flag) \
385-
{ OPTION_CALLBACK, 0, name, (variable), N_("commit"), (help), \
386-
PARSE_OPT_LASTARG_DEFAULT | flag, \
384+
#define _OPT_CONTAINS_OR_WITH(l, v, h, f) \
385+
{ OPTION_CALLBACK, 0, (l), (v), N_("commit"), (h), \
386+
PARSE_OPT_LASTARG_DEFAULT | (f), \
387387
parse_opt_commits, (intptr_t) "HEAD" \
388388
}
389389
#define OPT_CONTAINS(v, h) _OPT_CONTAINS_OR_WITH("contains", v, h, PARSE_OPT_NONEG)

0 commit comments

Comments
 (0)