From: Junio C Hamano Date: Tue, 15 Nov 2011 16:27:04 GMT Subject: Re: [PATCH 3/5] sequencer: sequencer state is useless without todo Message-ID: <7v7h31wduv.fsf@alter.siamese.dyndns.org> In-Reply-To: <20111115095225.GB23139@elie.hsd1.il.comcast.net> Jonathan Nieder writes: > Ramkumar Ramachandra wrote: > >> Yeah, git_path() writes to one of the four static buffers in >> path.c:get_pathname(). Which brings me to: what should (can) we do >> about it? > > Just use a sane idiom. Which means: as few git_path() values in > flight at a time as possible. > > In other words, do not save the git_path() result in a variable, but > pass it directly to whatever computation needs to use it. Or perhaps http://thread.gmane.org/gmane.comp.version-control.git/184963/focus=185436