.\" This manpage has been automatically generated by docbook2man
.\" from a DocBook document. This tool can be found at:
.\"
.\" Please send any bug reports, improvements, comments, patches,
.\" etc. to Steve Cheng .
.TH "GBP-RPM-CH" "1" "" "" "git-buildpackage-rpm Manual"
.SH NAME
gbp-rpm-ch; \- Generate the RPM changelog from git commit messages
.SH SYNOPSIS
\fBgbp rpm-ch\fR [ \fB--version\fR ] [ \fB--help\fR ] [ \fB--verbose\fR ] [ \fB--color=\fI[auto|on|off]\fB\fR ] [ \fB--color-scheme=\fICOLOR_SCHEME\fB\fR ] [ \fB--tmp-dir=\fIDIRECTORY\fB\fR ] [ \fB--vendor=\fIVENDOR\fB\fR ] [ \fB--packaging-branch=\fIBRANCH-NAME\fB\fR ] [ \fB--packaging-tag=\fITAG-FORMAT\fB\fR ] [ \fB--ignore-branch\fR ] [ \fB--packaging-dir=\fIDIRECTORY\fB\fR ] [ \fB--changelog-file=\fIFILEPATH\fB\fR ] [ \fB--spec-file=\fIFILEPATH\fB\fR ] [ \fB--since=\fICOMMITISH\fB\fR ] [ \fB--no-release\fR ] [ \fB--[no-]git-author\fR ] [ \fB--[no-]full\fR ] [ \fB--id-length=\fINUMBER\fB\fR ] [ \fB--ignore-regex=\fIREGEX\fB\fR ] [ \fB--changelog-revision=\fIREV-FORMAT\fB\fR ] [ \fB--git-log=\fIGIT-LOG-OPTIONS\fB\fR ] [ \fB--spawn-editor=\fI[always|release|no]\fB\fR ] [ \fB--editor-cmd=\fIEDITOR\fB\fR ] [ \fB--customizations=\fICUSTOMIZATION-FILE\fB\fR ] \fB\fI[PATH1 PATH2]\fB\fR
.SH "DESCRIPTION"
.PP
\fBgbp rpm-ch\fR reads git commit messages up to the current tip of the current
branch and updates the RPM changelog from them.
.PP
By default, \fBgbp rpm-ch\fR tries to guess the last Git commit documented in
the changelog. Alternatively, \fB--since\fR can be used to
tell \fBgbp rpm-ch\fR at which point it should start in the Git history, or,
\fB--all\fR to use all commits from the Git history.
.PP
The additional path arguments can be used to restrict the repository paths
\fBgbp rpm-ch\fR looks at. For even more detailed control, you can use
\fB--git-log\fR to restrict the generated changelog entries
further. E.g. by using
\fB--git-log=\fR\fI"--author=Foo Bar"\fR\&.
.SH "OPTIONS"
.TP
\fB--version\fR
Print version of the program, i.e. version of the git-buildpackage
suite
.TP
\fB-v\fR
.TP
\fB--verbose\fR
Verbose execution
.TP
\fB-h\fR
.TP
\fB--help\fR
Print help and exit
.TP
\fB--color=\fI[auto|on|off]\fB \fR
Whether to use colored output.
.TP
\fB--color-scheme=\fICOLOR_SCHEME\fB \fR
Colors to use in output (when color is enabled). The format for
COLOR_SCHEME is
\&':::\&'.
Numerical values and color names are accepted, empty fields imply
the default color. For example,
\fB--git-color-scheme=\fR\&'cyan:34::' would
show debug messages in cyan, info messages in blue and other messages
in default (i.e. warning and error messages in red).
.TP
\fB--git-tmp-dir=\fIDIRECTORY\fB \fR
Base directory under which temporary directories are created.
.TP
\fB--vendor=\fIVENDOR\fB \fR
Distribution vendor name.
.TP
\fB--packaging-branch=\fIBRANCH-NAME\fB \fR
The branch in the Git repository the package is being developed on,
default is \fImaster\fR\&.
.TP
\fB--ignore-branch \fR
Don't check if the current branch matches
\fIPACKAGING-BRANCH\fR\&.
.TP
\fB--packaging-tag=\fITAG-FORMAT\fB \fR
Tag format used, when tagging releases,
default is \fI%(vendor)s/%(version)s\fR
.TP
\fB--packaging-dir=\fIDIRECTORY\fB \fR
Subdirectory that contains the RPM packaging files.
.TP
\fB--changelog-file=\fIFILEPATH\fB \fR
Relative path to the changelog file to use. Special value
\fIauto\fR causes \fBgbp\fR to guess,
\fISPEC\fR uses the spec file,
\fICHANGES\fR uses a separate changelog file
(name derived spec file name with .spec suffix replaced by .changes).
Guessing logic is simple: use separate changelog file if it is found,
otherwise use the spec file.
.TP
\fB--spec-file=\fIFILEPATH\fB \fR
Relative path to the spec file to use. Special value
\fIauto\fR causes \fBgbp\fR to search and guess.
Other values cause the \fB--packaging-dir\fR option to be
ignored: the directory of the spec file is used, instead.
.TP
\fB--since=\fICOMMITTISH\fB \fR
Start reading commit messages at
\fICOMMITTISH\fR\&.
.TP
\fB--no-release \fR
Do not create a new changelog section, just update the last
changelog section.
.TP
\fB--[no-]full \fR
Include the full commit message in the changelog output.
.TP
\fB--git-log=\fIGIT-LOG-OPTIONS\fB \fR
Options passed on verbatim to git-log(1).
.TP
\fB--id-length=\fIN\fB \fR
Include \fIN\fR digits of the commit id in the
changelog entry. Default is to not include any commit ids at all.
.TP
\fB--ignore-regex=\fIREGEX\fB \fR
Ignore lines in commit message matching
\fIREGEX\fR when generating the changelog.
.TP
\fB--changelog-revision=\fIREV-FORMAT\fB \fR
Format string to use for revision field in the changelog header. The
following string fields are accepted:
\fI%(upstreamversion)s\fR the upstream version;
\fI%(release)s\fR the rpm patchlevel, i.e.
Release; \fI%(version)s\fR full rpm package
version; \fI%(tagname)s\fR tag/commit, i.e.
basically what \fBgit-describe\fR would give.
If empty or not defined the default from packaging policy is used.
.TP
\fB--ignore-regex=\fIREGEX\fB \fR
Ignore commit lines matching \fIREGEX\fR
when generating the changelog.
.TP
\fB--[no-]git-author \fR
Use user.name and user.email from
\fBgit-config\fR(1) for the changelog header.
.TP
\fB--spawn-editor=\fI[always|release|no]\fB \fR
Whether to spawn an editor: always, when doing a release or never.
.TP
\fB--editor-cmd=\fIEDITOR\fB \fR
The editor to use for editing the changelog.
.TP
\fB--customizations=\fICUSTOMIZATION-FILE\fB \fR
Load Python code from \fICUSTOMIZATION-FILE\fR\&.
At the moment, the only useful thing the code can do is define a
custom ChangelogEntryFormatter class.
.SH "META TAGS"
.PP
Additional to the above options the formatting of the new changelog entries
(one-per-commit) in the changelog can be modified by special tags (called
Meta Tags) given in the git commit message. The tags must start at the
first column of a commit message but can appear on any line. They are of
the form \fBTagname\fR: \fIVALUE\fR\&. Valid
Meta Tags are:
.TP
\fBGit-Rpm-Ch: \fIACTION\fB \fR
Supported actions are: \fIIgnore\fR which will
ignore this commit when generating new changelog entries.
\fIShort\fR which will only use the description
(the first line) of the commit message when generating the changelog
entry (useful when \fB--full\fR is given) and
\fIFull\fR which will use the full commit
message when generating the changelog entry (useful when
\fB--full\fR is not given).
.TP
\fB[Close|Closes|...]: \fIBUGNUMBER\fB \fR
Indicate in the changelog entry that bug
\fIBUGNUMBER\fR was addressed in this commit.
.PP
The following git commit message:
.nf
Document meta tags
so one doesn't have to consult the manual
Git-Rpm-Ch: Short
Closes: #636088
.fi
.PP
Results in this changelog entry:
.nf
- Document meta tags (Closes: #636088)
.fi
.SH "CONFIGURATION FILES"
.PP
Several \fIgbp.conf\fR files are parsed
to set defaults for the above command-line arguments. See the
\fBgbp.conf\fR(5)> manpage for details.
.SH "SEE ALSO"
.PP
\fBgbp-buildpackage-rpm\fR(1),
\fBgbp-import-srpm\fR(1),
\fBgbp.conf\fR(5),
\fBdebuild\fR(1),
\fBgit\fR(1),
\fBpristine-tar\fR(1),
\fIThe Git-Buildpackage Manual\fR
\fICl2vcs\fR ,
.SH "AUTHOR"
.PP
Markus Lehtonen