From nobody Tue Jun 3 05:09:32 2025 X-Original-To: freebsd-current@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4bBJft4Qqxz5y2LH for ; Tue, 03 Jun 2025 05:09:42 +0000 (UTC) (envelope-from jamie@catflap.org) Received: from donotpassgo.dyslexicfish.net (donotpassgo.dyslexicfish.net [IPv6:2001:19f0:7400:8808:12:4:0:1]) by mx1.freebsd.org (Postfix) with ESMTP id 4bBJft01Bdz3Jw8 for ; Tue, 03 Jun 2025 05:09:41 +0000 (UTC) (envelope-from jamie@catflap.org) Authentication-Results: mx1.freebsd.org; none X-Catflap-Envelope-From: X-Catflap-Envelope-To: freebsd-current@FreeBSD.org Received: from donotpassgo.dyslexicfish.net (donotpassgo.dyslexicfish.net [209.250.224.51]) by donotpassgo.dyslexicfish.net (8.14.5/8.14.5) with ESMTP id 55359Xxk093263; Tue, 3 Jun 2025 06:09:33 +0100 (BST) (envelope-from jamie@donotpassgo.dyslexicfish.net) Received: (from jamie@localhost) by donotpassgo.dyslexicfish.net (8.14.5/8.14.5/Submit) id 55359WbR093262; Tue, 3 Jun 2025 06:09:32 +0100 (BST) (envelope-from jamie) From: Jamie Landeg-Jones Message-Id: <202506030509.55359WbR093262@donotpassgo.dyslexicfish.net> Date: Tue, 03 Jun 2025 06:09:32 +0100 Organization: Dyslexic Fish To: sgk@troutmask.apl.washington.edu, freebsd-current@FreeBSD.org Subject: Re: drm panic after new world References: In-Reply-To: User-Agent: Heirloom mailx 12.4 7/29/08 List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.2.7 (donotpassgo.dyslexicfish.net [209.250.224.51]); Tue, 03 Jun 2025 06:09:33 +0100 (BST) X-Rspamd-Queue-Id: 4bBJft01Bdz3Jw8 X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:20473, ipnet:2001:19f0:7400::/38, country:US] > 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