From dedb939aef701ec8b53ec04714bd9c8dd4c351fc Mon Sep 17 00:00:00 2001 From: =?utf8?q?S=C3=A9bastien=20Han?= Date: Mon, 5 Nov 2018 14:55:42 +0100 Subject: [PATCH] ceph-ansible syntax check MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Only check for Modified and Changed content, anything else is irrelevant especially remove, rename and will make the check fail. Signed-off-by: Sébastien Han --- ceph-ansible-pr-syntax-check/build/build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ceph-ansible-pr-syntax-check/build/build b/ceph-ansible-pr-syntax-check/build/build index 785f6faf..f2445bcb 100644 --- a/ceph-ansible-pr-syntax-check/build/build +++ b/ceph-ansible-pr-syntax-check/build/build @@ -54,7 +54,7 @@ function group_vars_check { function git_diff_to_head { # shellcheck disable=SC2154 # ghprbTargetBranch variable comes from jenkins's injectedEnvVars - git diff --no-color origin/"${ghprbTargetBranch}"..HEAD + git diff --diff-filter=MT --no-color origin/"${ghprbTargetBranch}"..HEAD } function match_file { -- 2.39.5