Skip to content

Commit 9eb4754

Browse files
committed
fetch-options.txt: prevent a wildcard refspec from getting misformatted
When explaining the "--tags" option as an equivalent to giving an explicit "refs/tags/*:refs/tags/*" refspec, the two asterisks were misinterpreted by AsciiDoc as a request to typeset the string segment between them in bold. We could fix it in two ways. We can replace them with {asterisk}s while keeping the string as body text, or we can mark it as a literal string with backquotes around it. Let's do the latter, as it is teaching the user an "exactly as typed" alternative. Noticed-by: Ramkumar Ramachandra <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 1599999 commit 9eb4754

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Documentation/fetch-options.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ endif::git-pull[]
5757
ifndef::git-pull[]
5858
-t::
5959
--tags::
60-
This is a short-hand for giving "refs/tags/*:refs/tags/*"
60+
This is a short-hand for giving `refs/tags/*:refs/tags/*`
6161
refspec from the command line, to ask all tags to be fetched
6262
and stored locally. Because this acts as an explicit
6363
refspec, the default refspecs (configured with the

0 commit comments

Comments
 (0)