From e4888fe3e9a29ca4ae0761c426640e09b0cf186d Mon Sep 17 00:00:00 2001 From: Johannes Berg Date: Fri, 16 May 2025 08:55:21 +0200 Subject: [PATCH] tests: kernel-doc: handle pull requests better For pull requests, it only tests files changed during the merge commit itself, which is a bit weird, especially as the automatic merge won't be able to resolve conflicts. Use "git diff" instead of "git show" to build the list of changed files. Signed-off-by: Johannes Berg --- tests/patch/kdoc/kdoc.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/patch/kdoc/kdoc.sh b/tests/patch/kdoc/kdoc.sh index a4f96ad..ac36d1b 100755 --- a/tests/patch/kdoc/kdoc.sh +++ b/tests/patch/kdoc/kdoc.sh @@ -8,7 +8,7 @@ tmpfile_o=$(mktemp) tmpfile_n=$(mktemp) rc=0 -files=$(git show --pretty="" --name-only HEAD) +files=$(git diff HEAD^ --pretty= --name-only) HEAD=$(git rev-parse HEAD)