This project utilizes Git and clang-format to apply formatting exclusively to a branch's diff. It's implemented for GitLab CI, but it can be adjusted for most CI tools.
- Generate and export
TOKEN_NAME
andTOKEN_VALUE
to the CI/CD pipeline environment.
- This approach assumes that the branch is always based on the
master
branch. This will present a logical issue when the branch is based on another branch.