Skip to content

Commit 582b723

Browse files
committed
Merge branch 'dk/replay-doc-omit-irrelevant-rev-list-options' into seen
* dk/replay-doc-omit-irrelevant-rev-list-options: lint-gitlink: do not get confused by overly long ifdef directive replay: drop rev-list formatting options from manual
2 parents 1da2640 + 04eb407 commit 582b723

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

Documentation/git-replay.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ The default mode can be configured via the `replay.refAction` configuration vari
6666
changes are already present in the branch the commits are being
6767
replayed onto will be dropped.
6868

69+
:git-replay: 1
6970
include::rev-list-options.adoc[]
7071

7172
[[output]]

Documentation/lint-gitlink.perl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ sub report {
4141
@ARGV = $to_check;
4242
while (<>) {
4343
my $line = $_;
44-
while ($line =~ m/(.{,8})((git[-a-z]+|scalar)\[(\d)*\])/g) {
44+
while ($line =~ m/([a-z]{,8}:+)((git[-a-z]+|scalar)\[(\d)*\])/g) {
4545
my $pos = pos $line;
4646
my ($macro, $target, $page, $section) = ($1, $2, $3, $4);
4747
if ( $macro ne "linkgit:" && $macro !~ "ifn?def::" && $macro ne "endif::" ) {

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)