From: Ævar Arnfjörð Bjarmason Date: Tue, 20 Dec 2022 14:33:51 GMT Subject: Re: [PATCH] dir: check for single file cone patterns Message-ID: <221220.86sfhaw3c3.gmgdl@evledraar.gmail.com> In-Reply-To: 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().