From: Jonathan Nieder Date: Wed, 11 Dec 2013 01:53:14 GMT Subject: Re: static variables Message-ID: <20131211015314.GJ2311@google.com> In-Reply-To: <20131211014501.GI2311@google.com> Jonathan Nieder wrote: > Stefan Zager wrote: >> This is probably a naive question, but: there are quite a lot of static >> variables in the git code where it's really unnecessary. Is that just a >> historical artifact, or is there some reason to prefer them? > > Sometimes it's for convenience. See for example path.c::git_path and mkpath. Threaded code uses a specialized thread-safe dialect of the usual C used in git. I wish I had better news to offer.