summaryrefslogtreecommitdiff
path: root/gbp/scripts/pull.py
diff options
context:
space:
mode:
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>2012-11-13 11:50:34 +0200
committerGuido Günther <agx@sigxcpu.org>2012-11-25 17:51:13 +0100
commitebbe63562c9436cefd72d776b898d91960286b04 (patch)
tree8cf78880a70f9c0b39a339d8ad30ecd8b5b81fa1 /gbp/scripts/pull.py
parent48c48c9e4d4200a4e50b25bcab95ce947c1dd932 (diff)
downloadgit-buildpackage-ebbe63562c9436cefd72d776b898d91960286b04.tar.gz
git-buildpackage-ebbe63562c9436cefd72d776b898d91960286b04.tar.bz2
git-buildpackage-ebbe63562c9436cefd72d776b898d91960286b04.zip
New configuration option for setting the output color scheme
Adds a new command line and config file option 'color-scheme' for selecting the colors used in log output. Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Diffstat (limited to 'gbp/scripts/pull.py')
-rwxr-xr-xgbp/scripts/pull.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/gbp/scripts/pull.py b/gbp/scripts/pull.py
index 3f517497..c4c2b4c8 100755
--- a/gbp/scripts/pull.py
+++ b/gbp/scripts/pull.py
@@ -86,10 +86,12 @@ def main(argv):
parser.add_option("-v", "--verbose", action="store_true", dest="verbose", default=False,
help="verbose command execution")
parser.add_config_file_option(option_name="color", dest="color", type='tristate')
+ parser.add_config_file_option(option_name="color-scheme",
+ dest="color_scheme")
(options, args) = parser.parse_args(argv)
- gbp.log.setup(options.color, options.verbose)
+ gbp.log.setup(options.color, options.verbose, options.color_scheme)
try:
repo = DebianGitRepository(os.path.curdir)