Re: [RFC 0/2] grep: make output consistent with revision syntax
- From
Jeff King <peff@peff.net>
- Date
- Jan 20, 2017, 14:32 UTC
- Message-ID
- <20170120143230.t4wwzp3ubigwupgq@sigill.intra.peff.net>
- In-Reply-To
- <20170120141832.GE17499@stefanha-x1.localdomain>
On Fri, Jan 20, 2017 at 02:18:32PM +0000, Stefan Hajnoczi wrote:
Show 9 quoted lines
> > Are there cases you know that aren't covered by your patches?
>
> From Patch 2/2:
>
> This patch does not cope with @{1979-02-26 18:30:00} syntax and treats
> it as a path because it contains colons.
>
> If we use obj->type instead of re-parsing the name then that problem is
> solved.Ah, right. I somehow totally missed that, and blindly assumed your colon search was only at the end. But of course that wouldn't work at all (it would miss "v2.9.3:t").
So yes, definitely it should be checking the object type.
-Peff