Skip to content

Commit 939cb73

Browse files
committed
examples: log: fix documentation generation
Docurium seems to be confused by our use of `/** comment */;` use in the log example. Let's just switch it around to help Docurium get this right.
1 parent c708e5e commit 939cb73

File tree

1 file changed

+18
-9
lines changed

1 file changed

+18
-9
lines changed

examples/log.c

Lines changed: 18 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -434,21 +434,28 @@ static int parse_options(
434434
else if (!strcmp(a, "--reverse"))
435435
set_sorting(s, GIT_SORT_REVERSE);
436436
else if (match_str_arg(&opt->author, &args, "--author"))
437-
/** Found valid --author */;
437+
/** Found valid --author */
438+
;
438439
else if (match_str_arg(&opt->committer, &args, "--committer"))
439-
/** Found valid --committer */;
440+
/** Found valid --committer */
441+
;
440442
else if (match_str_arg(&opt->grep, &args, "--grep"))
441-
/** Found valid --grep */;
443+
/** Found valid --grep */
444+
;
442445
else if (match_str_arg(&s->repodir, &args, "--git-dir"))
443-
/** Found git-dir. */;
446+
/** Found git-dir. */
447+
;
444448
else if (match_int_arg(&opt->skip, &args, "--skip", 0))
445-
/** Found valid --skip. */;
449+
/** Found valid --skip. */
450+
;
446451
else if (match_int_arg(&opt->limit, &args, "--max-count", 0))
447-
/** Found valid --max-count. */;
452+
/** Found valid --max-count. */
453+
;
448454
else if (a[1] >= '0' && a[1] <= '9')
449455
is_integer(&opt->limit, a + 1, 0);
450456
else if (match_int_arg(&opt->limit, &args, "-n", 0))
451-
/** Found valid -n. */;
457+
/** Found valid -n. */
458+
;
452459
else if (!strcmp(a, "--merges"))
453460
opt->min_parents = 2;
454461
else if (!strcmp(a, "--no-merges"))
@@ -458,9 +465,11 @@ static int parse_options(
458465
else if (!strcmp(a, "--no-max-parents"))
459466
opt->max_parents = -1;
460467
else if (match_int_arg(&opt->max_parents, &args, "--max-parents=", 1))
461-
/** Found valid --max-parents. */;
468+
/** Found valid --max-parents. */
469+
;
462470
else if (match_int_arg(&opt->min_parents, &args, "--min-parents=", 0))
463-
/** Found valid --min_parents. */;
471+
/** Found valid --min_parents. */
472+
;
464473
else if (!strcmp(a, "-p") || !strcmp(a, "-u") || !strcmp(a, "--patch"))
465474
opt->show_diff = 1;
466475
else if (!strcmp(a, "--log-size"))

0 commit comments

Comments
 (0)