Re: Teach "approxidate" about weekday syntax
- From
Junio C Hamano <junkio@cox.net>
- Date
- Nov 17, 2005, 22:54 UTC
- Message-ID
- <7v1x1eubpr.fsf@assigned-by-dhcp.cox.net>
- In-Reply-To
- <Pine.LNX.4.64.0511171223110.13959@g5.osdl.org>
Linus Torvalds <torvalds@osdl.org> writes:
Show 10 quoted lines
> ..., you'd have to write it the other way around: > > "last thursday and one day before" > > which is insane (it's usually the same as "last wednesday" _except_ if > today is Thursday, in which case "last wednesday" is yesterday, and "last > thursday and one day before" is eight days ago). > ... > I doubt anybody would ever use insane dates like that, but I thought I'd > point out that the approxidate parsing is not exactly "standard English".
It is not English but Gittish, which is fine, but it somehow reminds me of the funny way users make themselves understood by IF parsers ;-). I am afraid you started small but now are going towards the same insanity of gnudate (it has insane yacc grammar to grok these things), and I suspect we'd better draw a line somewhere.
Show 6 quoted lines
> Side note 2: if you want to avoid spaces (because of quoting issues), you > can use any non-alphanumberic character instead. So > > git log --since=2.days.ago > > works without any quotes.
I think this is a useful change. Thanks.