* Repository specific config file
@ 2007-10-07 8:37 Pekka Riikonen
2007-10-07 16:06 ` Johannes Schindelin
0 siblings, 1 reply; 2+ messages in thread
From: Pekka Riikonen @ 2007-10-07 8:37 UTC (permalink / raw)
To: git
Hello,
Has there been any discussion or considerations adding a repository
specific config file that would be delivered to all cloned repositories
automatically? This would allow the publisher of the repository to set up
some default settings to all developers cloning the repository. This
could be useful to set up things like default aliases to ease up the work,
to set that all remote branches are tracked, to list the configurations of
submodules (so that people don't have to run submodule init), etc.
User should still be able to add configurations that overlap with the
remote configuration and user should be able to ignore everything that
came from the parent. Using ~/.gitconfig and /etc/gitconfig doesn't
always work well when the developers don't have access to the remote
machine (other than to clone the repository). Maybe the simplest solution
would be to just add .gitconfig to the repository itself.
Pekka
________________________________________________________________________
Pekka Riikonen priikone at silcnet.org
Secure Internet Live Conferencing (SILC) http://silcnet.org/
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Repository specific config file
2007-10-07 8:37 Repository specific config file Pekka Riikonen
@ 2007-10-07 16:06 ` Johannes Schindelin
0 siblings, 0 replies; 2+ messages in thread
From: Johannes Schindelin @ 2007-10-07 16:06 UTC (permalink / raw)
To: Pekka Riikonen; +Cc: git
Hi,
On Sun, 7 Oct 2007, Pekka Riikonen wrote:
> Has there been any discussion or considerations adding a repository
> specific config file that would be delivered to all cloned repositories
> automatically? This would allow the publisher of the repository to set
> up some default settings to all developers cloning the repository.
Sure! Just check in the file "gitconfig" and tell the good users that
they can append it to their config with "cat gitconfig >> .git/config".
Or have a script "gitconfig.sh" containing calls to "git config" which the
users can execute.
But you should not _force_ people to have a certain config. It's their
choice.
Ciao,
Dscho
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-10-07 16:07 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-07 8:37 Repository specific config file Pekka Riikonen
2007-10-07 16:06 ` Johannes Schindelin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).