Created
May 11, 2026 20:26
-
-
Save pdp7/392911f3af00fe4a7698a31755c52ab6 to your computer and use it in GitHub Desktop.
checkpatch-strict.sh
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # Run checkpatch --strict on commits since HEAD~N | |
| # Usage: ./checkpatch-series.sh <num_commits> | |
| COMMITS=${1:?Usage: $0 <num_commits>} | |
| for i in $(git log --oneline HEAD~"${COMMITS}"..HEAD | cut -f1 -d' '); do | |
| echo "$i" | |
| ./scripts/checkpatch.pl --strict -g "$i" | |
| echo "==============================================" | |
| done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment