Re: Report on the pull request experiment so far

From: Brooks Davis <brooks_at_freebsd.org>
Date: Tue, 28 Feb 2023 23:04:48 UTC
On Tue, Feb 28, 2023 at 05:12:37PM -0500, Ed Maste wrote:
> On Sat, 25 Feb 2023 at 18:54, Warner Losh <imp@bsdimp.com> wrote:
> >
> > I also landed one commit that was from 2021. Yikes. The commit date is right, but the author date is in the past. I suggest that we add a git commit --amend --date="`date`" to the process. This likely is a good thing. There's no simple --reset-date, alas: only a reset that also resets the author.
> 
> IMO we should just accept git's notion of separate author and commit
> dates, and not worry about author dates being in the past.

I remain on the fence, but think we should either accept git's notion or
enforce that the date is newer than prior commits and not in the future.
IMO we should enforce this on commit dates regardless[0].  There is no
conceivable value in allowing people to commit from systems with wildly
wrong clocks given they must be on the internet to commit.

-- Brooks

[0] Obviously this only applies to first-parent commits not the commits
being merged in a merge commit.