git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] dir: check for single file cone patterns

From
William Sprent <williams@unity3d.com>
Date
Dec 21, 2022, 12:51 UTC
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:
Show 10 quoted lines
> 
> On Tue, Dec 20 2022, William Sprent via GitGitGadget wrote:
> 
>> From: William Sprent <williams@unity3d.com>
>> [...]
>> +	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.
Previous: Ævar Arnfjörð BjarmasonNext: William Sprent via GitGitGadget
Message 3 of 8 in “dir: check for single file cone patterns”
  1. dir: check for single file cone patternsWilliam Sprent via GitGitGadget, Dec 20, 2022
  2. Ævar Arnfjörð BjarmasonDec 20, 2022
  3. William SprentDec 21, 2022
  4. dir: check for single file cone patternsWilliam Sprent via GitGitGadget, Jan 3, 2023
  5. Junio C HamanoJan 4, 2023
  6. Victoria DyeJan 4, 2023
  7. Junio C HamanoJan 5, 2023
  8. William SprentJan 5, 2023

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.