Re: [PATCH] config: Rummage through ~/.gitrc as well as the repository's config.
- From
- Mark Wooding <mdw@distorted.org.uk>
- Date
- Feb 4, 2006, 10:22 UTC
- Message-ID
- <slrndu9042.2i8.mdw@metalzone.distorted.org.uk>
- In-Reply-To
- <7vacd7c4bm.fsf@assigned-by-dhcp.cox.net>
Junio C Hamano <junkio@cox.net> wrote:
Show 7 quoted lines
> Mark Wooding <mdw@distorted.org.uk> 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.
Show 5 quoted lines
>> 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]