Create a new patch and apply the given GNU diff file (or the standard
input). By default, the file name is used as the patch name but this
can be overridden with the --name option. The patch can either be a
normal file with the description at the top or it can have standard
mail format, the Subject, From and Date headers being used for
generating the patch information. The command can also read series
and mbox files.
If a patch does not apply cleanly, the failed diff is written to the
.stgit-failed.patch file and an empty StGIT patch is added to the
The patch description has to be separated from the data with a ---
Import the patch from a standard e-mail file.
Import a series of patches from an mbox file.
Import a series of patches from a series file or a tar archive.
Import a patch from a URL.
-n NAME, --name NAME
Use NAME as the patch name.
-p N, --strip N
Remove N leading slashes from diff paths (default 1).
Strip numbering and extension from patch name.
Ignore the applied patches in the series.
Replace the unapplied patches in the series.
-b BASE, --base BASE
Use BASE instead of HEAD for file importing.
Leave the rejected hunks in corresponding *.rej files.
Invoke an editor for the patch description.
Show the patch content in the editor buffer.
-a "NAME <EMAIL>", --author "NAME <EMAIL>"
Use "NAME <EMAIL>" as the author details.
Use AUTHNAME as the author name.
Use AUTHEMAIL as the author e-mail.
Use AUTHDATE as the author date.
Add a "Signed-off-by:" to the end of the patch.
Add an "Acked-by:" line to the end of the patch.
Add a "Reviewed-by:" line to the end of the patch.
This page is part of the stgit (Stacked Git) project. Information
about the project can be found at ⟨http://www.procode.org/stgit/⟩.
If you have a bug report for this manual page, see
⟨http://www.procode.org/stgit/⟩. This page was obtained from the
project's upstream Git repository ⟨http://repo.or.cz/stgit.git⟩ on
2017-03-13. 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 email@example.com
StGit 03/13/2017 STG-IMPORT(1)