git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] config: Rummage through ~/.gitrc as well as the repository's config.

From
MWMark 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]
Previous: Junio C HamanoNext: Junio C Hamano
Message 3 of 4 in “config: Rummage through ~/.gitrc as well as the repository's config.”
  1. config: Rummage through ~/.gitrc as well as the repository's config.Mark Wooding, Feb 3, 2006
  2. Junio C HamanoFeb 4, 2006
  3. Mark WoodingFeb 4, 2006
  4. Junio C HamanoFeb 4, 2006

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.