# `gbp.scripts.rpm_ch` module documentation

Part of `gbp.scripts`

Generate RPM changelog entries from git commit messages

Class | ChangelogFile | Container for changelog file, whether it be a standalone changelog or a spec file
Function | load_customizations | Load user defined customizations file
Function | determine_editor | Determine text editor
Function | check_branch | Check the current git branch
Function | parse_spec_file | Find and parse spec file
Function | parse_changelog_file | Find and parse changelog file
Function | guess_commit | Guess the last commit documented in a changelog header
Function | get_start_commit | Get the start commit from which to generate new entries
Function | get_author | Get author and email from git configuration
Function | entries_from_commits | Generate a list of formatted changelog entries from a list of commits
Function | update_changelog | Update the changelog with a range of commits
Function | build_parser | Construct command line parser
Function | parse_args | Parse command line and config file options
Function | main | Script main function

def load_customizations(customization_file):

Load user defined customizations file

def determine_editor(options):

Determine text editor

def check_branch(repo, options):

Check the current git branch

def parse_spec_file(repo, options):

Find and parse spec file

def parse_changelog_file(repo, spec, options):

Find and parse changelog file

def guess_commit(section, repo, options):

Guess the last commit documented in a changelog header

def get_start_commit(changelog, repo, options):

Get the start commit from which to generate new entries

def get_author(repo, use_git_config):

Get author and email from git configuration

def entries_from_commits(changelog, repo, commits, options):

Generate a list of formatted changelog entries from a list of commits

def update_changelog(changelog, entries, repo, spec, options):

Update the changelog with a range of commits

def build_parser(name):

Construct command line parser

def parse_args(argv):

Parse command line and config file options

def main(argv):

Script main function