From: Tuomas Ahola <taahol@utu.fi>
To: Jacob Keller <jacob.e.keller@intel.com>
Cc: <git@vger.kernel.org>, Jacob Keller <jacob.keller@gmail.com>
Subject: Re: [PATCH] describe: bail of --contains --all is used with --exclude or --match
Date: Tue, 19 May 2026 11:35:59 +0300 [thread overview]
Message-ID: <20260519083559.onq6r%taahol@utu.fi> (raw)
In-Reply-To: <20190226215348.5119-1-jacob.e.keller@intel.com>
Jacob Keller <jacob.e.keller@intel.com> wrote:
> From: Jacob Keller <jacob.keller@gmail.com>
>
> If you try to use git describe --contains with --all, the exclude and
> match patterns are silently ignored.
>
> This results in unexpected behavior, as you may try to provide patterns
> and expect it to change the result.
>
I got just bitten by that, and yes, it was quite unexpected.
> Check for this, and have describe die when it encounters this, instead
> of silently ignoring the provided options.
>
> Signed-off-by: Jacob Keller <jacob.keller@gmail.com>
> ---
>
> I just found this while trying to use it, the patterns weren't being applied
> properly.
>
> This is pretty quick/dirty, I haven't had time to write a test, or anything.
>
Would you like to resurrect the patch? It seems it was never merged,
nor the underlying problem fixed:
```
$ git describe --contains --all --match=bogus
master
$ git describe --contains --all --exclude="*"
master
```
> builtin/describe.c | 3 +++
> 1 file changed, 3 insertions(+)
>
> [...]
--Tuomas
prev parent reply other threads:[~2026-05-19 8:36 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-02-26 21:53 [PATCH] describe: bail of --contains --all is used with --exclude or --match Jacob Keller
2019-02-26 23:34 ` Eric Sunshine
2026-05-19 8:35 ` Tuomas Ahola [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260519083559.onq6r%taahol@utu.fi \
--to=taahol@utu.fi \
--cc=git@vger.kernel.org \
--cc=jacob.e.keller@intel.com \
--cc=jacob.keller@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox