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

Re: config-file includes

From
Junio C Hamano <gitster@pobox.com>
Date
Sep 26, 2011, 21:12 UTC
Message-ID
<7vmxdr100n.fsf@alter.siamese.dyndns.org>
In-Reply-To
<20110926200553.GA492@sigill.intra.peff.net>
Jeff King <peff@peff.net> writes:
Show 7 quoted lines
> We could allow arbitrary shell code like:
>
>   [include-if "test `uname -s` -eq Darwin"]
>
> Very flexible, though it makes me think we are getting a little
> overboard.  And it's an extra shell invocation whenever we read the
> config, which is ugly.

Let's not go there. It is not even like we only ever call git_config() once in the lifetime of a process.

Previous: Jeff KingNext: Jay Soffian
Message 6 of 8 in “config-file includes”
  1. Jeff KingSep 23, 2011
  2. Nguyen Thai Ngoc DuySep 26, 2011
  3. Jeff KingSep 26, 2011
  4. David AguilarSep 26, 2011
  5. Jeff KingSep 26, 2011
  6. Junio C HamanoSep 26, 2011
  7. Jay SoffianSep 27, 2011
  8. Jeff KingSep 27, 2011

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.