Generate Debian changelog entries from Git commit messages
Variable | user_customizations | Undocumented |
Variable | snapshot_re | Undocumented |
Function | guess_version_from_upstream | Guess the version based on the latest version on the upstream branch. If the version in dch is already higher this function returns None. |
Function | get_author_email | Get author and email from git configuration |
Function | fixup_section | Fixup the changelog header and trailer's committer and email address |
Function | snapshot_version | Get the current release and snapshot version. |
Function | mangle_changelog | Mangle changelog to either add or remove snapshot markers |
Function | do_release | Remove the snapshot header and set the distribution |
Function | do_snapshot | Add new snapshot banner to most recent changelog section. The next snapshot number is calculated by eval()'ing next_snapshot. |
Function | parse_commit | Parse a commit and return message, author, and author email |
Function | guess_documented_commit | Guess the last commit documented in the changelog from the snapshot banner, the last tagged version or the last point the changelog was touched. |
Function | has_snapshot_banner | Whether the changelog has a snapshot banner |
Function | get_customizations | Undocumented |
Function | process_options | Undocumented |
Function | process_editor_option | Determine text editor and check if we need it |
Function | changelog_commit_msg | Undocumented |
Function | create_changelog | Undocumented |
Function | maybe_create_changelog | Get the changelog or create a new one if it does not exist yet |
Function | build_parser | Undocumented |
Function | parse_args | Undocumented |
Function | main | Undocumented |
Guess the version based on the latest version on the upstream branch. If the version in dch is already higher this function returns None.
Fixup the changelog header and trailer's committer and email address
It might otherwise point to the last git committer instead of the person creating the changelog
This also applies --distribution and --urgency options passed to gbp dch
Get the current release and snapshot version.
Format is <debian-version>~<release>.gbp<short-commit-id>
>>> snapshot_version('1.0-1') ('1.0-1', 0) >>> snapshot_version('1.0-1~1.test0') ('1.0-1~1.test0', 0) >>> snapshot_version('1.0-1~2.gbp1234') ('1.0-1', 2)
Mangle changelog to either add or remove snapshot markers
Parameters | snapshot | SHA1 if snapshot header should be added/maintained, empty if it should be removed (type: str ) |
Remove the snapshot header and set the distribution
Add new snapshot banner to most recent changelog section. The next snapshot number is calculated by eval()'ing next_snapshot.
Parse a commit and return message, author, and author email
Guess the last commit documented in the changelog from the snapshot banner, the last tagged version or the last point the changelog was touched.
Parameters | cp | the changelog |
repo | the git repository | |
tagformat | the format for Debian tags | |
Returns | the commit that was last documented in the changelog (type: str ) | |
Raises | GbpError | In case we fail to find a commit to start at |