summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorPatrick Delaunay <patrick.delaunay@st.com>2020-07-02 20:52:54 +0300
committerSimon Glass <sjg@chromium.org>2020-07-20 20:37:47 +0300
commit3ce7f75f7836d9baeecf1ce214027f1200f2f9d3 (patch)
treeed63ba59e04a46e4553d4c00b8f20dac51fa2187 /tools
parent2a3be302d5dd221ea64b85a700746b322e30f064 (diff)
downloadu-boot-3ce7f75f7836d9baeecf1ce214027f1200f2f9d3.tar.xz
Add information for skipped commit options
The unsupported Commit-xxx option are silently skipped and removed as 're_remove=Commit-\w*', this patch adds warning message in this case to detect misspelled issue for the 2 supported options: Commit-notes: Commit-changes: For example: the final 's' is missing (Commit-note:) NB: no issue for Series-xxx option as only the supported options are accepted (see valid_series in series.py) Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools')
-rw-r--r--tools/patman/patchstream.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/patman/patchstream.py b/tools/patman/patchstream.py
index 70acb09642..ba0a13f632 100644
--- a/tools/patman/patchstream.py
+++ b/tools/patman/patchstream.py
@@ -351,6 +351,9 @@ class PatchStream:
elif name == 'changes':
self.in_change = 'Commit'
self.change_version = self.ParseVersion(value, line)
+ else:
+ self.warn.append('Line %d: Ignoring Commit-%s' %
+ (self.linenum, name))
# Detect the start of a new commit
elif commit_match: