Re: [RFC/PATCH] recognize pathspec magic without "--" disambiguation
- From
Ævar Arnfjörð Bjarmason <avarab@gmail.com>
- Date
- May 27, 2017, 09:54 UTC
- Message-ID
- <CACBZZX6K7ppVB0qYah76_+pjTKjsco3rHT0xRyKtF2H1dS4k_w@mail.gmail.com>
- In-Reply-To
- <20170525152739.t63dbsq2dojy2y2h@sigill.intra.peff.net>
On Thu, May 25, 2017 at 5:27 PM, Jeff King <peff@peff.net> wrote:
> git log :/foo.*bar
Another option would be to deprecate the :/rx syntax over some period in favor of ^{/rx}.
I think it's too ugly to live, and really useless. It's equivalent to "--grep=<rx> --all". Does anyone use this and not really mean to use ^{/rx}? E.g. "git show :/fix" might show a fix on some unrelated branch you recently rebased.
> will be treated as a pathspec (if it doesn't match a > commit message) due to the wildcard matching in > 28fcc0b71.
So it might DWYM after hanging there looking at your entire history for a commit message matching foo.*bar? And if you make such a commit it'll start meaning something else entirely?