diff options
author | Markus Lehtonen <markus.lehtonen@linux.intel.com> | 2014-06-06 12:40:32 +0300 |
---|---|---|
committer | Markus Lehtonen <markus.lehtonen@linux.intel.com> | 2014-11-14 14:47:20 +0200 |
commit | f551fab4b20e1d8cd9a069928f54756f2f963d83 (patch) | |
tree | 0fe57f417c656e0b1aaff2735e60f03003537f52 /gbp/scripts/rpm_ch.py | |
parent | 72fdb2c35c188ad2d14da68befc54241f592467e (diff) | |
download | git-buildpackage-f551fab4b20e1d8cd9a069928f54756f2f963d83.tar.gz git-buildpackage-f551fab4b20e1d8cd9a069928f54756f2f963d83.tar.bz2 git-buildpackage-f551fab4b20e1d8cd9a069928f54756f2f963d83.zip |
rpm-ch: implement --meta-bts option
This gives the user the possibility to define what meta tags (in git
commit message) git-rpm-ch recognizes as bug tracking system references.
Or, makes it possible to disable bts meta tag tracking altogether.
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Diffstat (limited to 'gbp/scripts/rpm_ch.py')
-rwxr-xr-x | gbp/scripts/rpm_ch.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gbp/scripts/rpm_ch.py b/gbp/scripts/rpm_ch.py index 3caaac2e..33058372 100755 --- a/gbp/scripts/rpm_ch.py +++ b/gbp/scripts/rpm_ch.py @@ -279,7 +279,8 @@ def entries_from_commits(changelog, repo, commits, options): for commit in commits: info = repo.get_commit_info(commit) entry_text = ChangelogEntryFormatter.compose(info, full=options.full, - ignore_re=options.ignore_regex, id_len=options.idlen) + ignore_re=options.ignore_regex, id_len=options.idlen, + meta_bts=options.meta_bts) if entry_text: entries.append(changelog.create_entry(author=info['author'].name, text=entry_text)) @@ -431,6 +432,7 @@ def parse_args(argv): help="use all commits from the Git history, overrides " "--since") # Formatting group options + format_grp.add_config_file_option(option_name="meta-bts", dest="meta_bts") format_grp.add_option("--no-release", action="store_false", default=True, dest="release", help="no release, just update the last changelog section") |