Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 3 Jun 2022 23:09:32 -0700
From:      Mark Millard <marklmi@yahoo.com>
To:        Chris <bsd-lists@bsdforge.com>
Cc:        freebsd-git <freebsd-git@freebsd.org>
Subject:   Re: date based checkouts in git possible?
Message-ID:  <4B22FF43-CEEA-4989-ACE7-F10E88EAF8BF@yahoo.com>
In-Reply-To: <015e19843ec9a8fb8b72313f28ca131e@bsdforge.com>
References:  <015e19843ec9a8fb8b72313f28ca131e@bsdforge.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4B22FF43-CEEA-4989-ACE7-F10E88EAF8BF>