git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Global .git directory
@ 2010-04-27  5:14 Gerhard Wiesinger
  2010-04-27  9:59 ` Thomas Rast
  0 siblings, 1 reply; 17+ messages in thread
From: Gerhard Wiesinger @ 2010-04-27  5:14 UTC (permalink / raw)
  To: git

Hello,

I'm new to git and as far as I saw that feature is missing: Placing .git 
directory/repository on a central place for many git repositories. This 
feature ensures that data directories are kept clean from metadata of git.

I know the GIT_DIR environment variable but therefore environment has to 
be set for each repository which is IHMO not practicable. Therefore I 
suggest the following approach (which also overrides GIT_DIR when set):
#  Can be set globally for all users
export GIT_GLOBAL_DIR=$HOME/.git_global

When this environment variable is set git searches the repository in 
$HOME/.git_global/`pwd`
Example:
cd /home/gerhard/myproject
=> /home/gerhard/.git_global/home/gerhard/myproject/.git directory is used
cd /home/gerhard/myproject/subdir
=> /home/gerhard/.git_global/home/gerhard/myproject/.git directory is 
still used, base directory must also be searched for (algorithm must 
already be implemented)

I think this should be easy to implement on a centralized point.

Any feedback is welcome.

Thnx.

Ciao,
Gerhard

--
http://www.wiesinger.com/

^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2010-05-04 16:55 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-27  5:14 Global .git directory Gerhard Wiesinger
2010-04-27  9:59 ` Thomas Rast
2010-04-27 20:06   ` Gerhard Wiesinger
2010-04-27 20:26     ` Erik Faye-Lund
2010-04-28  5:33       ` Gerhard Wiesinger
2010-04-28  6:22         ` Tomas Carnecky
2010-04-28 20:03           ` Gerhard Wiesinger
2010-04-28  8:01         ` Alex Riesen
2010-04-28 20:10           ` Gerhard Wiesinger
2010-04-28 12:50         ` Erik Faye-Lund
2010-04-28 20:22           ` Gerhard Wiesinger
2010-05-04  5:07             ` Gerhard Wiesinger
2010-05-04  5:40               ` Andrew Ruder
2010-05-04  6:02                 ` Andreas Ericsson
2010-05-04  6:07                 ` Gerhard Wiesinger
2010-05-04 16:55                 ` Junio C Hamano
2010-04-27 20:37     ` Jacob Helwig

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).