Git silently ignores --date when data is not in the correct format
- From
Sergio <sergio.callegari@gmail.com>
- Date
- Dec 13, 2010, 15:20 UTC
- Message-ID
- <loom.20101213T161633-993@post.gmane.org>
Hi,
on 1.7.3.3, I have noticed that git --commit silently ignores the --date=<date> switch if <date> is not in the current format.
for instance
git --commit --amend --date="10.11.2010" creates a commit with the current date and time, because the --date argument misses the time.
possibly, it would be better to stop with an error message.