All of lore.kernel.org
 help / color / mirror / Atom feed
* Is there way to set git commit --date to be older than 1970 ?
@ 2014-10-29 18:49 Peter Vojtek
  2014-10-29 19:19 ` Fredrik Gustafsson
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Peter Vojtek @ 2014-10-29 18:49 UTC (permalink / raw)
  To: git

Hello all,

I am playing with git in slightly unusual manner - e.g., to use git to
store history of europe:

$ touch Italy
$ git add Italy
$ git commit -m "add Italy" --date="01/01/1861T01:01:01" # Italy
gained sovereignity at year 1861
fatal: invalid date format: 01/01/1861T01:01:01

It seems the commit date can be between 1970 and 2100 (on my 32bit
linux), however man git (section DATE FORMATS) claims ISO 8601
standard is supported.  ISO 8601 allows even B.C. dates (via minus
sign).


I understand that this is rather an esoteric use case :)

Regards,

Peter

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

end of thread, other threads:[~2014-10-30 22:12 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-29 18:49 Is there way to set git commit --date to be older than 1970 ? Peter Vojtek
2014-10-29 19:19 ` Fredrik Gustafsson
2014-10-29 19:50   ` Peter Vojtek
2014-10-29 19:31 ` Junio C Hamano
2014-10-29 20:03   ` Roberto Eduardo Decurnex Gorosito
2014-10-30 21:08   ` Dan Johnson
2014-10-30 21:48     ` Jeff King
2014-10-30 22:11       ` Junio C Hamano
2014-10-30 17:24 ` Junio C Hamano

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.