From: Junio C Hamano <junkio@cox.net>
To: Linus Torvalds <torvalds@osdl.org>
Cc: git@vger.kernel.org
Subject: Re: Teach "approxidate" about weekday syntax
Date: Thu, 17 Nov 2005 14:54:40 -0800 [thread overview]
Message-ID: <7v1x1eubpr.fsf@assigned-by-dhcp.cox.net> (raw)
In-Reply-To: <Pine.LNX.4.64.0511171223110.13959@g5.osdl.org> (Linus Torvalds's message of "Thu, 17 Nov 2005 12:36:30 -0800 (PST)")
Linus Torvalds <torvalds@osdl.org> 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.
next prev parent reply other threads:[~2005-11-17 22:54 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-11-17 20:36 Teach "approxidate" about weekday syntax Linus Torvalds
2005-11-17 21:27 ` Nicolas Pitre
2005-11-17 21:44 ` Johannes Schindelin
2005-11-17 22:54 ` Junio C Hamano [this message]
2005-11-17 23:18 ` Linus Torvalds
2005-11-17 23:23 ` Linus Torvalds
2005-11-18 12:12 ` David Roundy
2005-11-18 13:20 ` Johannes Schindelin
2005-11-18 16:08 ` Randy.Dunlap
2005-11-18 17:00 ` Linus Torvalds
2005-11-19 0:00 ` Junio C Hamano
2005-11-19 0:07 ` Andreas Ericsson
2005-11-19 0:28 ` Randal L. Schwartz
2005-11-19 0:48 ` Linus Torvalds
2005-11-18 18:07 ` Matthias Urlichs
2005-11-20 23:36 ` Johannes Schindelin
2005-11-18 18:08 ` H. Peter Anvin
2005-11-18 16:56 ` Linus Torvalds
2005-11-18 17:26 ` Andreas Ericsson
2005-11-18 17:33 ` Linus Torvalds
2005-11-17 23:32 ` Johannes Schindelin
2005-11-18 1:40 ` Martin Langhoff
2005-11-18 2:38 ` Linus Torvalds
2005-11-18 2:53 ` Johannes Schindelin
2005-11-17 23:18 ` H. Peter Anvin
2005-11-17 23:30 ` Linus Torvalds
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7v1x1eubpr.fsf@assigned-by-dhcp.cox.net \
--to=junkio@cox.net \
--cc=git@vger.kernel.org \
--cc=torvalds@osdl.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).