diff options
author | Simon Glass <sjg@chromium.org> | 2020-07-05 21:41:51 -0600 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2020-07-20 11:37:46 -0600 |
commit | e9799e0890339dcf9f816f7b904147f791fca011 (patch) | |
tree | ef6907830bc90d3c760eabc11ca4740507cee51b /tools/patman/main.py | |
parent | 5d597584dbf027ce3e87d06001f5cbc2bde26eb2 (diff) |
patman: Allow creating patches for another branch
Add a -b option to allow patches to be created from a branch other than
the current one.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/patman/main.py')
-rwxr-xr-x | tools/patman/main.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/patman/main.py b/tools/patman/main.py index 2432d31871c..066754196e5 100755 --- a/tools/patman/main.py +++ b/tools/patman/main.py @@ -31,6 +31,8 @@ from patman import test_checkpatch parser = OptionParser() parser.add_option('-H', '--full-help', action='store_true', dest='full_help', default=False, help='Display the README file') +parser.add_option('-b', '--branch', type='str', + help="Branch to process (by default, the current branch)") parser.add_option('-c', '--count', dest='count', type='int', default=-1, help='Automatically create patches from top n commits') parser.add_option('-i', '--ignore-errors', action='store_true', |