patman: Move main code out to a control module
authorSimon Glass <sjg@chromium.org>
Mon, 6 Jul 2020 03:41:49 +0000 (21:41 -0600)
committerSimon Glass <sjg@chromium.org>
Sat, 25 Jul 2020 01:25:15 +0000 (19:25 -0600)
commit7d5b04e8a533402799c39468ac880a22f67ffbc9
tree94e3c4f864ee24f14a4a56183799fdc756661c85
parent0b3d24a7790d436bb611e5e10c4d0c06ea04fd3c
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>
tools/patman/checkpatch.py
tools/patman/control.py [new file with mode: 0644]
tools/patman/gitutil.py
tools/patman/main.py
tools/patman/series.py