Skip to content

Commit a85b522

Browse files
committed
Merge branch 'dk/replay-doc-omit-irrelevant-rev-list-options'
Documentation clean-up. * dk/replay-doc-omit-irrelevant-rev-list-options: lint-gitlink: preemptively ignore all /ifn?def|endif/ macros replay: drop rev-list formatting options from manual
2 parents 26f50ef + 46933bf commit a85b522

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

Documentation/git-replay.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ The default mode can be configured via the `replay.refAction` configuration vari
6464
range should have a single tip, so that it's clear to which tip the
6565
advanced <branch> should point.
6666

67+
:git-replay: 1
6768
include::rev-list-options.adoc[]
6869

6970
[[output]]

Documentation/lint-gitlink.perl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,11 @@ sub report {
4141
@ARGV = $to_check;
4242
while (<>) {
4343
my $line = $_;
44+
next if $line =~ /^\s*(ifn?def|endif)::/;
4445
while ($line =~ m/(.{,8})((git[-a-z]+|scalar)\[(\d)*\])/g) {
4546
my $pos = pos $line;
4647
my ($macro, $target, $page, $section) = ($1, $2, $3, $4);
47-
if ( $macro ne "linkgit:" && $macro !~ "ifn?def::" && $macro ne "endif::" ) {
48+
if ( $macro ne "linkgit:" ) {
4849
report($pos, $line, $target, "linkgit: macro expected");
4950
}
5051
}

Documentation/rev-list-options.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1096,7 +1096,7 @@ endif::git-rev-list[]
10961096
Overrides a previous `--no-walk`.
10971097
endif::git-shortlog[]
10981098

1099-
ifndef::git-shortlog[]
1099+
ifndef::git-shortlog,git-replay[]
11001100
Commit Formatting
11011101
~~~~~~~~~~~~~~~~~
11021102

@@ -1265,4 +1265,4 @@ ifdef::git-rev-list[]
12651265
counts and print the count for equivalent commits separated
12661266
by a tab.
12671267
endif::git-rev-list[]
1268-
endif::git-shortlog[]
1268+
endif::git-shortlog,git-replay[]

0 commit comments

Comments
 (0)