diff options
author | Guido Günther <agx@sigxcpu.org> | 2008-12-29 19:30:42 +0100 |
---|---|---|
committer | Guido Guenther <agx@sigxcpu.org> | 2008-12-29 19:32:37 +0100 |
commit | 6fe5985e838808daf4059d05e219fc0ac9c50a9f (patch) | |
tree | 05d2dfdc9eae3d8495baa598d202729257c8498e | |
parent | b0972862d36e42f2566a70fc585bc20f9e8ac30f (diff) |
add --no-git-author
-rw-r--r-- | gbp/config.py | 4 | ||||
-rwxr-xr-x | git-dch | 1 |
2 files changed, 4 insertions, 1 deletions
diff --git a/gbp/config.py b/gbp/config.py index 0f167e2a..0cff3576 100644 --- a/gbp/config.py +++ b/gbp/config.py @@ -68,7 +68,9 @@ class GbpOptionParser(OptionParser): 'filter': "files to filter out during import (can be given multiple times)", 'git-author': - "use name and email from git-config for changelog trailer, default is '%(git-author)s'" + "use name and email from git-config for changelog trailer, default is '%(git-author)s'", + 'no-git-author': + "negates git-author", } config_files = [ '/etc/git-buildpackage/gbp.conf', os.path.expanduser('~/.gbp.conf'), @@ -288,6 +288,7 @@ def main(argv): version_group.add_option("-N", "--new-version", dest="new_version", help="use this as base for the new version number") version_group.add_config_file_option(option_name="git-author", dest="git_author", action="store_true") + version_group.add_config_file_option(option_name="no-git-author", dest="git_author", action="store_false") commit_group.add_config_file_option(option_name="meta", dest="meta", help="parse meta tags in commit messages, default is '%(meta)s'", action="store_true") commit_group.add_config_file_option(option_name="meta-closes", dest="meta_closes", |