1STG-IMPORT(1) StGit Manual STG-IMPORT(1)
2
3
4
6 stg-import - Import a GNU diff file as a new patch
7
9 stg import [options] [--] [<file>|<url>]
10
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
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 -i, --ignore
50 Ignore the applied patches in the series.
51
52 --replace
53 Replace the unapplied patches in the series.
54
55 -b BASE, --base BASE
56 Use BASE instead of HEAD for file importing.
57
58 --reject
59 Leave the rejected hunks in corresponding *.rej files.
60
61 -e, --edit
62 Invoke an editor for the patch description.
63
64 -d, --showdiff
65 Show the patch content in the editor buffer.
66
67 --author "NAME <EMAIL>"
68 Set the author details.
69
70 --authname NAME
71 Set the author name.
72
73 --authemail EMAIL
74 Set the author email.
75
76 --authdate DATE
77 Set the author date.
78
79 --sign
80 Add a "Signed-off-by:" to the end of the patch.
81
82 --ack
83 Add an "Acked-by:" line to the end of the patch.
84
85 --review
86 Add a "Reviewed-by:" line to the end of the patch.
87
89 Part of the StGit suite - see stg(1)
90
91
92
93
94StGit 07/27/2019 STG-IMPORT(1)