Skip to content
Snippets Groups Projects
Commit 902a9715 authored by Simon Glass's avatar Simon Glass
Browse files

patman: Add -a option to refrain from test-applying the patches


Especially with the Linux kernel, it takes a long time (a minute or more)
to test-apply the patches, so patman becomes significantly less useful.
The only real problem that is found with this apply step is trailing spaces.
Provide a -a option to skip this step, for those working with clean patches.

Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
Reviewed-by: default avatarDoug Anderson <dianders@chromium.org>
parent 68618281
No related branches found
No related tags found
No related merge requests found
...@@ -41,6 +41,9 @@ import test ...@@ -41,6 +41,9 @@ import test
parser = OptionParser() parser = OptionParser()
parser.add_option('-a', '--no-apply', action='store_false',
dest='apply_patches', default=True,
help="Don't test-apply patches with git am")
parser.add_option('-H', '--full-help', action='store_true', dest='full_help', parser.add_option('-H', '--full-help', action='store_true', dest='full_help',
default=False, help='Display the README file') default=False, help='Display the README file')
parser.add_option('-c', '--count', dest='count', type='int', parser.add_option('-c', '--count', dest='count', type='int',
...@@ -157,9 +160,10 @@ else: ...@@ -157,9 +160,10 @@ else:
ok = checkpatch.CheckPatches(options.verbose, args) ok = checkpatch.CheckPatches(options.verbose, args)
else: else:
ok = True ok = True
if not gitutil.ApplyPatches(options.verbose, args, if options.apply_patches:
options.count + options.start): if not gitutil.ApplyPatches(options.verbose, args,
ok = False options.count + options.start):
ok = False
cc_file = series.MakeCcFile(options.process_tags, cover_fname, cc_file = series.MakeCcFile(options.process_tags, cover_fname,
not options.ignore_bad_tags) not options.ignore_bad_tags)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment