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

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

From
Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Date
Dec 20, 2022, 14:33 UTC
Message-ID
<221220.86sfhaw3c3.gmgdl@evledraar.gmail.com>
In-Reply-To
<pull.1446.git.1671546459151.gitgitgadget@gmail.com>
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().
Previous: William Sprent via GitGitGadgetNext: William Sprent
Message 2 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.