mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-16 17:44:19 +00:00
fix(checkpatch): do not check merge commits
Add the --no-merges option when listing patches to check with rev-list command, when running make checkpatch. Change-Id: I47f3f5dfe358ed2b960a754f70aec0dc3c2b4536 Signed-off-by: Yann Gautier <yann.gautier@st.com>
This commit is contained in:
parent
ed0722fe17
commit
77a0a7f1d9
1 changed files with 2 additions and 1 deletions
3
Makefile
3
Makefile
|
@ -1318,7 +1318,8 @@ checkpatch: locate-checkpatch
|
|||
echo " with ${CHECKPATCH_OPTS} option(s)"; \
|
||||
fi
|
||||
${Q}COMMON_COMMIT=$$(git merge-base HEAD ${BASE_COMMIT}); \
|
||||
for commit in `git rev-list $$COMMON_COMMIT..HEAD`; do \
|
||||
for commit in `git rev-list --no-merges $$COMMON_COMMIT..HEAD`; \
|
||||
do \
|
||||
printf "\n[*] Checking style of '$$commit'\n\n"; \
|
||||
git log --format=email "$$commit~..$$commit" \
|
||||
-- ${CHECK_PATHS} | \
|
||||
|
|
Loading…
Add table
Reference in a new issue