git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* Patching Git to handle dates before the Unix epoch
@ 2019-09-10 14:14 Diomidis Spinellis
  2019-09-10 16:08 ` Randall S. Becker
  2019-09-10 16:26 ` Jeff King
  0 siblings, 2 replies; 6+ messages in thread
From: Diomidis Spinellis @ 2019-09-10 14:14 UTC (permalink / raw)
  To: git

As people use Git to create synthetic commits of code written in the 
past [1,2] it becomes important to handle dates before the Unix epoch 
(1/1/1970).  I see that modern C libraries, Unix kernels, and tools can 
handle such dates.  However Git seems to mishandle such dates in several 
places, such as in date.c [3,4].  I'm planning to work on a fix, but 
before I embark on this I have a few questions.

- Do you see any reasons that may prevent the acceptance of such a patch?
- Can you think of any non-obvious issues (e.g. backward compatibility, 
switch to the Gregorian calendar) I should be aware of?
- Should I submit changes as a bug fix on the maint branch or as a new 
feature on master?

[1] https://github.com/dspinellis/unix-history-repo (original dates)
[2] https://github.com/chrislgarry/Apollo-11 (wrong dates)
[3] https://github.com/git/git/blob/master/date.c#L21
[4] https://github.com/git/git/blob/master/date.c#L776

Diomidis Spinellis - https://www.spinellis.gr

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

end of thread, other threads:[~2019-09-13  5:12 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-10 14:14 Patching Git to handle dates before the Unix epoch Diomidis Spinellis
2019-09-10 16:08 ` Randall S. Becker
2019-09-10 16:31   ` Jeff King
2019-09-10 16:26 ` Jeff King
2019-09-10 17:19   ` Diomidis Spinellis
2019-09-13  5:12     ` Jeff King

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).