git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git commit --date format
@ 2015-04-13 15:42 乙酸鋰
  2015-04-14 17:10 ` Junio C Hamano
  0 siblings, 1 reply; 2+ messages in thread
From: 乙酸鋰 @ 2015-04-13 15:42 UTC (permalink / raw)
  To: git

Hi,

In git < 2.0, git commit --amend --date="" can amend commit with
current time as author time.
But since git 2.0, this does not work, dying with "invalid date format".
I have to instead type git commit --amend --date="now".
Is empty string date format no longer supported? Or will be fixed?

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: git commit --date format
  2015-04-13 15:42 git commit --date format 乙酸鋰
@ 2015-04-14 17:10 ` Junio C Hamano
  0 siblings, 0 replies; 2+ messages in thread
From: Junio C Hamano @ 2015-04-14 17:10 UTC (permalink / raw)
  To: 乙酸鋰; +Cc: git

乙酸鋰 <ch3cooli@gmail.com> writes:

> Hi,
>
> In git < 2.0, git commit --amend --date="" can amend commit with
> current time as author time.
> But since git 2.0, this does not work, dying with "invalid date format".
> I have to instead type git commit --amend --date="now".
> Is empty string date format no longer supported? Or will be fixed?

I think this was a fix to the overly loose parser which took any
typo (including an empty string, e.g. --date="$prevuois" that
misspels the name of a shell variable that has the timestamp) as
"now".

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-04-14 17:11 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-04-13 15:42 git commit --date format 乙酸鋰
2015-04-14 17:10 ` Junio C Hamano

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).