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

Re: [PATCH] describe: bail of --contains --all is used with --exclude or --match

From
Eric Sunshine <sunshine@sunshineco.com>
Date
Feb 26, 2019, 23:34 UTC
Message-ID
<CAPig+cR8n05zvzxFnbyGm08hEHTTTozzGY1DTE1SvDxsuPPTfw@mail.gmail.com>
In-Reply-To
<20190226215348.5119-1-jacob.e.keller@intel.com>
On Tue, Feb 26, 2019 at 4:54 PM Jacob Keller <jacob.e.keller@intel.com> wrote:
> describe: bail of --contains --all is used with --exclude or --match
s/of/if/
Show 10 quoted lines
> Signed-off-by: Jacob Keller <jacob.keller@gmail.com>
> ---
> diff --git a/builtin/describe.c b/builtin/describe.c
> @@ -589,6 +589,9 @@ int cmd_describe(int argc, const char **argv, const char *prefix)
>                         for_each_string_list_item(item, &exclude_patterns)
>                                 argv_array_pushf(&args, "--exclude=refs/tags/%s", item->string);
> +               } else {
> +                       if (patterns.nr || exclude_patterns.nr)
> +                               die(_("--contains with --all does not support --match or --exclude"));
>                 }
Could be folded into an 'else if':
    } else if (patterns.nr || exclude_patterns.nr) {
        die(...);
    }
but not worth a re-roll.
Previous: Jacob KellerNext: Tuomas Ahola
Message 2 of 4 in “describe: bail of --contains --all is used with --exclude or --match”
  1. describe: bail of --contains --all is used with --exclude or --matchJacob Keller, Feb 26, 2019
  2. Eric SunshineFeb 26, 2019
  3. Tuomas AholaMay 19, 2026
  4. Jacob KellerMay 28, 2026

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.