Generate Debian changelog entries from Git commit messages
Function | build |
Undocumented |
Function | changelog |
Undocumented |
Function | create |
Undocumented |
Function | do |
Remove the snapshot header and set the distribution |
Function | do |
Add new snapshot banner to most recent changelog section. The next snapshot number is calculated by eval()'ing next_snapshot. |
Function | fixup |
Fixup the changelog header and trailer's committer and email address |
Function | get |
Get author and email from git configuration |
Function | get |
Undocumented |
Function | guess |
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 | guess |
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 | has |
Whether the changelog has a snapshot banner |
Function | main |
Undocumented |
Function | mangle |
Mangle changelog to either add or remove snapshot markers |
Function | maybe |
Get the changelog or create a new one if it does not exist yet |
Function | parse |
Undocumented |
Function | parse |
Parse a commit and return message, author, and author email |
Function | process |
Determine text editor and check if we need it |
Function | process |
Undocumented |
Function | snapshot |
Get the current release and snapshot version. |
Variable | snapshot |
Undocumented |
Variable | user |
Undocumented |
Add new snapshot banner to most recent changelog section. The next snapshot number is calculated by eval()'ing next_snapshot.
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
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 | |
str | the commit that was last documented in the changelog |
Raises | |
GbpError | In case we fail to find a commit to start at |
Guess the version based on the latest version on the upstream branch. If the version in dch is already higher this function returns None.
Mangle changelog to either add or remove snapshot markers
Parameters | |
changelog | Undocumented |
cp | Undocumented |
snapshot:str | SHA1 if snapshot header should be added/maintained, empty if it should be removed |