gbp-rpm-ch(1)

NAME
gbp-rpm-ch; - Generate the RPM changelog from git commit messages

SYNOPSIS
\FCgbp rpm-ch\F[]
[\FC--version\F[]] [\FC--help\F[]] [\FC--verbose\F[]] [\FC--color=\F[][auto|on|off]] [\FC--color-scheme=\F[] COLOR_SCHEME] [\FC--tmp-dir\F[]= DIRECTORY] [\FC--vendor\F[]= VENDOR] [\FC--packaging-branch=\F[] BRANCH-NAME] [\FC--packaging-tag=\F[] TAG-FORMAT] [\FC--ignore-branch\F[]] [\FC--packaging-dir=\F[] DIRECTORY] [\FC--changelog-file=\F[] FILEPATH] [\FC--spec-file=\F[] FILEPATH] [\FC--since=\F[] COMMITISH] [\FC--no-release\F[]] [\FC--[no-]git-author\F[]] [\FC--[no-]full\F[]] [\FC--id-length=\F[] NUMBER] [\FC--ignore-regex=\F[] REGEX] [\FC--changelog-revision=\F[] REV-FORMAT] [\FC--git-log=\F[] GIT-LOG-OPTIONS] [\FC--spawn-editor=[always|release|no]\F[]] [\FC--editor-cmd=\F[] EDITOR] [\FC--customizations=\F[] CUSTOMIZATION-FILE] [PATH1 PATH2]

DESCRIPTION
gbp rpm-ch reads git commit messages up to the current tip of the current branch and updates the RPM changelog from them.

By default, gbp rpm-ch tries to guess the last Git commit documented in the changelog. Alternatively, \FC--since\F[] can be used to tell gbp rpm-ch at which point it should start in the Git history, or, \FC--all\F[] to use all commits from the Git history.

The additional path arguments can be used to restrict the repository paths gbp rpm-ch looks at. For even more detailed control, you can use \FC--git-log\F[] to restrict the generated changelog entries further. E.g. by using \FC--git-log=\F[]"--author=Foo Bar".

OPTIONS

\FC--version\F[]
    Print version of the program, i.e. version of the git-buildpackage suite

\FC-v\F[], \FC--verbose\F[]
    Verbose execution

\FC-h\F[], \FC--help\F[]
    Print help and exit

\FC--color=\F[][auto|on|off]
    Whether to use colored output.

\FC--color-scheme=\F[]COLOR_SCHEME
    Colors to use in output (when color is enabled). The format for COLOR_SCHEME is '<debug>:<info>:<warning>:<error>'. Numerical values and color names are accepted, empty fields imply the default color. For example, \FC--git-color-scheme=\F[]\FC'cyan:34::'\F[] would show debug messages in cyan, info messages in blue and other messages in default (i.e. warning and error messages in red).

\FC--git-tmp-dir\F[]=DIRECTORY
    Base directory under which temporary directories are created.

\FC--vendor\F[]=VENDOR
    Distribution vendor name.

\FC--packaging-branch\F[]=BRANCH-NAME
    The branch in the Git repository the package is being developed on, default is master.

\FC--ignore-branch\F[]
    Don't check if the current branch matches PACKAGING-BRANCH.

\FC--packaging-tag=\F[]TAG-FORMAT
    Tag format used, when tagging releases, default is %(vendor)s/%(version)s

\FC--packaging-dir=\F[]DIRECTORY
    Subdirectory that contains the RPM packaging files.

\FC--changelog-file=\F[]FILEPATH
    Relative path to the changelog file to use. Special value auto causes gbp to guess, SPEC uses the spec file, CHANGES 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.

\FC--spec-file=\F[]FILEPATH
    Relative path to the spec file to use. Special value auto causes gbp to search and guess. Other values cause the \FC--packaging-dir\F[] option to be ignored: the directory of the spec file is used, instead.

\FC--since=\F[]COMMITTISH
    Start reading commit messages at COMMITTISH.

\FC--no-release\F[]
    Do not create a new changelog section, just update the last changelog section.

\FC--[no-]full\F[]
    Include the full commit message in the changelog output.

\FC--git-log=\F[]GIT-LOG-OPTIONS
    Options passed on verbatim to git-log(1).

\FC--id-length=\F[]N
    Include N digits of the commit id in the changelog entry. Default is to not include any commit ids at all.

\FC--ignore-regex=\F[]REGEX
    Ignore lines in commit message matching REGEX when generating the changelog.

\FC--changelog-revision=\F[]REV-FORMAT
    Format string to use for revision field in the changelog header. The following string fields are accepted: %(upstreamversion)s the upstream version; %(release)s the rpm patchlevel, i.e. Release; %(version)s full rpm package version; %(tagname)s tag/commit, i.e. basically what git-describe would give. If empty or not defined the default from packaging policy is used.

\FC--ignore-regex=\F[]REGEX
    Ignore commit lines matching REGEX when generating the changelog.

\FC--[no-]git-author\F[]
    Use user.name and user.email from git-config(1) for the changelog header.

\FC--spawn-editor=\F[][always|release|no]
    Whether to spawn an editor: always, when doing a release or never.

\FC--editor-cmd=\F[]EDITOR
    The editor to use for editing the changelog.

\FC--customizations=\F[]CUSTOMIZATION-FILE
    Load Python code from CUSTOMIZATION-FILE. At the moment, the only useful thing the code can do is define a custom ChangelogEntryFormatter class.

META TAGS
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 \FCTagname\F[]: VALUE. Valid Meta Tags are:

\FCGit-Rpm-Ch\F[]: ACTION
    Supported actions are: Ignore which will ignore this commit when generating new changelog entries. Short which will only use the description (the first line) of the commit message when generating the changelog entry (useful when \FC--full\F[] is given) and Full which will use the full commit message when generating the changelog entry (useful when \FC--full\F[] is not given).

\FC[Close|Closes|...]\F[]: BUGNUMBER
    Indicate in the changelog entry that bug BUGNUMBER was addressed in this commit.

The following git commit message:

\FC
      Document meta tags

      so one doesn't have to consult the manual

      Git-Rpm-Ch: Short
      Closes: #636088
    \F[]

Results in this changelog entry:

\FC
      - Document meta tags (Closes: #636088)
    \F[]

CONFIGURATION FILES
Several \FCgbp.conf\F[] files are parsed to set defaults for the above command-line arguments. See the gbp.conf(5) manpage for details.

SEE ALSO
gbp-buildpackage-rpm(1), gbp-import-srpm(1), gbp.conf(5), debuild(1), git(1), pristine-tar(1), ,

AUTHOR
Markus Lehtonen <\FCmarkus.lehtonen@linux.intel.com\F[]>