1STG-IMPORT(1)                    StGit Manual                    STG-IMPORT(1)
2
3
4

NAME

6       stg-import - Import a GNU diff file as a new patch
7

SYNOPSIS

9       stg import [options] [--] [<file>|<url>]
10

DESCRIPTION

12       Create a new patch and apply the given GNU diff file (or the standard
13       input). By default, the file name is used as the patch name but this
14       can be overridden with the --name option. The patch can either be a
15       normal file with the description at the top or it can have standard
16       mail format, the Subject, From and Date headers being used for
17       generating the patch information. The command can also read series and
18       mbox files.
19
20       If a patch does not apply cleanly, the failed diff is written to the
21       .stgit-failed.patch file and an empty StGIT patch is added to the
22       stack.
23
24       The patch description has to be separated from the data with a ---
25       line.
26

OPTIONS

28       -m, --mail
29           Import the patch from a standard e-mail file.
30
31       -M, --mbox
32           Import a series of patches from an mbox file.
33
34       -s, --series
35           Import a series of patches from a series file or a tar archive.
36
37       -u, --url
38           Import a patch from a URL.
39
40       -n NAME, --name NAME
41           Use NAME as the patch name.
42
43       -p N, --strip N
44           Remove N leading slashes from diff paths (default 1).
45
46       -t, --stripname
47           Strip numbering and extension from patch name.
48
49       -C N
50           Ensure N lines of surrounding context for each change.
51
52       -i, --ignore
53           Ignore the applied patches in the series.
54
55       --replace
56           Replace the unapplied patches in the series.
57
58       -b BASE, --base BASE
59           Use BASE instead of HEAD for file importing.
60
61       --reject
62           Leave the rejected hunks in corresponding *.rej files.
63
64       --keep-cr
65           Do not remove "\r" from email lines ending with "\r\n".
66
67       -e, --edit
68           Invoke an editor for the patch description.
69
70       -d, --showdiff
71           Show the patch content in the editor buffer.
72
73       --author "NAME <EMAIL>"
74           Set the author details.
75
76       --authname NAME
77           Set the author name.
78
79       --authemail EMAIL
80           Set the author email.
81
82       --authdate DATE
83           Set the author date.
84
85       --sign
86           Add a "Signed-off-by:" to the end of the patch.
87
88       --ack
89           Add an "Acked-by:" line to the end of the patch.
90
91       --review
92           Add a "Reviewed-by:" line to the end of the patch.
93

STGIT

95       Part of the StGit suite - see stg(1)
96
97
98
99StGit 1.1                         07/23/2021                     STG-IMPORT(1)
Impressum