checkpatch.pl: add check for Change-Id
[deliverable/linux.git] / scripts / checkpatch.pl
index d9b09eb767bba38bff0bc5a2242e0d303c6bd0dd..fbb1b7e88e876d381dcda3b343b501e71beba911 100755 (executable)
@@ -1924,6 +1924,12 @@ sub process {
                        }
                }
 
+# Check for unwanted Gerrit info
+               if ($in_commit_log && $line =~ /^\s*change-id:/i) {
+                       ERROR("GERRIT_CHANGE_ID",
+                             "Remove Gerrit Change-Id's before submitting upstream.\n" . $herecurr);
+               }
+
 # Check for wrappage within a valid hunk of the file
                if ($realcnt != 0 && $line !~ m{^(?:\+|-| |\\ No newline|$)}) {
                        ERROR("CORRUPTED_PATCH",
This page took 0.040573 seconds and 5 git commands to generate.