Skip to content

Commit ad228c2

Browse files
benknoblegitster
authored andcommitted
replay: drop rev-list formatting options from manual
The rev-list options in our manuals are quite long; git-replay's manual is no exception. Since replay doesn't use the formatting options at all (it has its own output format), drop them. This is the first time we have needed compound tests [1] for if[n]def in our documentation: git grep '^ifn\?def::' Documentation | grep '[,+]' [1]: https://docs.asciidoctor.org/asciidoc/latest/directives/ifdef-ifndef/ For both ifdef and ifndef, the "," takes on the intuitive meaning: - ifdef: if any of the listed attributes are set… - ifndef: unless any of the listed attributes are set (Use "+" for "all".) Signed-off-by: D. Ben Knoble <ben.knoble+github@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent b5c409c commit ad228c2

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
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/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)