Skip to contentSkip to conversation

Update git-init-db(1) and documentation of core.sharedRepository

PATCH In review Jonas Fonseca 2 participants 2 messages Jun 15, 2016 Documentation

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Update git-init-db(1) and documentation of core.sharedRepository

Combine option descriptions in git-init-db(1). Reflect the changes to additionally allow all users to read the created git repository.

---

I noticed that the git-init-db(1) --template description says: "The default template directory is /usr/share/git-core/templates", which makes me wonder if we should substitute these hard-coded paths when installing the man pages ...

   $ sed \
	-e 's#/usr/share/git-core/templates#$(template_dir)#'
	... etc ...

... at least git-clone(1) also hard-codes this path.

 Documentation/config.txt      |    9 +++++--
 Documentation/git-init-db.txt |   51 ++++++++++++++++++++++++++++-------------
 2 files changed, 41 insertions(+), 19 deletions(-)
Documentation/config.txt +6 -3
index d89916b..4de7d72 100644
@@ -83,9 +83,12 @@ core.repositoryFormatVersion::
 	version.
 
 core.sharedRepository::
-	If true, the repository is made shareable between several users
-	in a group (making sure all the files and objects are group-writable).
-	See gitlink:git-init-db[1]. False by default.
+	When 'group' (or 'true'), the repository is made shareable between
+	several users in a group (making sure all the files and objects are
+	group-writable). When 'all' (or 'world' or 'everybody'), the
+	repository will be readable by all users, additionally to being
+	group-shareable. When 'umask' (or 'false'), git will use permissions
+	reported by umask(2). See gitlink:git-init-db[1]. False by default.
 
 core.warnAmbiguousRefs::
 	If true, git will warn you if the ref name you passed it is ambiguous
Documentation/git-init-db.txt +35 -16

75 lines not on this page · raw message

Signature · 1 line
Jonas Fonseca
#1 lore raw
Quoted 2 lines · Jonas Fonseca

Combine option descriptions in git-init-db(1). Reflect the changes to additionally allow all users to read the created git repository.

Thanks.

Quoted 4 lines

I noticed that the git-init-db(1) --template description says: "The default template directory is /usr/share/git-core/templates", which makes me wonder if we should substitute these hard-coded paths when installing the man pages ...

While it would be nicer, I do not think it is worth it. After all it says "The default..." -- if a particular installation is not using the default location, I expect that the users are clever enough to adjust the reading of it.