{"thread":{"id":"3661","subject":"[PATCH] Document the default source of template files.","startedAt":"2006-03-18T00:24:49Z","lastAt":"2006-03-18T00:24:49Z","messageCount":1,"participants":["Jon Loeliger"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"17629","messageId":"E1FKPFR-00061z-Jh@jdl.com","threadId":"3661","inReplyTo":null,"subject":"[PATCH] Document the default source of template files.","fromName":"Jon Loeliger","fromEmail":"jdl@jdl.com","sentAt":"2006-03-18T00:24:49Z","receivedAt":"2006-03-18T00:24:49Z","isPatch":true,"sender":{"key":"jdl@jdl.com","avatar":"https://gravatar.com/avatar/75ce9a10b151acd2c28ec4ab2136dba7b2ff1634530bd04b155981a749d08a64?d=mp&s=160"},"body":"\nAlso explain a bit more about how the template option works.\n\nSigned-off-by: Jon Loeliger <jdl@jdl.com>\n\n\n---\n\n Documentation/git-init-db.txt |   18 +++++++++++++-----\n 1 files changed, 13 insertions(+), 5 deletions(-)\n\nd86b69902d855748ff636d2debbf9524c6f09c04\ndiff --git a/Documentation/git-init-db.txt b/Documentation/git-init-db.txt\nindex ea4d849..aeb1115 100644\n--- a/Documentation/git-init-db.txt\n+++ b/Documentation/git-init-db.txt\n@@ -14,7 +14,8 @@ SYNOPSIS\n OPTIONS\n -------\n --template=<template_directory>::\n-\tProvide the directory in from which templates will be used.\n+\tProvide the directory from which templates will be used.\n+\tThe default template directory is `/usr/share/git-core/templates`.\n \n --shared::\n \tSpecify that the git repository is to be shared amongst several users.\n@@ -22,9 +23,17 @@ OPTIONS\n \n DESCRIPTION\n -----------\n-This simply creates an empty git repository - basically a `.git` directory\n-and `.git/object/??/`, `.git/refs/heads` and `.git/refs/tags` directories,\n-and links `.git/HEAD` symbolically to `.git/refs/heads/master`.\n+This command creates an empty git repository - basically a `.git` directory\n+with subdirectories for `objects`, `refs/heads`, `refs/tags`, and\n+templated files.\n+An initial `HEAD` file that references the HEAD of the master branch\n+is also created.\n+\n+If `--template=<template_directory>` is specified, `<template_directory>`\n+is used as the source of the template files rather than the default.\n+The template files include some directory structure, some suggested\n+\"exclude patterns\", and copies of non-executing \"hook\" files.  The\n+suggested patterns and hook files are all modifiable and extensible.\n \n If the `$GIT_DIR` environment variable is set then it specifies a path\n to use instead of `./.git` for the base of the repository.\n@@ -38,7 +47,6 @@ repository. When specifying `--shared` t\n is set to 'true' so that directories under `$GIT_DIR` are made group writable\n (and g+sx, since the git group may be not the primary group of all users).\n \n-\n Running `git-init-db` in an existing repository is safe. It will not overwrite\n things that are already there. The primary reason for rerunning `git-init-db`\n is to pick up newly added templates.\n-- \n1.2.4.gdd7be\n"}]}