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

Re: Multiple paths in GIT_EXEC_PATH

From
Dennis Kaarsemaker <dennis@kaarsemaker.net>
Date
Oct 24, 2017, 20:12 UTC
Message-ID
<1508875952.2750.35.camel@kaarsemaker.net>
In-Reply-To
<CA+A=rXEyQ4aQL=p55f_+kbbrnDyDr9ULSq9gqBE2YE9y6+oJ3w@mail.gmail.com>
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.
Previous: Junio C Hamano
Message 4 of 4 in “Multiple paths in GIT_EXEC_PATH”
  1. Nikolay YakimovOct 17, 2017
  2. Kevin DaudtOct 17, 2017
  3. Junio C HamanoOct 17, 2017
  4. Dennis KaarsemakerOct 24, 2017

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.