[RFD] use approxidate for "git commit --date=xyz"?
- From
Linus Torvalds <torvalds@linux-foundation.org>
- Date
- Apr 30, 2014, 21:09 UTC
- Message-ID
- <CA+55aFx=LizEyS6hq=av_qwRZuu_q3xPSXO-Jr4CAfXqaAuUtA@mail.gmail.com>
I just got a comment saying that
git commit --amend --date=now
doesn't work. I replied that you can use
--date="$(date)"
but I do wonder if we should accept the approxidate format - we do in other equivalent places. Hmm?
The code uses fmt_ident(), which uses parse_date(), which in turn uses parse_date_basic(). Maybe parse_date() could use "approxidate_careful()" instead of "parse_date_basic()"?
Linus