Section: User Commands (1)
Updated: April 27, 2014Index
Return to Main Contents
git-debcherry - export commits touching upstream source as patches
This program will analyze git history and try to create a set of patches
meeting the following conditions:
1. Is guaranteed to apply to
2. Produces the same work tree as integration, outside ./debian
3. Does not touch ./debian
4. As much as possible, matches the git history from
This ref should be suitable for export as a
In particular note that quilt has no way of deleting files that does
not include the material to be deleted in the patch, so your
branch should include any necessary file deletions.
This branch contains all debian packaging, plus any changes introduced to
upstream source by the debian packager.
This argument is optional.
is not passed
will use HEAD.
The following options are available:
- -o, --output-directory directory
Place output (patches and series file) in directory.
If unspecified, output patches (in mbox format) to stdout.
- -s, --stat
Only output diffstat of patches
- -d, --debug
Output some debugging information. Probably only useful to developers
or those reporting bugs.
To export the patches between tag v3.0+dfsg1 and the current branch
$ git-debcherry -o debian/patches v3.0+dfsg1
to rewrite all commits on the integration branch not present
upstream. Depending on the number of such commits, this can be
in ignoring file deletions. This has the positive side effect of not
bloating the patches, but if you really need the files deleted for the
build and/or licensing reasons, you should delete them in
was written by David Bremner <email@example.com
- BRANCH PARAMETERS
- DELETED FILES
- SEE ALSO