Re: drm panic after new world

From: Jamie Landeg-Jones <jamie_at_catflap.org>
Date: Tue, 03 Jun 2025 05:09:32 UTC
> How does one use dates to checkout a particular head?
> If I'm at the top of HEAD and need to got back to
> mid-february, what's the easiest option for performing
> a bisection by hand?

git rev-list -1 main '--before=2025-02-17'

This will give you the hash of the latest commit before the specified
date.

I'd use a little script something like this:

#!/bin/sh

[ -d src/.git ] || git clone --single-branch https://git.freebsd.org/src.git
cd src || exit 1
commit="$(git rev-list -1 main --before="$1")"
git checkout "$commit"

Then if you call it (say) gitbydate, you can use:

gitbydate 2025-02-17
gitbydate 2025-02-12

etc...

Cheers, Jamie