[prev in list] [next in list] [prev in thread] [next in thread] 

List:       git
Subject:    Re: Multiple paths in GIT_EXEC_PATH
From:       Dennis Kaarsemaker <dennis () kaarsemaker ! net>
Date:       2017-10-24 20:12:32
Message-ID: 1508875952.2750.35.camel () kaarsemaker ! net
[Download RAW message or body]

On Tue, 2017-10-17 at 18:21 +0300, Nikolay Yakimov wrote:
> For why I need that is another matter. Long story short, I need git to
> look for '.gitignore' in a particular non-standard location, since I
> have multiple git repositories in the same workdir (that workdir being
> $HOME and git repositories being stores for my different configs)

That is solvable without needing multiple directories in
$GIT_EXEC_PATH. vcsh, which also solves the 'multiple repos with same
workdir' problem in a very thin wrapper around git, does this by
setting core.excludesfile in the per repo config to a unique path.

hurricane:~$ vcsh dotfiles config core.excludesfile
.gitignore.d/dotfiles
hurricane:~$ vcsh secrets config core.excludesfile
.gitignore.d/secrets

D.
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic