[U-Boot] [PATCH v3 0/1] 'patman' patch generation, checking and submission script

Simon Glass sjg at chromium.org
Wed Nov 30 03:35:45 CET 2011


What is this?
=============

This tool is a Python script which:
- Creates patch directly from your branch
- Cleans them up by removing unwanted tags
- Inserts a cover letter with change lists
- Runs the patches through checkpatch.pl and its own checks
- Optionally emails them out to selected people

It is intended to automate patch creation and make it a less
error-prone process. It is useful for U-Boot and Linux work so far,
since it uses the checkpatch.pl script.

It is configured almost entirely by tags it finds in your commits.
This means that you can work on a number of different branches at
once, and keep the settings with each branch rather than having to
git format-patch, git send-email, etc. with the correct parameters
each time. So for example if you put:

Series-to: fred.blogs at napier.co.nz

in one of your commits, the series will be sent there.

See the README file for full details.

Changes in v2:
- Fix up use of Color in series.py (avoid runtime error)

Changes in v3:
- Use -M with git format-patch to so that file moves are tracked
- Fix generation of cc list to match patch names correctly
- Change cc-list tmpfile name to start with patman
- Support git's alias file if found in config sendemail.aliasesfile
- Support recursive aliases
- Use @{upstream} instead of the previous mess (thanks Anton Staff)
- Find checkpatch.pl in U-Boot tree
- Expand the README to include info about suggested workflow
- Add option to display the README
- Add a few more tests (but still very incomplete)
- Tidy up gitutil and settings to separate code better

Simon Glass (1):
  Add 'patman' patch generation, checking and submission script

 tools/scripts/patman/.gitignore     |    1 +
 tools/scripts/patman/README         |  408 ++++++++++++++++++++++++++++++++
 tools/scripts/patman/checkpatch.py  |  161 +++++++++++++
 tools/scripts/patman/command.py     |   72 ++++++
 tools/scripts/patman/commit.py      |   81 +++++++
 tools/scripts/patman/gitutil.py     |  369 +++++++++++++++++++++++++++++
 tools/scripts/patman/patchstream.py |  437 +++++++++++++++++++++++++++++++++++
 tools/scripts/patman/patman         |    1 +
 tools/scripts/patman/patman.py      |  151 ++++++++++++
 tools/scripts/patman/series.py      |  229 ++++++++++++++++++
 tools/scripts/patman/settings.py    |   81 +++++++
 tools/scripts/patman/terminal.py    |   86 +++++++
 tools/scripts/patman/test.py        |  250 ++++++++++++++++++++
 13 files changed, 2327 insertions(+), 0 deletions(-)
 create mode 100644 tools/scripts/patman/.gitignore
 create mode 100644 tools/scripts/patman/README
 create mode 100644 tools/scripts/patman/checkpatch.py
 create mode 100644 tools/scripts/patman/command.py
 create mode 100644 tools/scripts/patman/commit.py
 create mode 100644 tools/scripts/patman/gitutil.py
 create mode 100644 tools/scripts/patman/patchstream.py
 create mode 120000 tools/scripts/patman/patman
 create mode 100755 tools/scripts/patman/patman.py
 create mode 100644 tools/scripts/patman/series.py
 create mode 100644 tools/scripts/patman/settings.py
 create mode 100644 tools/scripts/patman/terminal.py
 create mode 100644 tools/scripts/patman/test.py

-- 
1.7.3.1



More information about the U-Boot mailing list