Re: [PATCH] gitignore: warn about pointless syntax
- From
Jeff King <peff@peff.net>
- Date
- Jan 9, 2012, 16:28 UTC
- Message-ID
- <20120109162802.GA2374@sigill.intra.peff.net>
- In-Reply-To
- <1326123647-18352-2-git-send-email-jengelh@medozas.de>
On Mon, Jan 09, 2012 at 04:40:47PM +0100, Jan Engelhardt wrote:
Show 7 quoted lines
> +static inline void check_bogus_wildcard(const char *file, const char *p)
> +{
> + if (strstr(p, "**") == NULL)
> + return;
> + warning(_("Pattern \"%s\" from file \"%s\": Double asterisk does not "
> + "have a special meaning and is interpreted just like a single "
> + "asterisk.\n"), file, p);Wouldn't this also match the meaningful "foo\**"?
-Peff