1
0
mirror of https://xff.cz/git/u-boot/ synced 2025-09-29 06:21:15 +02:00

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>
This commit is contained in:
Simon Glass
2020-07-05 21:41:49 -06:00
parent 2e9a0cdfa8
commit f365375975
5 changed files with 182 additions and 57 deletions

View File

@@ -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'):