Script to update the GitHub preview branches #6758
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request is not intended to be merged, I'm just putting it out for visibility and to open comments.
The goal of this pull request is to share the script
scripts/update-code-style-preview-branches.sh
, which we can use to keep preview branches up to date for the new code style. We'll be doing this on an informal schedule until the switch to the new code style, which we intend to make in the first week of January 2023.Basic usage:
Script quality: it's worked for me once. Caveat utor. I think it should work for others but I suggest first running
sh -x scripts/update-code-style-preview-branches.sh
which will fetch the resources it needs but not do anything destructive.The script relies on a commit which is located in a branch on the main repository, with the tag
features/new-code-style/switch-to-enforcement
. Past versions of that commit are in https://github.com/gilles-peskine-arm/mbedtls/tree/coding-style-switch-to-enforcement-1 etc.This makes two branches available on the main Mbed TLS repository:
features/new-code-style/development
features/new-code-style/mbedtls-2.28