.\" 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-PQ" "1" "17 March 2015" "" "git-buildpackage Manual"
.SH NAME
gbp-pq \- Manage quilt patches on patch queue branches in git
.SH SYNOPSIS
\fBgbp pq\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--[no-]patch-numbers\fR ] [ \fB--topic=\fItopic\fB\fR ] [ \fB--time-machine=\fInum\fB\fR ] [ \fB--[no-]drop\fR ] [ \fB--force\fR ] \fBdrop\fR | \fBexport\fR | \fBimport\fR | \fBrebase\fR | \fBswitch\fR
.SH "DESCRIPTION"
.PP
\fBgbp pq\fR helps one to manage quilt patches in Debian packages that are
maintained with \fBgbp\fR\&. This is especially useful with packages using the
3.0 (quilt) source format. With \fBgbp pq\fR you can maintain the quilt patches
that should be applied to a package on a separate branch called patch-queue
branch. So if your Debian package lives on
\fImaster\fR the associated patch-queue branch will be
called \fIpatch-queue/master\fR\&.
.PP
See
for example workflows.
.SH "ACTIONS"
.TP
\fBimport \fR
Create a patch queue branch from quilt patches in debian/patches/
that are listed in debian/patches/series. The patches must apply
without fuzz.
.TP
\fBexport \fR
Export the patches on the patch-queue branch associated to the
current branch into a quilt patch series in debian/patches/ and
update the series file.
.TP
\fBrebase \fR
Switch to the patch-queue branch associated to the current branch and
rebase it against the current branch.
.TP
\fBdrop \fR
Drop (delete) the patch queue associated to the current branch. So if
you're on branch \fIfoo\fR this would drop
branch \fIpatch-queue/foo\fR\&.
.TP
\fBapply \fR
Add a single patch to the patch-queue similar to using
\fBgit-am\fR\&. Use \fB--topic\fR if you want
the patch to appear in a separate subdir when exporting the patch queue
using \fBexport\fR\&. This can be used to separate upstream
pathes from debian specific patches.
.TP
\fBswitch \fR
Switch to the patch-queue branch if on the base branch and switch
to base branch if on patch-queue branch.
.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 --git-color-scheme='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--[no-]patch-numbers \fR
Whether the patch files should start with a number or not.
.TP
\fB--topic=\fItopic\fB \fR
Topic to use when importing a single patch
.TP
\fB--time-machine=\fINUM\fB \fR
When importing a patch queue fails, go back commit by commit on the
current branch to check if the patch-queue applies there. Do this at
most \fINUM\fR times. This can be useful if the
patch-queue doesn't apply to the current branch HEAD anymore, e.g.
after importing a new upstream version.
.TP
\fB--[no-]drop\fR
Whether to drop (delete) the patch queue branch after
a succesful export
.TP
\fB--force\fR
In case of import even import if the branch already
exists
.SH "TAGS"
.PP
When exporting patches from a patch-queue branch \fBgbp pq\fR will look at the
patch header for special tags it recognizes. All tags need to start at the
first column and require at least one whitespace after the colon.
.TP
\fBGbp[-Pq]: Ignore \fR
Ignores the commit, no patch is generated out of it.
.TP
\fBGbp[-Pq]: Topic \fItopic\fB \fR
Moves the patch into a subdir called \fItopic\fR
when running
.nf
\fBgbp pq\fR export
.fi
This allows for some
structure below \fIdebian/patches\fR\&.
.TP
\fBGbp-Pq-Topic: \fItopic\fB \fR
Deprecated: use \fBGbp[-Pq]: Topic\fR
\fItopic\fR instead.
.SH "SEE ALSO"
.PP
\fBgbp-buildpackage\fR(1),
\fBdpkg-source\fR(1),
\fBquilt\fR(1),
\fBgbp.conf\fR(5)
.SH "AUTHOR"
.PP
Guido Guenther