{"thread":{"id":"45171","subject":"[PATCH] Document dotfiles exclusion on template copy","startedAt":"2017-02-17T23:37:29Z","lastAt":"2017-02-17T23:59:56Z","messageCount":2,"participants":["Grégoire Paris","Junio C Hamano"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"311981","messageId":"20170217233700.14643-1-postmaster@greg0ire.fr","threadId":"45171","inReplyTo":null,"subject":"[PATCH] Document dotfiles exclusion on template copy","fromName":"Grégoire Paris","fromEmail":"gregoire.paris.greg0ire@gmail.com","sentAt":"2017-02-17T23:37:00Z","receivedAt":"2017-02-17T23:37:29Z","isPatch":true,"sender":{"key":"gregoire.paris.greg0ire@gmail.com","avatar":null},"body":"Since there is no dotfile in the default template directory, there was\nno point in making the check for . or .. more accurate when copying. Now\nthat you can customize the template directory, it would make sense, but\nit's actually a good thing to at this because you would not want to have\nyour git directory copied in every git directory that is created should\nyou decide to put your template directory under version control. Plus, it\nmight be used as a feature by people who would want to exclude some\nfiles.\n\nSigned-off-by: Grégoire Paris <postmaster@greg0ire.fr>\n---\nHere is a better version.\n Documentation/git-init.txt | 4 ++--\n 1 file changed, 2 insertions(+), 2 deletions(-)\n\ndiff --git a/Documentation/git-init.txt b/Documentation/git-init.txt\nindex 9d27197..3c5a67f 100644\n--- a/Documentation/git-init.txt\n+++ b/Documentation/git-init.txt\n@@ -116,8 +116,8 @@ does not exist, it will be created.\n TEMPLATE DIRECTORY\n ------------------\n \n-The template directory contains files and directories that will be copied to\n-the `$GIT_DIR` after it is created.\n+Files and directories in the template directory whose name do not start with a\n+dot will be copied to the `$GIT_DIR` after it is created.\n \n The template directory will be one of the following (in order):\n \n-- \n2.9.3\n\n"},{"id":"311995","messageId":"xmqqino8nzbf.fsf@gitster.mtv.corp.google.com","threadId":"45171","inReplyTo":"20170217233700.14643-1-postmaster@greg0ire.fr","subject":"Re: [PATCH] Document dotfiles exclusion on template copy","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2017-02-17T23:59:48Z","receivedAt":"2017-02-17T23:59:56Z","isPatch":true,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Thanks, will queue.\n"}]}