From: Eric S. Raymond Date: Wed, 15 May 2019 23:40:34 GMT Subject: Re: Finer timestamps and serialization in git Message-ID: <20190515234034.GB124956@thyrsus.com> In-Reply-To: <023b01d50b5c$cbd3cd90$637b68b0$@pdinc.us> Jason Pyeron : > If we take the below example: > > committer Name 1557948240 -0400 > > and we follow the rule that: > > 1. any trailing zero after the decimal point MUST be omitted > 2. if there are no digits after the decimal point, it MUST be omitted > > This would allow: > > committer Name 1557948240 -0400 > committer Name 1557948240.12 -0400 > > but the following are never allowed: > > committer Name 1557948240. -0400 > committer Name 1557948240.000000 -0400 > > By following these rules, all previous commits' hash are unchanged. Future commits made on the top of the second will look like old commit formats. Commits coming from "older" tools will produce valid and mergeable objects. The loss precision has frustrated us several times as well. Yes, that's almost exactly what I came up with. I was concerned with upward compatibility in fast-export streams, which reposurgeon ingests and emits. But I don't quite understand your claim that there's no format breakage here, unless you're implying to me that timestamps are already stored in the git file system as variable-length strings. Do they really never get translated into time_t? Good news if so. -- Eric S. Raymond