Date: Wed, 14 Apr 2021 23:14:22 +0200 From: Juraj Lutter <otis@FreeBSD.org> To: Matthias Andree <matthias.andree@tu-dortmund.de> Cc: =?utf-8?Q?Bernhard_Fr=C3=B6hlich?= <decke@freebsd.org>, ports-committers <ports-committers@freebsd.org>, "dev-commits-ports-all@freebsd.org" <dev-commits-ports-all@freebsd.org>, "dev-commits-ports-main@freebsd.org" <dev-commits-ports-main@freebsd.org>, Kyle Evans <kevans@freebsd.org> Subject: Re: git: 2ef23d42cbce - main - net/wireguard-kmod: Update to 0.0.20210412 Message-ID: <DB10C886-2B63-4480-81F5-A3F27029562B@FreeBSD.org> In-Reply-To: <1f958906-7baa-b612-c4e7-3355e1779b07@tu-dortmund.de> References: <202104131930.13DJUwl4024751@gitrepo.freebsd.org> <CACNAnaHSK4cmM-jYsD00FQvtZ0%2BSPvzM86_DbiTCPtMfii0niQ@mail.gmail.com> <CAE-m3X0o-3LnpaF8hAA6ha6HEwTzbUmV2OH5HEqBTPu5vaLOWA@mail.gmail.com> <1f958906-7baa-b612-c4e7-3355e1779b07@tu-dortmund.de>
index | next in thread | previous in thread | raw e-mail
> On 14 Apr 2021, at 23:07, Matthias Andree <matthias.andree@tu-dortmund.de> wrote:
> You can instead also do this, without doing a separate clone:
>
> git stash # save your uncommitted changes
> git checkout 2021Q2 # switch to quarterly
> git pull --rebase # update it
> git cherry-pick -x c0decafe deadbeef # "MFH"
> git show main.. # REVIEW THE CHANGES!
> git push # publish - this is the point of no return
> git checkout main # go back to main branch
> git pull --rebase # OPTIONAL, update if you want
> git stash pop # if you had used git stash
>
> Yes, this updates lots of files on the "git checkout <branchname>".
>
> Or, if you want to do a shallow clone, you can also reference or share
> your existing ports tree to save download time, and you can also do a
> sparse checkout, documented earlier (see thread "Git sparse checkout"
> thread started by Fernando ApesteguĂa <fernando.apesteguia@gmail.com> on
> April 7.
Or, if your local environment (disk space mostly) permits, you can use worktrees
and have main and 2021Q2 checked out in separate directories.
Then you can cherry-pick using (72b4a1887cc241991ab1b81ace9d3ec392b8ea93 is the commit in main):
otis@b13:/usr/ports-branches/2021Q2 % git cherry-pick -x 72b4a1887cc241991ab1b81ace9d3ec392b8ea93
[freebsd/2021Q2 fec1d972fb19] sysutils/beats6: Update to 6.8.15
Date: Wed Apr 7 16:29:54 2021 +0200
2 files changed, 4 insertions(+), 4 deletions(-)
otis@b13:/usr/ports-branches/2021Q2 % git show fec1d972fb1
commit fec1d972fb19a6f88bb2624dd2865a51f7957c76 (HEAD -> freebsd/2021Q2)
Author: Juraj Lutter <otis@FreeBSD.org>
Date: Wed Apr 7 16:29:54 2021 +0200
sysutils/beats6: Update to 6.8.15
(cherry picked from commit 72b4a1887cc241991ab1b81ace9d3ec392b8ea93)
and now you can push.
otis
home |
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?DB10C886-2B63-4480-81F5-A3F27029562B>
