From 9817ae71d9edc687b8c014f6be17bd606b787cb9 Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Wed, 11 May 2022 12:43:27 +0100 Subject: [PATCH] ci: Move clang-format-diff.py into CI directory MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit There’s no point in having it in the root directory when it’s only really used for CI. It just clutters up the root. Signed-off-by: Philip Withnall --- clang-format-diff.py => .gitlab-ci/clang-format-diff.py | 0 .gitlab-ci/run-style-check-diff.sh | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) rename clang-format-diff.py => .gitlab-ci/clang-format-diff.py (100%) diff --git a/clang-format-diff.py b/.gitlab-ci/clang-format-diff.py similarity index 100% rename from clang-format-diff.py rename to .gitlab-ci/clang-format-diff.py diff --git a/.gitlab-ci/run-style-check-diff.sh b/.gitlab-ci/run-style-check-diff.sh index 2bd6f386e..651f384fa 100755 --- a/.gitlab-ci/run-style-check-diff.sh +++ b/.gitlab-ci/run-style-check-diff.sh @@ -9,7 +9,7 @@ ancestor_horizon=28 # days (4 weeks) source .gitlab-ci/search-common-ancestor.sh -git diff -U0 --no-color "${newest_common_ancestor_sha}" | ./clang-format-diff.py -binary "clang-format-11" -p1 +git diff -U0 --no-color "${newest_common_ancestor_sha}" | .gitlab-ci/clang-format-diff.py -binary "clang-format-11" -p1 ) exit_status=$?