Bug 274865

Summary: Add a quarterly alias to the current YYYYQn ports branch
Product: Services Reporter: Jose Luis Duran <jlduran>
Component: Git IntegrationAssignee: Git Admin <git-admin>
Status: Closed DUPLICATE    
Severity: Affects Only Me CC: bofh, michael.osipov, portmgr
Priority: ---    
Version: unspecified   
Hardware: Any   
OS: Any   
See Also: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=255737

Description Jose Luis Duran 2023-11-02 08:25:19 UTC
I have a bunch of scripts (mostly poudriere-based) that create a ports tree out of the latest quarterly branch.

Every quarter I need to bump the branch name to point to the latest quarterly branch.

Would it be possible to issue a:

    git symbolic-ref refs/heads/quarterly refs/heads/<QUARTERLY_BRANCH_NAME>

or similar, every time you branch out a new quarterly branch, so consumers can point their scripts to "quarterly" once and never update again?

I would even throw in a:

    git symbolic-ref refs/heads/latest refs/heads/main

Just to keep the naming nomenclature coherent.

Thank you.
Comment 1 Muhammad Moinur Rahman freebsd_committer freebsd_triage 2023-11-02 08:53:41 UTC
Although I don’t use quarterly nowadays but this might be helpful for you:
_QB=$(date +%YQ)$((($(date +%-m)-1)/3+1))

I always used to checkout this branch. If you need the full snippet let me know.
Comment 2 Jose Luis Duran 2023-11-02 09:14:36 UTC
(In reply to Muhammad Moinur Rahman from comment #1)
Thank you!
I'll use that in the meantime.
Comment 3 Michael Osipov 2023-11-02 18:24:18 UTC
This is a duplicate of Bug 255737.
Comment 4 Jose Luis Duran 2023-11-02 18:47:03 UTC

*** This bug has been marked as a duplicate of bug 255737 ***