From: Philippe Blain via GitGitGadget Date: Fri, 03 Jul 2020 03:38:29 GMT Subject: [PATCH v2 4/4] rev-list-description.txt: fix Asciidoc syntax Message-ID: <3b923780c1f38ee183397b5766aae65933eec4aa.1593747509.git.gitgitgadget@gmail.com> In-Reply-To: From: Philippe Blain Using '{caret}' inside double quotes and immediately following with a single quoted word does not create the desired output: '' appears verbatim instead of being emphasized. Use a litteral caret ('^') instead. Also, remove the leading tabs in shell examples to bring them more in line with the rest of the documentation. Signed-off-by: Philippe Blain --- Documentation/rev-list-description.txt | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/Documentation/rev-list-description.txt b/Documentation/rev-list-description.txt index dce78561be..4bde2fd4fe 100644 --- a/Documentation/rev-list-description.txt +++ b/Documentation/rev-list-description.txt @@ -14,12 +14,12 @@ Thus, the following command: ifdef::git-rev-list[] ----------------------------------------------------------------------- - $ git rev-list foo bar ^baz +$ git rev-list foo bar ^baz ----------------------------------------------------------------------- endif::git-rev-list[] ifdef::git-log[] ----------------------------------------------------------------------- - $ git log foo bar ^baz +$ git log foo bar ^baz ----------------------------------------------------------------------- endif::git-log[] @@ -27,19 +27,19 @@ means "list all the commits which are reachable from 'foo' or 'bar', but not from 'baz'". A special notation "''..''" can be used as a -short-hand for "{caret}'' ''". For example, either of +short-hand for "^'' ''". For example, either of the following may be used interchangeably: ifdef::git-rev-list[] ----------------------------------------------------------------------- - $ git rev-list origin..HEAD - $ git rev-list HEAD ^origin +$ git rev-list origin..HEAD +$ git rev-list HEAD ^origin ----------------------------------------------------------------------- endif::git-rev-list[] ifdef::git-log[] ----------------------------------------------------------------------- - $ git log origin..HEAD - $ git log HEAD ^origin +$ git log origin..HEAD +$ git log HEAD ^origin ----------------------------------------------------------------------- endif::git-log[] @@ -49,13 +49,13 @@ between the two operands. The following two commands are equivalent: ifdef::git-rev-list[] ----------------------------------------------------------------------- - $ git rev-list A B --not $(git merge-base --all A B) - $ git rev-list A...B +$ git rev-list A B --not $(git merge-base --all A B) +$ git rev-list A...B ----------------------------------------------------------------------- endif::git-rev-list[] ifdef::git-log[] ----------------------------------------------------------------------- - $ git log A B --not $(git merge-base --all A B) - $ git log A...B +$ git log A B --not $(git merge-base --all A B) +$ git log A...B ----------------------------------------------------------------------- endif::git-log[] -- gitgitgadget