Skip to content

Commit ebb5504

Browse files
jnavilagitster
authored andcommitted
doc: git-clone: do not autoreference the manpage in itself
Auto-reference in man pages is a confusion factor. Signed-off-by: Jean-Noël Avila <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 76880f0 commit ebb5504

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

Documentation/config/clone.txt

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,21 @@
11
`clone.defaultRemoteName`::
22
The name of the remote to create when cloning a repository. Defaults to
3-
`origin`, and can be overridden by passing the `--origin` command-line
3+
`origin`.
4+
ifdef::git-clone[]
5+
It can be overridden by passing the `--origin` command-line
6+
option.
7+
endif::[]
8+
ifndef::git-clone[]
9+
It can be overridden by passing the `--origin` command-line
410
option to linkgit:git-clone[1].
11+
endif::[]
512

613
`clone.rejectShallow`::
714
Reject cloning a repository if it is a shallow one; this can be overridden by
8-
passing the `--reject-shallow` option on the command line. See linkgit:git-clone[1]
15+
passing the `--reject-shallow` option on the command line.
16+
ifndef::git-clone[]
17+
See linkgit:git-clone[1].
18+
endif::[]
919

1020
`clone.filterSubmodules`::
1121
If a partial clone filter is provided (see `--filter` in

0 commit comments

Comments
 (0)