Skip to content

Commit 18c4aac

Browse files
Martin Ågrengitster
authored andcommitted
show-ref doc: fix carets in monospace
When commit 00bf685 (show-ref doc: update for internal consistency, 2023-05-19) switched from double quotes to backticks around our {caret} macro, we started rendering "{caret}" literally. Fix this by replacing by a "^" character. Signed-off-by: Martin Ågren <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 51f9d2e commit 18c4aac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Documentation/git-show-ref.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ OPTIONS
4747
-d::
4848
--dereference::
4949

50-
Dereference tags into object IDs as well. They will be shown with `{caret}{}`
50+
Dereference tags into object IDs as well. They will be shown with `^{}`
5151
appended.
5252

5353
-s::
@@ -78,7 +78,7 @@ OPTIONS
7878
Make `git show-ref` act as a filter that reads refs from stdin of the
7979
form `^(?:<anything>\s)?<refname>(?:\^{})?$`
8080
and performs the following actions on each:
81-
(1) strip `{caret}{}` at the end of line if any;
81+
(1) strip `^{}` at the end of line if any;
8282
(2) ignore if pattern is provided and does not head-match refname;
8383
(3) warn if refname is not a well-formed refname and skip;
8484
(4) ignore if refname is a ref that exists in the local repository;

0 commit comments

Comments
 (0)