diff options
author | Rob Browning <rlb@defaultvalue.org> | 2010-12-06 08:30:22 +0100 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2010-12-06 09:17:04 +0100 |
commit | 3640569c90a3326aa8b882fa72d63ed881785de4 (patch) | |
tree | de2c96284fadad8e87b4c258202b68a526d7b905 /gbp/config.py | |
parent | e8757040c20697c7cce1180127e257f9f17ab713 (diff) |
Add git-dch --customizations FILE to allow changelog entry customization
Add support for git-dch --customizations FILE. FILE must be Python
code, and for now, the only useful thing it can do is define a
format_changelog_entry() function which will override
gbp.dch.format_changelog_entry().
Add a new customization option group for --customizations.
Create a gbp.dch module and move the changelog entry formatting
functions there. Create separate procedures to handle extracting
metadata from the git log, and use them in the default
format_changelog_entry(). These functions are also available for use
by custom formatters: extract_git_dch_cmds(),
filter_ignore_rx_matches(), extract_bts_cmds(), extract_thanks_info(),
etc.
Add a GitRepository.get_commit_info() method, and use it in git-dch
parse_commit().
Signed-off-by: Rob Browning <rlb@defaultvalue.org>
Diffstat (limited to 'gbp/config.py')
-rw-r--r-- | gbp/config.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gbp/config.py b/gbp/config.py index aced5b1d..ff75a19f 100644 --- a/gbp/config.py +++ b/gbp/config.py @@ -79,6 +79,7 @@ class GbpOptionParser(OptionParser): 'arch' : '', 'interactive' : 'True', 'color' : 'auto', + 'customizations' : '' } help = { 'debian-branch': |