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

Re: cgit and global configuration

From
Jeff King <peff@peff.net>
Date
Oct 25, 2019, 21:24 UTC
Message-ID
<20191025212424.GB25625@sigill.intra.peff.net>
In-Reply-To
<20191025181015.50bf2b92@leda>
On Fri, Oct 25, 2019 at 06:10:15PM +0200, Christian Hesse wrote:
Show 6 quoted lines
> We decided to go another way and introduced a constructor function which does
> initial environment setup:
> 
> https://git.zx2c4.com/cgit/commit/?id=034e3c7d56ba71ce281886fe8525b16d4559fac1
> 
> Everything (including tests) is happy with that.

Thanks for following up. I think that should be a fine solution. We'd perhaps have considered using __attribute__((constructor)) ourselves (which would presumably have a non-deterministic run order), but it's not sufficiently portable for our purposes. So I don't think you'll run into any issues going forward with that approach.

-Peff
Previous: Christian Hesse
Message 6 of 6 in “cgit and global configuration”
  1. Christian HesseJun 11, 2019
  2. Junio C HamanoJun 11, 2019
  3. Jeff HostetlerJun 11, 2019
  4. Jeff KingJun 12, 2019
  5. Christian HesseOct 25, 2019
  6. Jeff KingOct 25, 2019

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.