Re: date based checkouts in git possible?

From: Mark Millard <marklmi_at_yahoo.com>
Date: Sat, 04 Jun 2022 06:09:32 UTC
On 2022-Jun-3, at 22:12, Chris <bsd-lists@bsdforge.com> wrote:

> I'm in need of checking out the ports tree as it was
> at an earlier date.

Do you not care which specific commit on the specific day
(or other time interval)?

Is this a one time thing? A regular procedure for varying
dates? Something else?

About how long ago is the date in question? Pre-git?
Post-git?

Is the branch known? main? A quarterly? (Which quarterly?)

If it is a one time thing and recent enough, looking at
the commits reported for the month via, say, something like:

https://lists.freebsd.org/archives/dev-commits-ports-main/
or:
https://lists.freebsd.org/archives/dev-commits-ports-branches/

should allow finding a commit-hash-prefix for something from
the date in question. After that: normal git procedures. But
it is not clear if your context fits that.

> But for the life of me, I can't
> seem to cobble up an/the incantation.
> 
> All the suggestions I've read indicate something to
> the effect of
> git checkout `git rev-list -n 1 --before=<previous-date>" freebsd/main`
> which returns
> Your branch is up to date with 'freebsd/main'.
> 
> What must I do? Or will I need to convert/import it into svn?
> 



===
Mark Millard
marklmi at yahoo.com