Policy on global variables

John Keeping john at keeping.me.uk
Thu Jan 16 22:34:24 CET 2014

On Thu, Jan 16, 2014 at 10:26:08PM +0100, Jason A. Donenfeld wrote:
> On Thu, Jan 16, 2014 at 10:21 PM, John Keeping <john at keeping.me.uk> wrote:
> > The first step in this direction may actually be useful even if we stick
> > with embedding libgit.a.
> So what do you think ought to be done with the global-ctx patch? Merge
> it, and then refactor afterward (whenever we "step in this
> direction"), to get rid of the global? Or use what we have now
> (without the patch) as a starting point for gradually getting rid of
> the global?

I'm not sure it makes much difference either way.  Even if we use
libgit2, providing we're not processing more than one request at once we
can still use a global cgit_context.

More information about the CGit mailing list