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 <jn.avila@free.fr> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Jean-Noël Avila committed
Mar 10, 2024 at 19:10 UTC
e7b3a7683c85c806f557814b52b199a1917ae070
2 files changed
+8
-3
Documentation/config/init.txt
+6
-3
@@ -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::[]
5
6
+init.templateDir::
7
+ Specify the directory from which templates will be copied. {see-git-init}
8
init.defaultBranch::
9
Allows overriding the default branch name e.g. when initializing
10
a new repository.
Documentation/git-init.txt
+2
@@ -185,6 +185,8 @@ CONFIGURATION
185
186
include::includes/cmd-config-section-all.txt[]
187
188
+:git-init:
189
+
190
include::config/init.txt[]
191
192
GIT