git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Josh Sharpe <josh.m.sharpe@gmail.com>
To: git@vger.kernel.org
Subject: feature request - have git honor nested .gitconfig files
Date: Fri, 22 Mar 2013 12:50:07 -0400	[thread overview]
Message-ID: <CAM2RUGOOWnxRd2=04-NmKTC+tvnCD=ebgmmiexHas5bwyYrm4w@mail.gmail.com> (raw)

It'd be cool if I were able to override config settings at every
nested directory.

For example, I have my ~/.gitconfig that has one email address in it,
but I also have multiple repos inside ~/dev which I want to use a
different email address for.  The only way to do that now is to edit
all of these: ~/dev/*/.git/conf -- and there are lots of them, and new
repos get added all the time - and I forget.

If I could add ~/dev/.gitconfig and have the settings in that override
~/.gitconfig then this would be way more manageable.  Obviously,
individual repo's .git/config should take ultimate precedence.

Thanks for the consideration!

             reply	other threads:[~2013-03-22 16:50 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-22 16:50 Josh Sharpe [this message]
2013-03-22 18:22 ` feature request - have git honor nested .gitconfig files Jonathan Nieder
2013-03-22 18:33   ` Jeff King
2013-03-23  0:06     ` Jonathan Nieder
2013-03-23  8:03       ` Jeff King
2013-03-24  7:14         ` Junio C Hamano
2013-03-23  6:15     ` Thomas Rast
2013-03-23  8:06       ` Jeff King

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAM2RUGOOWnxRd2=04-NmKTC+tvnCD=ebgmmiexHas5bwyYrm4w@mail.gmail.com' \
    --to=josh.m.sharpe@gmail.com \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).