STG-EXPORT(1)                   StGit Manual                   STG-EXPORT(1)

NAME         top

       stg-export - Export patches to a directory

SYNOPSIS         top

       stg export [options] [--] [<patch1>] [<patch2>] [<patch3>..<patch4>]

DESCRIPTION         top

       Export a range of applied patches to a given directory (defaults to
       patches-<branch>) in a standard unified GNU diff format. A template
       file (defaulting to .git/patchexport.tmpl or
       ~/.stgit/templates/patchexport.tmpl or
       /usr/share/stgit/templates/patchexport.tmpl) can be used for the
       patch format. The following variables are supported in the template

           %(description)s - patch description
           %(shortdescr)s  - the first line of the patch description
           %(longdescr)s   - the rest of the patch description, after the first line
           %(diffstat)s    - the diff statistics
           %(authname)s    - author's name
           %(authemail)s   - author's e-mail
           %(authdate)s    - patch creation date
           %(commname)s    - committer's name
           %(commemail)s   - committer's e-mail

OPTIONS         top

       -d DIR, --dir DIR
           Export patches to DIR instead of the default.

       -p, --patch
           Append .patch to the patch names.

       -e EXTENSION, --extension EXTENSION
           Append .EXTENSION to the patch names.

       -n, --numbered
           Prefix the patch names with order numbers.

       -t FILE, --template FILE
           Use FILE as a template.

       -b BRANCH, --branch BRANCH
           Use BRANCH instead of the default branch.

       -s, --stdout
           Dump the patches to the standard output.

       -O OPTIONS, --diff-opts OPTIONS
           Extra options to pass to "git diff".

STGIT         top

       Part of the StGit suite - see stg(1)

COLOPHON         top

       This page is part of the stgit (Stacked Git) project.  Information
       about the project can be found at ⟨⟩.
       If you have a bug report for this manual page, see 
       ⟨⟩.  This page was obtained from the
       project's upstream Git repository ⟨⟩ on
       2017-05-03.  If you discover any rendering problems in this HTML ver‐
       sion of the page, or you believe there is a better or more up-to-date
       source for the page, or you have corrections or improvements to the
       information in this COLOPHON (which is not part of the original man‐
       ual page), send a mail to

StGit                            05/03/2017                    STG-EXPORT(1)

Pages that refer to this page: stg(1)