From 93747af2156e11ac38c625479fbce68ddec661af Mon Sep 17 00:00:00 2001 From: ISSOtm Date: Wed, 19 Feb 2020 00:55:00 +0100 Subject: [PATCH] Allow overriding the base ref for checkpatch The default is sane, but not a catch-all. --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 4ad7b3e3..4829822d 100644 --- a/Makefile +++ b/Makefile @@ -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" \