summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Maennich <maennich@google.com>2024-04-19 14:54:24 +0000
committerMatthias Männich <maennich@google.com>2024-04-19 15:18:10 +0000
commit839c9ae0a06013e9a95e795cf70df916d4a81d48 (patch)
tree090254df604b19e9679f24f116c27facb23cc7a4
parent4fdadc8706d505365457a67439514c6c475acb3e (diff)
downloadbuild-839c9ae0a06013e9a95e795cf70df916d4a81d48.tar.gz
checkpatch: skip revert commits
Those patches are regularly violating the code style but not much can be done about that. Suggested-by: Greg Kroah-Hartman <gregkh@google.com> Change-Id: I7a0bfc81895ed69bc3aad91d78cb74cd9977f852 Signed-off-by: Matthias Maennich <maennich@google.com>
-rwxr-xr-xkleaf/impl/checkpatch.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/kleaf/impl/checkpatch.sh b/kleaf/impl/checkpatch.sh
index 068bd1d..68c6549 100755
--- a/kleaf/impl/checkpatch.sh
+++ b/kleaf/impl/checkpatch.sh
@@ -138,6 +138,11 @@ if [[ "$SUBJECT" =~ ^UPSTREAM|^BACKPORT|^FROMGIT ]]; then
exit 0
fi
+if [[ "$SUBJECT" =~ ^Revert ]]; then
+ echo "Not linting revert patches for "${DIR}". Skipping this check."
+ exit 0
+fi
+
# Now run checkpatch.pl on DIR: GIT_SHA1
# Below is the equivalent of build/kernel/static_analysis/checkpatch.sh