summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz@archlinux.org>2021-10-23 21:42:54 -0400
committerJunio C Hamano <gitster@pobox.com>2021-10-23 22:35:13 -0700
commit6cfe4190240f82339d0a380931433c0b3d21e65c (patch)
tree6d01f679d78954ef10bffbc8752568af45772a09
parent9d530dc0024503ab4218fe6c4395b8a0aa245478 (diff)
pretty.c: rename describe options variable to more descriptive name
It contains option arguments, not options. We would like to add option support here too. Signed-off-by: Eli Schwartz <eschwartz@archlinux.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rw-r--r--pretty.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/pretty.c b/pretty.c
index 73b5ead509..9db2c65538 100644
--- a/pretty.c
+++ b/pretty.c
@@ -1216,7 +1216,7 @@ int format_set_trailers_options(struct process_trailer_options *opts,
static size_t parse_describe_args(const char *start, struct strvec *args)
{
- const char *options[] = { "match", "exclude" };
+ const char *option_arguments[] = { "match", "exclude" };
const char *arg = start;
for (;;) {
@@ -1225,10 +1225,10 @@ static size_t parse_describe_args(const char *start, struct strvec *args)
size_t arglen = 0;
int i;
- for (i = 0; i < ARRAY_SIZE(options); i++) {
- if (match_placeholder_arg_value(arg, options[i], &arg,
+ for (i = 0; i < ARRAY_SIZE(option_arguments); i++) {
+ if (match_placeholder_arg_value(arg, option_arguments[i], &arg,
&argval, &arglen)) {
- matched = options[i];
+ matched = option_arguments[i];
break;
}
}