Skip to content

Commit e7b3a76

Browse files
jnavilagitster
authored andcommitted
doc: git-init: rework config item init.templateDir
When included into a the manpage of git-init, the param section must not refer to the manpage. Signed-off-by: Jean-Noël Avila <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent aa804b7 commit e7b3a76

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

Documentation/config/init.txt

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
1-
init.templateDir::
2-
Specify the directory from which templates will be copied.
3-
(See the "TEMPLATE DIRECTORY" section of linkgit:git-init[1].)
1+
:see-git-init:
2+
ifndef::git-init[]
3+
:see-git-init: (See the "TEMPLATE DIRECTORY" section of linkgit:git-init[1].)
4+
endif::[]
45

6+
init.templateDir::
7+
Specify the directory from which templates will be copied. {see-git-init}
58
init.defaultBranch::
69
Allows overriding the default branch name e.g. when initializing
710
a new repository.

Documentation/git-init.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,8 @@ CONFIGURATION
185185

186186
include::includes/cmd-config-section-all.txt[]
187187

188+
:git-init:
189+
188190
include::config/init.txt[]
189191

190192
GIT

0 commit comments

Comments
 (0)