summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGuido Guenther <agx@sigxcpu.org>2008-05-08 17:53:20 +0200
committerGuido Guenther <agx@sigxcpu.org>2008-05-08 17:53:20 +0200
commitdc1333a7ab68689378b40e8484e7ee3de9eb6926 (patch)
tree772738bad4ca698947cbe49a39d7de726f5af4ee
parentebae1a8b091861b6c7367238eca0e069b06a3685 (diff)
make --meta a config file option
-rw-r--r--gbp/config.py1
-rwxr-xr-xgit-dch6
2 files changed, 3 insertions, 4 deletions
diff --git a/gbp/config.py b/gbp/config.py
index 0c58681b..6abf7117 100644
--- a/gbp/config.py
+++ b/gbp/config.py
@@ -40,6 +40,7 @@ class GbpOptionParser(OptionParser):
'export-dir' : '',
'tarball-dir' : '',
'ignore-new' : 'False',
+ 'meta' : 'False',
}
config_files = [ '/etc/git-buildpackage/gbp.conf',
os.path.expanduser('~/.gbp.conf'),
diff --git a/git-dch b/git-dch
index 5a8a2020..1d3843a4 100755
--- a/git-dch
+++ b/git-dch
@@ -183,8 +183,6 @@ def parse_commit(repo, commit,meta, short):
def shortlog_to_dch(repo, commits, meta, short):
"""convert the changes in git shortlog format to debian changelog format"""
- commit_re = re.compile('\s+(?P<msg>.*)')
- author_re = re.compile('(?P<author>.*) \([0-9]+\)')
author = 'Unknown'
for commit in commits:
@@ -225,8 +223,8 @@ def main(argv):
help="mark as snapshot build")
parser.add_option("-a", "--auto", action="store_true", dest="auto", default=False,
help="autocomplete changelog from last snapshot or tag")
- parser.add_option("--meta", action="store_true", dest="meta", default=False,
- help="parse meta tags in commit messages")
+ parser.add_config_file_option(option_name="meta", dest="meta",
+ help="parse meta tags in commit messages", action="store_true")
parser.add_option("--full", action="store_false", dest="short", default=True,
help="include the full commit message")
(options, args) = parser.parse_args(argv[1:])