]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
gitlab: work harder to avoid false positives in checkpatch
authorAlex Bennée <alex.bennee@linaro.org>
Wed, 2 Jun 2021 15:32:47 +0000 (16:32 +0100)
committerAlex Bennée <alex.bennee@linaro.org>
Mon, 7 Jun 2021 13:42:47 +0000 (14:42 +0100)
This copies the behaviour of patchew's configuration to make the diff
algorithm generate a minimal diff.

Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Wainer dos Santos Moschetta <wainersm@redhat.com>
Message-Id: <20210602153247.27651-1-alex.bennee@linaro.org>

.gitlab-ci.d/static_checks.yml

index 8e30872164093af9bb97f1c7242c3bc6cf8d55ad..7e685c6a65ef032c3c070f5397d462ab4ee978e1 100644 (file)
@@ -3,7 +3,11 @@ check-patch:
   image: $CI_REGISTRY_IMAGE/qemu/centos8:latest
   needs:
     job: amd64-centos8-container
-  script: .gitlab-ci.d/check-patch.py
+  script:
+    - git config --local diff.renamelimit 0
+    - git config --local diff.renames True
+    - git config --local diff.algorithm histogram
+    - .gitlab-ci.d/check-patch.py
   variables:
     GIT_DEPTH: 1000
   rules: