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>
This commit is contained in:
Jean-Noël Avila
2024-03-10 19:10:28 +00:00
committed by Junio C Hamano
parent aa804b7a4c
commit e7b3a7683c
2 changed files with 8 additions and 3 deletions

View File

@ -1,7 +1,10 @@
init.templateDir:: :see-git-init:
Specify the directory from which templates will be copied. ifndef::git-init[]
(See the "TEMPLATE DIRECTORY" section of linkgit:git-init[1].) :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:: init.defaultBranch::
Allows overriding the default branch name e.g. when initializing Allows overriding the default branch name e.g. when initializing
a new repository. a new repository.

View File

@ -185,6 +185,8 @@ CONFIGURATION
include::includes/cmd-config-section-all.txt[] include::includes/cmd-config-section-all.txt[]
:git-init:
include::config/init.txt[] include::config/init.txt[]
GIT GIT