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

[PATCH] Document dotfiles exclusion on template copy

From
GPGrégoire Paris <gregoire.paris.greg0ire@gmail.com>
Date
Feb 17, 2017, 23:27 UTC
Message-ID
<20170217232748.13164-1-postmaster@greg0ire.fr>

Since there is no dotfile in the default template directory, there was no point in making the check for . or .. more accurate when copying. Now that you can customize the template directory, it would make sense, but it's actually a good thing to at this because you would not want to have your git directory copied in every git directory that is created should you decide to put your template directory under version control. Plus, it might be used as a feature by people who would want to exclude some files.

Signed-off-by: Grégoire Paris <postmaster@greg0ire.fr>
---
I hope I'm getting it right, this is my first time using format-patch and
send-email…
 Documentation/git-init.txt | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/Documentation/git-init.txt b/Documentation/git-init.txt
index 9d27197..7605742 100644
--- a/Documentation/git-init.txt
+++ b/Documentation/git-init.txt
@@ -116,8 +116,8 @@ does not exist, it will be created.
 TEMPLATE DIRECTORY
 ------------------
 
-The template directory contains files and directories that will be copied to
-the `$GIT_DIR` after it is created.
+The template directory contains files and directories whose name do not start
+with a dot will be copied to the `$GIT_DIR` after it is created.
 
 The template directory will be one of the following (in order):
 
-- 
2.9.3
Next: Grégoire PARIS
Message 1 of 2 in “Document dotfiles exclusion on template copy”
  1. Document dotfiles exclusion on template copyGrégoire Paris, Feb 17, 2017
  2. Grégoire PARISFeb 17, 2017

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.