p4lang / p4runtime

Specification documents for the P4Runtime control-plane API
Apache License 2.0
146 stars 89 forks source link

Replacing refs to 'master' branch with 'main' #318

Closed bocon13 closed 3 years ago

bocon13 commented 4 years ago

Also requires renaming 'master' to 'main' on the p4lang repo and updating the default branch in GitHub Settings: https://github.com/github/renaming#rename-existing

ccascone commented 4 years ago

Agreed to rename the default branch. However, it looks like Github is still working on making the transition seamless for existing repositories: https://github.com/github/renaming/#later-this-year-seamless-move-for-existing-repositories-

We should consider waiting to avoid disruption to other projects depending on this repo (e.g., scripts explicitly referring to master for git operations)

bocon13 commented 4 years ago

Yes, I think it makes sense to wait until GitHub sets up branch (git & http) redirection if possible

bocon13 commented 3 years ago

It looks like Github now has support for branch renaming: https://github.com/github/renaming#rename-existing

It updates existing PRs, supports HTTP redirects, and provides a notice to users of the git CLI.