Re: ~/.git/config ?
- From
- Timo Hirvonen <tihirvon@gmail.com>
- Date
- May 26, 2006, 16:33 UTC
- Message-ID
- <20060526193325.d2a530a4.tihirvon@gmail.com>
- In-Reply-To
- <20060526152837.GQ23852@progsoc.uts.edu.au>
Anand Kumria <wildfire@progsoc.uts.edu.au> wrote:
Show 18 quoted lines
> Hi, > > git is unable to construct a reasonable default email address in my > current environment. So, I use GIT_AUTHOR_EMAIL and GIT_COMMITTER_EMAIL > to override things. > > This has worked well but, now, I need to vary the email address for some > repositories. Unfortunately the environment variables override > .git/config. > > It would be good if things were like: > - try to construct one automagically > - use ~/.git/config (if available) > - use .git/config > - use environment variables > > That way I could set my default email address in ~/.git/config and > override it as required for those repositories that need it.
I backup my $HOME using git, so there's a .git directory in ~. I don't think a global config file is really needed but it would be nice if .git/config would override the environment variables, not the other way around.
-- http://onion.dynserv.net/~timo/