From nobody Sat Jun 4 14:49:49 2022 X-Original-To: freebsd-git@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 3DEC01BD0125 for ; Sat, 4 Jun 2022 14:50:07 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-vk1-xa2b.google.com (mail-vk1-xa2b.google.com [IPv6:2607:f8b0:4864:20::a2b]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4LFjMy4D8Pz3K4W for ; Sat, 4 Jun 2022 14:50:06 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-vk1-xa2b.google.com with SMTP id e7so4583523vkh.2 for ; Sat, 04 Jun 2022 07:50:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20210112.gappssmtp.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=xfle/cW9dbvGLYU6DHh7/d+B0RhgZe4ENyct7TLtFqY=; b=APHAQmnGAKvkXVu/a9jOdJKBjwsGnqXTEun/CE4EU3wT7pv+65Owab8awpY1BKYv9e 6k0PpFPRIB+TlIAt+UCkt2UPkgWBL7gO+5v0PAYixjAljcpE1EFD/zf4Zis2SQ8Tcuje 0YvHPBLAdN6ZbmoYM5fOUatzzOUH56PQPPcA4geZQQNYCwEXMK0IDNGJBUY28+Cd5hXU kCqEGqk6If8xwBajA2aMOCEK7yInOFcPxZVQpHaifG799Qz3pBnX297BulcL2r/rRlj2 QzuifihaQt52ZsjgRJm9RbqWcjQBi/UBVmJYqDBfxbtyWiZXsEm9pGDR4T11zmnsZvok jm+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=xfle/cW9dbvGLYU6DHh7/d+B0RhgZe4ENyct7TLtFqY=; b=q/gfSTQmcWOuiZpdlYVtIfvvhdI6yDBCwTiC4pkKoXUdQ2oQiNMwEZ/UQ70rt0Y9GL DZbxJGtnQ/ED4eHmTIOgWMGnW69TSD/1b5iVizkTKfFtwDbmPSd5OWMLnvzBo0RMp+NI 0OkORkO8ay0v9MgkRrE9nkSQM1wSWhVBekbm8XqmDA4MkW3/Llbvw9aph++HQ3FrsC5f e0xX66xCiSIuhBofzZM1XYiUBne2o67n+cjbcf7cEgo9iosahNOJacvcaLh5j/hVME0T a4A/CZsc6SPPwbKj7CgjEY8RDFMzhVG0HafZgs3EUH6FJw5sXBBm9bqGIyKgYlUQnJ24 q/QQ== X-Gm-Message-State: AOAM531TjhDS9LwIGamBpCdFwHLch7X2ix5K+reMJGMJ2/xKpFjI7gyf oTJgqXILO+jJ2EsfzY9UMUMEXfdLeFhOjZFVyZq7mt3CaaU= X-Google-Smtp-Source: ABdhPJztNc7lOpFDA0M2MDSgbJ7DRDl/hXzxzsyNUHscPhDjrTT28v6gJDdOMQ8T3cZHXaGjwKjRVPsxorevWefBtLA= X-Received: by 2002:a1f:4646:0:b0:35c:f391:4c24 with SMTP id t67-20020a1f4646000000b0035cf3914c24mr6276778vka.34.1654354200334; Sat, 04 Jun 2022 07:50:00 -0700 (PDT) List-Id: Discussion of git use in the FreeBSD project List-Archive: https://lists.freebsd.org/archives/freebsd-git List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-git@freebsd.org MIME-Version: 1.0 References: <015e19843ec9a8fb8b72313f28ca131e@bsdforge.com> In-Reply-To: <015e19843ec9a8fb8b72313f28ca131e@bsdforge.com> From: Warner Losh Date: Sat, 4 Jun 2022 08:49:49 -0600 Message-ID: Subject: Re: date based checkouts in git possible? To: Chris Cc: freebsd-git Content-Type: multipart/alternative; boundary="00000000000071aab605e0a05aa6" X-Rspamd-Queue-Id: 4LFjMy4D8Pz3K4W X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=pass header.d=bsdimp-com.20210112.gappssmtp.com header.s=20210112 header.b=APHAQmnG; dmarc=none; spf=none (mx1.freebsd.org: domain of wlosh@bsdimp.com has no SPF policy when checking 2607:f8b0:4864:20::a2b) smtp.mailfrom=wlosh@bsdimp.com X-Spamd-Result: default: False [-1.61 / 15.00]; RCVD_TLS_ALL(0.00)[]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[bsdimp-com.20210112.gappssmtp.com:s=20210112]; NEURAL_HAM_MEDIUM(-0.61)[-0.607]; FROM_HAS_DN(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-git@freebsd.org]; DMARC_NA(0.00)[bsdimp.com]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[bsdimp-com.20210112.gappssmtp.com:+]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::a2b:from]; NEURAL_HAM_SHORT(-1.00)[-1.000]; MLMMJ_DEST(0.00)[freebsd-git]; FORGED_SENDER(0.30)[imp@bsdimp.com,wlosh@bsdimp.com]; R_SPF_NA(0.00)[no SPF record]; MIME_TRACE(0.00)[0:+,1:+,2:~]; SUBJECT_ENDS_QUESTION(1.00)[]; RCVD_COUNT_TWO(0.00)[2]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; FROM_NEQ_ENVFROM(0.00)[imp@bsdimp.com,wlosh@bsdimp.com] X-ThisMailContainsUnwantedMimeParts: N --00000000000071aab605e0a05aa6 Content-Type: text/plain; charset="UTF-8" On Fri, Jun 3, 2022 at 11:17 PM Chris wrote: > I'm in need of checking out the ports tree as it was > at an earlier date. 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=" 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? > git checkout main@{} You may need to protect the {} from csh/tcsh eating them. You can also add a time. See the git-rev-parse man page for all the details. Note, due to the temporal anomalies that sometimes are present in git, the commit date and the author date differ, which can cause confusion if you do a git log and not a git log --prety=fuller. Warner --00000000000071aab605e0a05aa6 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


=
On Fri, Jun 3, 2022 at 11:17 PM Chris= <bsd-lists@bsdforge.com&g= t; wrote:
I'= m in need of checking out the ports tree as it was
at an earlier date. 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=3D<previous-date>" free= bsd/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?

git checkout main@{<date>}

You may need to protect the {} from csh/tcsh eating them. You can als= o add a time.
See the git-rev-parse man page for all the details.=

Note, due to the temporal anomalies that sometime= s are present in git,
the commit date and the author date differ,= which can cause confusion
if you do a git log and not a git log = --prety=3Dfuller.

Warner=C2=A0
--00000000000071aab605e0a05aa6--