aboutsummaryrefslogtreecommitdiff
path: root/tools/patman/main.py
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2020-07-05 21:41:52 -0600
committerSimon Glass <sjg@chromium.org>2020-07-24 19:25:15 -0600
commit137947e05b25a9e511bbc30bd795c9d95deec0cb (patch)
treed2c8a214ffae872476d88757096f23ace3bd0144 /tools/patman/main.py
parent262130f57c398d7a548cf55fdc278efe561c7afb (diff)
downloadu-boot-137947e05b25a9e511bbc30bd795c9d95deec0cb.zip
u-boot-137947e05b25a9e511bbc30bd795c9d95deec0cb.tar.gz
u-boot-137947e05b25a9e511bbc30bd795c9d95deec0cb.tar.bz2
patman: Allow skipping patches at the end
The -s option allows skipping patches at the top of the branch. Sometimes there are commits at the bottom that need to be skipped. At present it is necessary to count the number of commits and then use -c to tell patman how many to process. Add a -e option to easily skip a number of commits at the bottom of the branch. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/patman/main.py')
-rwxr-xr-xtools/patman/main.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/patman/main.py b/tools/patman/main.py
index 0667541..4d7a304 100755
--- a/tools/patman/main.py
+++ b/tools/patman/main.py
@@ -35,6 +35,8 @@ 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('-e', '--end', type='int', default=0,
+ help='Commits to skip at end of patch list')
parser.add_option('-i', '--ignore-errors', action='store_true',
dest='ignore_errors', default=False,
help='Send patches email even if patch errors are found')