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

Re: How should git-config include.path option work in ~/.gitconfig file?

From
Junio C Hamano <gitster@pobox.com>
Date
Jun 23, 2014, 17:36 UTC
Message-ID
<xmqqegyfcyuo.fsf@gitster.dls.corp.google.com>
In-Reply-To
<20140621100803.GB16599@sigill.intra.peff.net>
Jeff King <peff@peff.net> writes:
Show 12 quoted lines
> ... Recently we discussed supporting environment
> variables in expansions of path-oriented config variables. So something
> like:
>
>   [include]
>   path = $GIT_DIR/../.gitremotes
>
> would do what you want. We'd have to give some thought on what that
> should do when $GIT_DIR is not set (e.g., when you run a git command
> outside of a repository). I'd be inclined to say that such an include
> should be ignored (the naive shell interpretation would be to look for
> "/../.gitremotes", which is almost certainly not what the user wants).

I agree with everything in the above paragraph. Thanks for forwarding.

Previous: Jeff KingNext: Jeff King
Message 2 of 3 in “Re: How should git-config include.path option work in ~/.gitconfig file?”
  1. Jeff KingJun 21, 2014
  2. Junio C HamanoJun 23, 2014
  3. Jeff KingJun 23, 2014

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.