aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrégoire Paris <gregoire.paris.greg0ire@gmail.com>2017-02-18 00:37:00 +0100
committerJunio C Hamano <gitster@pobox.com>2017-02-17 15:57:21 -0800
commit133f0a299da937d0a77a19a274c7730b2af5bf9c (patch)
treef3c94ca3e19204a5054acebf048f8cb8588d9ea5
parent3b9e3c2cede15057af3ff8076c45ad5f33829436 (diff)
downloadgit-133f0a299da937d0a77a19a274c7730b2af5bf9c.tar.gz
git-133f0a299da937d0a77a19a274c7730b2af5bf9c.tar.xz
init: document dotfiles exclusion on template copy
Not just . and .., but any path that begins with dot is not copied when copying the template directory to a new repository. You can customize the template directory, copying some dotfiles might make sense, but it's actually a good thing not to, 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, for example. 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> Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rw-r--r--Documentation/git-init.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/Documentation/git-init.txt b/Documentation/git-init.txt
index 9d27197de..3c5a67fb9 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.
+Files and directories in the template directory 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):