From: Junio C Hamano <gitster@pobox•com>
To: 乙酸鋰 <ch3cooli@gmail•com>
Cc: git <git@vger•kernel.org>
Subject: Re: git commit --date format
Date: Tue, 14 Apr 2015 10:10:59 -0700 [thread overview]
Message-ID: <xmqqoamq3aak.fsf@gitster.dls.corp.google.com> (raw)
In-Reply-To: <CAHtLG6SPqoZJ+bc6eaHEAkEN9VAwuq+hh4OUG8opOETRQKfUyg@mail.gmail.com> ("乙酸鋰"'s message of "Mon, 13 Apr 2015 23:42:18 +0800")
乙酸鋰 <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".
prev parent reply other threads:[~2015-04-14 17:11 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-13 15:42 git commit --date format 乙酸鋰
2015-04-14 17:10 ` Junio C Hamano [this message]
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=xmqqoamq3aak.fsf@gitster.dls.corp.google.com \
--to=gitster@pobox$(echo .)com \
--cc=ch3cooli@gmail$(echo .)com \
--cc=git@vger$(echo .)kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
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