]> git.ipfire.org Git - thirdparty/git.git/commitdiff
doc: git-init: rework config item init.templateDir
authorJean-Noël Avila <jn.avila@free.fr>
Sun, 10 Mar 2024 19:10:28 +0000 (19:10 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 11 Mar 2024 16:58:11 +0000 (09:58 -0700)
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>
Documentation/config/init.txt
Documentation/git-init.txt

index 79c79d66174ebd9f2dfb867a6a39a339529b7fc0..dd1d8332737fe89a2feca44ce59adad4f64bce5a 100644 (file)
@@ -1,7 +1,10 @@
-init.templateDir::
-       Specify the directory from which templates will be copied.
-       (See the "TEMPLATE DIRECTORY" section of linkgit:git-init[1].)
+:see-git-init:
+ifndef::git-init[]
+:see-git-init: (See the "TEMPLATE DIRECTORY" section of linkgit:git-init[1].)
+endif::[]
 
+init.templateDir::
+       Specify the directory from which templates will be copied. {see-git-init}
 init.defaultBranch::
        Allows overriding the default branch name e.g. when initializing
        a new repository.
index 5fce39040f25642d9c83ad119151bce4dccb3a0b..2f864e11ed9719a2443ece695534636fcb6e2631 100644 (file)
@@ -185,6 +185,8 @@ CONFIGURATION
 
 include::includes/cmd-config-section-all.txt[]
 
+:git-init:
+
 include::config/init.txt[]
 
 GIT