{"thread":{"id":"2948","subject":"[PATCH] git-init-db(1): Describe --shared and the idempotent nature of init-db","startedAt":"2005-12-31T17:30:25Z","lastAt":"2005-12-31T17:30:25Z","messageCount":1,"participants":["Jonas Fonseca"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"14113","messageId":"20051231173025.GA30134@diku.dk","threadId":"2948","inReplyTo":null,"subject":"[PATCH] git-init-db(1): Describe --shared and the idempotent nature of init-db","fromName":"Jonas Fonseca","fromEmail":"fonseca@diku.dk","sentAt":"2005-12-31T17:30:25Z","receivedAt":"2005-12-31T17:30:25Z","isPatch":true,"sender":{"key":"fonseca@diku.dk","avatar":"https://gravatar.com/avatar/f82f3ad698717c51873b020c750a92438c820a24056dc39fe4d07baa10a92264?d=mp&s=160"},"body":"Based on the recent discussion on the mailing list.\n\nSigned-off-by: Jonas Fonseca <fonseca@diku.dk>\n\n---\ncommit dbad4968a3d1f518e5102a241196380ba0bcce75\ntree f8f0d7ed79046ec316d26b0ba84034b571416533\nparent 58e3fb40f7ca1c28f9105c15166884f80bb22e55\nauthor Jonas Fonseca <fonseca@diku.dk> Sat, 31 Dec 2005 18:06:33 +0100\ncommitter Jonas Fonseca <fonseca@antimatter.localdomain> Sat, 31 Dec 2005 18:06:33 +0100\n\n Documentation/git-init-db.txt |   16 ++++++++++++++--\n 1 files changed, 14 insertions(+), 2 deletions(-)\n\ndiff --git a/Documentation/git-init-db.txt b/Documentation/git-init-db.txt\nindex 6deef92..9cf9499 100644\n--- a/Documentation/git-init-db.txt\n+++ b/Documentation/git-init-db.txt\n@@ -8,7 +8,7 @@ git-init-db - Creates an empty git repos\n \n SYNOPSIS\n --------\n-'git-init-db' [--template=<template_directory>]\n+'git-init-db' [--template=<template_directory>] [--shared]\n \n \n OPTIONS\n@@ -16,6 +16,9 @@ OPTIONS\n --template=<template_directory>::\n \tProvide the directory in from which templates will be used.\n \n+--shared::\n+\tSpecify that the git repository is to be shared amongst several users.\n+\n \n DESCRIPTION\n -----------\n@@ -30,7 +33,16 @@ If the object storage directory is speci\n environment variable then the sha1 directories are created underneath -\n otherwise the default `$GIT_DIR/objects` directory is used.\n \n-`git-init-db` won't hurt an existing repository.\n+A shared repository allows users belonging to the same group to push into that\n+repository. When specifying `--shared` the config variable \"core.sharedRepository\" \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+\n \n \n EXAMPLES\n-- \nJonas Fonseca\n"}]}