git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Is there way to set git commit --date to be older than 1970 ?

From
Junio C Hamano <gitster@pobox.com>
Date
Oct 30, 2014, 22:11 UTC
Message-ID
<xmqqtx2ltdg6.fsf@gitster.dls.corp.google.com>
In-Reply-To
<20141030214852.GB21017@peff.net>
Jeff King <peff@peff.net> writes:
Show 10 quoted lines
> I think it would be a nice project to convert git to consistently use
> signed 64-bit times internally, and then everything would Just Work
> going back to the beginning of history. But the demand for such a
> feature has been low enough that nobody has really dug in and tried the
> conversion.
>
> We do also gain some small amount of efficiency by storing commit
> timestamps as 32-bit values. However, those should always be "current"
> times anyway. I think we are really talking about author timestamps
> here (and of course the underlying time-manipulation functions).

There are only three places we store timestamps that matter in the on-disk representations, so if we were to go 64-bit internally, which I do not mind at all, we probably should do all three i.e., committer, tagger and author dates.

Previous: Jeff KingNext: Junio C Hamano
Message 8 of 9 in “Is there way to set git commit --date to be older than 1970 ?”
  1. Peter VojtekOct 29, 2014
  2. Fredrik GustafssonOct 29, 2014
  3. Peter VojtekOct 29, 2014
  4. Junio C HamanoOct 29, 2014
  5. Roberto Eduardo Decurnex GorositoOct 29, 2014
  6. Dan JohnsonOct 30, 2014
  7. Jeff KingOct 30, 2014
  8. Junio C HamanoOct 30, 2014
  9. Junio C HamanoOct 30, 2014

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.