Re: [RFC 4/6] git-check-attr: Normalize paths
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Aug 5, 2011, 15:02 UTC
- Message-ID
- <7vaabn52bb.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <4E3B8CAA.4030002@alum.mit.edu>
Michael Haggerty <mhagger@alum.mit.edu> 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.