Thread (17 messages) flat view 17 messages, 9 authors, 2016-06-15

Re: Teach "approxidate" about weekday syntax

From: Junio C Hamano <hidden>
Date: 2016-06-15 22:42:12

Possibly related (same subject, not in this thread)

Linus Torvalds [off-list ref] writes:
..., 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.
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.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help