Policy on global variables

Eric Wong normalperson at yhbt.net
Thu Jan 16 01:59:12 CET 2014


"Jason A. Donenfeld" <Jason at zx2c4.com> wrote:
> In theory, passing around the variable, and not relying on a global,
> is better. It allows us at somepoint to have multiple contexts, for,
> say, implementing FastCGI or an event loop single-process multi
> response model.

This.  I prefer we keep passing around the ctx variable to keep the code
more flexible for future reuse.  Of course, IIRC git itself has this
limitation, too...


More information about the CGit mailing list