diff options
author | Simon Glass <sjg@chromium.org> | 2020-07-05 21:41:49 -0600 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2020-07-20 11:37:46 -0600 |
commit | f36537597583a75f357b3927b1e5d816822c90db (patch) | |
tree | bdcd7d258d0606fba19c2e33b9b5ea5263e35d35 /tools/patman/gitutil.py | |
parent | 2e9a0cdfa8456636392f24dcc47e3270bd4818b7 (diff) | |
download | u-boot-f36537597583a75f357b3927b1e5d816822c90db.tar.gz u-boot-f36537597583a75f357b3927b1e5d816822c90db.tar.xz u-boot-f36537597583a75f357b3927b1e5d816822c90db.zip |
patman: Move main code out to a control module
To make testing easier, move the code out from main into a separate
'control' module and split it into four parts: setup, preparing patches,
checking patches and emailing patches.
Add comments and fix a few code-style issues while we are here.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/patman/gitutil.py')
-rw-r--r-- | tools/patman/gitutil.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/patman/gitutil.py b/tools/patman/gitutil.py index 5189840eab..29444bf8e9 100644 --- a/tools/patman/gitutil.py +++ b/tools/patman/gitutil.py @@ -261,8 +261,10 @@ def CreatePatches(start, count, ignore_binary, series): Args: start: Commit to start from: 0=HEAD, 1=next one, etc. count: number of commits to include + ignore_binary: Don't generate patches for binary files + series: Series object for this series (set of patches) Return: - Filename of cover letter + Filename of cover letter (None if none) List of filenames of patch files """ if series.get('version'): |