git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH 4/6] doc: git-init: rework config item init.templateDir

From
Jean-Noël Avila via GitGitGadget <gitgitgadget@gmail.com>
Date
Mar 10, 2024, 19:10 UTC
Message-ID
<8fda922dddf4278786acab4df8d7b31ed7605bc2.1710097830.git.gitgitgadget@gmail.com>
In-Reply-To
<pull.1687.git.1710097830.gitgitgadget@gmail.com>
From: =?UTF-8?q?Jean-No=C3=ABl=20Avila?= <jn.avila@free.fr>

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>
---
 Documentation/config/init.txt | 9 ++++++---
 Documentation/git-init.txt    | 2 ++
 2 files changed, 8 insertions(+), 3 deletions(-)
diff --git a/Documentation/config/init.txt b/Documentation/config/init.txt
index 79c79d66174..dd1d8332737 100644
--- a/Documentation/config/init.txt
+++ b/Documentation/config/init.txt
@@ -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.
diff --git a/Documentation/git-init.txt b/Documentation/git-init.txt
index 5fce39040f2..2f864e11ed9 100644
--- a/Documentation/git-init.txt
+++ b/Documentation/git-init.txt
@@ -185,6 +185,8 @@ CONFIGURATION
 
 include::includes/cmd-config-section-all.txt[]
 
+:git-init:
+
 include::config/init.txt[]
 
 GIT
-- 
gitgitgadget
Previous: Jean-Noël Avila via GitGitGadgetNext: Jean-Noël Avila via GitGitGadget
Message 5 of 9 in “doc: rework doc files for git-init and git-clone”
  1. 0/6 doc: rework doc files for git-init and git-cloneJean-Noël Avila via GitGitGadget, Mar 10, 2024
  2. 1/6 doc: git-init: format verbatim partsJean-Noël Avila via GitGitGadget, Mar 10, 2024
  3. 2/6 doc: git-init: format placeholdersJean-Noël Avila via GitGitGadget, Mar 10, 2024
  4. 3/6 doc: git-init: rework definition listsJean-Noël Avila via GitGitGadget, Mar 10, 2024
  5. 4/6 doc: git-init: rework config item init.templateDirJean-Noël Avila via GitGitGadget, Mar 10, 2024
  6. 5/6 doc: git-clone: format verbatim wordsJean-Noël Avila via GitGitGadget, Mar 10, 2024
  7. 6/6 doc: git-clone: format placeholdersJean-Noël Avila via GitGitGadget, Mar 10, 2024
  8. Junio C HamanoMar 11, 2024
  9. Jean-Noël AvilaMar 11, 2024

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.