From: Mark Wooding Date: Sat, 04 Feb 2006 10:22:58 GMT Subject: Re: [PATCH] config: Rummage through ~/.gitrc as well as the repository's config. Message-ID: In-Reply-To: <7vacd7c4bm.fsf@assigned-by-dhcp.cox.net> Junio C Hamano wrote: > Mark Wooding writes: > >> I'm fed up of setting user.email in every repository I own. > > That is what --template-dir to init-db is for (it works in an > already initialized git repository, but it does not overwrite > files). Except that git-clone has already made a .git/config file, so it won't be overwritten by git-init-db --template-dir. git-init-db doesn't do merging of config file lines, and rightly so -- it'd just get too confusing. >> I want to put this somewhere central, and I shouldn't have to >> log in again to make it take effect. > > I do not understand about logging in again. If you are talking > about environment variables, ". ~/.env" would work nicely. Argh. In every terminal and screen window, restart Emacs, ... Logging out looks like the better plan. What's the objection to a ~/.gitrc? (If it's just new-feature resistance, I can live with that; I'm just interested.) -- [mdw]