On Mon, Jun 2, 2025, 5:18 PM Steve Kargl <s...@troutmask.apl.washington.edu>
wrote:

> On Mon, Jun 02, 2025 at 03:44:37PM -0700, David Wolfskill wrote:
> > On Mon, Jun 02, 2025 at 03:35:50PM -0700, Steve Kargl wrote:
> > > ...
> > > 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?
> > >
> >
> > Maybe someone else will have a better idea, but you could:
> >
> > * Examine (say)
> >
> https://lists.freebsd.org/archives/dev-commits-src-main/2025-February/date.html
> ,
> >  filtering out the "replies" to find git commit hashes.
> >
>
> Thanks for the suggestion.
>
> Unfortunately, this is what I feared.  Suppose I find
> commit hash abcdef for 20250215 and hash ghijkl for
> 20250315, i.e, the 2 commits roughly a month apart.
> I can do
>
> % git checkout abcdef
>
> Now, I do the usual buildworld/installworld including
> the etcupdate steps.  I need to rebuild drm-515-kmod
> port.  Test to see if drm works again,
>
> % git checkout main   (to recover the main branch).
> % git checkout ghijkl
>
> Repeat the world dance.
>

Yes. That will work. It will create a detached tree, but that's fine. You
can also do git bisect too.

Warner


-- 
> Steve
>
>

Reply via email to