From: Lidong Yan Date: Wed, 02 Jul 2025 07:14:26 GMT Subject: Re: [PATCH 2/2] bloom: enable multiple pathspec bloom keys Message-ID: In-Reply-To: Junio C Hamano writes: > > I do not know about icase; though. Asking about "Dir/Path" and > getting "Dir/ or Dir/Path cannot possibly be in the set of paths > that were modified" from the changed-path Bloom filter would not > help us optimize the tree comparison out, when we do not want to > miss modifications for "dir/path". Make sense, both PATHSPEC_EXCLUDE and PATHSPEC_ICASE shouldn’t be optimized by bloom filter. I found that my [PATCH v3 2/2] contains two unaligned parameters. Should I reroll this patch and introduce the nowildcard_len change in a separate commit? > >> Here;s are all possible pathspec magic >> #define PATHSPEC_FROMTOP (1<<0) >> #define PATHSPEC_MAXDEPTH (1<<1) >> #define PATHSPEC_LITERAL (1<<2) >> #define PATHSPEC_GLOB (1<<3) >> #define PATHSPEC_ICASE (1<<4) >> #define PATHSPEC_EXCLUDE (1<<5) >> #define PATHSPEC_ATTR (1<<6)