summaryrefslogtreecommitdiff
path: root/tools/patman/patman.py
diff options
context:
space:
mode:
authorDoug Anderson <dianders@chromium.org>2012-12-03 14:43:17 +0000
committerSimon Glass <sjg@chromium.org>2013-01-31 15:23:40 -0800
commit8568baed3bd9b4c0b8d71d1f933cdac459b0eae1 (patch)
tree7f04bfce9b08dacb8d94bea7ec97723300388889 /tools/patman/patman.py
parent21a19d70e2c2aa45cfe62c6adf8ceee9fcfbcacb (diff)
downloadu-boot-imx-8568baed3bd9b4c0b8d71d1f933cdac459b0eae1.zip
u-boot-imx-8568baed3bd9b4c0b8d71d1f933cdac459b0eae1.tar.gz
u-boot-imx-8568baed3bd9b4c0b8d71d1f933cdac459b0eae1.tar.bz2
patman: Add support for settings in .patman
This patch adds support for a [settings] section in the .patman file. In this section you can add settings that will affect the default values for command-line options. Support is added in a generic way such that any setting can be updated by just referring to the "dest" of the option that is passed to the option parser. At the moment options that would make sense to put in settings are "ignore_errors", "process_tags", and "verbose". You could override them like: [settings] ignore_errors: True process_tags: False verbose: True The settings functionality is also used in a future change which adds support for per-project settings. Signed-off-by: Doug Anderson <dianders@chromium.org>
Diffstat (limited to 'tools/patman/patman.py')
-rwxr-xr-xtools/patman/patman.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/patman/patman.py b/tools/patman/patman.py
index 4181d80..b327c67 100755
--- a/tools/patman/patman.py
+++ b/tools/patman/patman.py
@@ -34,6 +34,7 @@ import checkpatch
import command
import gitutil
import patchstream
+import settings
import terminal
import test
@@ -64,6 +65,8 @@ parser.usage = """patman [options]
Create patches from commits in a branch, check them and email them as
specified by tags you place in the commits. Use -n to """
+
+settings.Setup(parser, '')
(options, args) = parser.parse_args()
# Run our meagre tests