Allow overriding the base ref for checkpatch

The default is sane, but not a catch-all.
This commit is contained in:
ISSOtm
2020-02-19 00:55:00 +01:00
parent cf2001de5f
commit 93747af215

View File

@@ -180,8 +180,9 @@ checkcodebase:
# the first common commit between the HEAD and origin/master.
# `.y` files aren't checked, unfortunately...
BASE_REF:= origin/master
checkpatch:
$Qeval COMMON_COMMIT=$$(git merge-base HEAD origin/master); \
$Qeval COMMON_COMMIT=$$(git merge-base HEAD ${BASE_REF}); \
for commit in `git rev-list $$COMMON_COMMIT..HEAD`; do \
echo "[*] Analyzing commit '$$commit'"; \
git format-patch --stdout "$$commit~..$$commit" \