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