From: William Sprent Date: Wed, 21 Dec 2022 12:51:46 GMT Subject: Re: [PATCH] dir: check for single file cone patterns Message-ID: <8c9650b7-8e36-909c-c193-2f6713427e57@unity3d.com> In-Reply-To: <221220.86sfhaw3c3.gmgdl@evledraar.gmail.com> On 20/12/2022 15.33, Ævar Arnfjörð Bjarmason wrote: > > On Tue, Dec 20 2022, William Sprent via GitGitGadget wrote: > >> From: William Sprent >> [...] >> + if (!(given->flags & PATTERN_FLAG_MUSTBEDIR) && >> + !!strcmp(given->pattern, "/*")) { > > Style: We use !! to convert 123 to 1 or whatever, but here we just care > about "not matched", so we can drop this !!strcmp() for strcmp(). Thanks. I'll drop the '!!' for next version.