Re: Feature request: read git config from parent directory
- From
Duy Nguyen <pclouds@gmail.com>
- Date
- Dec 9, 2016, 12:38 UTC
- Message-ID
- <CACsJy8AgbGXvMC0XWSPuBHEveJfJFEYUgghDC1Yc7Eka1Dyd8Q@mail.gmail.com>
- In-Reply-To
- <3881793.6JIRvg1BPW@ylum>
On Fri, Dec 9, 2016 at 2:49 AM, Dominique Dumont <dod@debian.org> wrote:
Show 7 quoted lines
> Hello > > I use the same machine for work and open-source contribution. In both cases, I > deal with a lot of repositories. Depending on whether I commit for work or > open-source activities, I must use a different mail address. I used to setup > work address for each work repo in git local config, but this is no longer > practical.
Sounds like the same problem I have (and the reason I came up with conditional include [1]). Would that work for you (check out the example part in that patch)?
It's not supported yet. I'll need to address a few comments in the future reroll.
[1] http://public-inbox.org/git/20160712164216.24072-1-pclouds@gmail.com/
> Since I use different directories for work and open-source, would it be > possible for git to read irs config also from parent directories ? I.e. setup > git to read config from ./.git/config then ../.gitconfig, ../../gitconfig until > global ~/.gitconfig.
-- Duy