https://devgit.freshports.org/ is covering only ports head commits at present. This is because commits to a repo branch must be tracked separately. We are walking through the commits via these steps:
You should probably use a --bare --mirror clone to avoid messing
around with thousands of files on disk.
git checkout master
It's probably better to create a specific ref, maybe LATEST to point
to the last update (or track that in a separate database or
something). That probably doesn't work with --mirror, but should work
fine with --bare.
$startpoint=latest commit in our working copy : $(git log master..$REMOTE/master --oneline --reverse | head -n 1 | cut -d' ' -f1)
This came in from a post to the FreeBSD-git mailing list. I have permission to reproduce it here as it was not CC'd to the list.
Hi Dan, some suggestions below.
On Wed, Jul 15, 2020 at 11:43 PM Dan Langille dan@langille.org wrote:
You should probably use a --bare --mirror clone to avoid messing around with thousands of files on disk.
It's probably better to create a specific ref, maybe LATEST to point to the last update (or track that in a separate database or something). That probably doesn't work with --mirror, but should work fine with --bare.
git log --format=%h -n1 --reverse LATEST..origin/master http://latest..origin/master
Could then just be git rev-list LATEST..HEAD and once you're done processing you update-ref LATEST to point to HEAD
stash it in LATEST/2020Q3 and do the revlist to origin/branches/2020Q3 ?