On 08/05/2011 05:02 PM, Junio C Hamano wrote: > Michael Haggerty <mhagger@xxxxxxxxxxxx> writes: > >> If I understand you correctly, the use of some API routines requires a >> chdir by the caller (i.e., the surrounding application) *before* calling >> into the routine. This is certainly a bit cleaner than the library >> chdiring itself, but it is still unusable in a multithreaded context. > > Why? > > Presumably you know what your threads are doing, so if you take input from > the end user after you started the environment, you will be doing the > prefix discovery and pathspec prefixing on the entry and prefix stripping > upon output but do not have to (and should not be doing) chdir at all. I must have misunderstood your earlier message. Indeed, if none of the git functions that one would want to libify require that CWD==project root, then all is OK. Michael -- Michael Haggerty mhagger@xxxxxxxxxxxx http://softwareswirl.blogspot.com/ -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html