ref: 93747af2156e11ac38c625479fbce68ddec661af
parent: cf2001de5fd542b4605d14f249f3aa7c6159ada5
author: ISSOtm <[email protected]>
date: Tue Feb 18 19:55:00 EST 2020
Allow overriding the base ref for checkpatch The default is sane, but not a catch-all.
--- a/Makefile
+++ b/Makefile
@@ -180,8 +180,9 @@
# 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" \