From: Junio C Hamano Date: Wed, 16 Sep 2026 16:07:27 GMT Subject: Re: [PATCH v4 0/2] dir: fix pathspec prefixes with exclusions Message-ID: In-Reply-To: <7CB757FB-1F2D-4EE6-8C31-8C2CD6D42397@ytausch.de> Yannik Tausch writes: > Pathspec prefix optimization must account for exclude items separately. > The prefix is derived from non-exclude items, so applying it while > matching an exclude item can compare the wrong portions of the paths. > Conversely, an exclude item at the start of the pathspec currently > prevents finding a common prefix among the remaining items. > ... > Yannik Tausch (2): > dir: do not apply prefix to negative pathspecs > dir: preserve pathspec prefix optimization with leading excludes Thnaks. This round looks ready for 'next'.