1STG-PICK(1) StGit Manual STG-PICK(1)
2
3
4
6 stg-pick - Import a patch from a different branch or a commit object
7
9 stg pick [options] [--] ([<patch1>] [<patch2>] [<patch3>..<patch4>])|<commit>
10
12 Import one or more patches from a different branch or a commit object
13 into the current series. By default, the name of the imported patch is
14 used as the name of the current patch. It can be overridden with the
15 --name option. A commit object can be reverted with the --revert
16 option. The log and author information are those of the commit object.
17
18 When using the --expose option, the format of the commit message is
19 determined by the stgit.pick.expose-format configuration option. This
20 option is a format string as may supplied as the --pretty option to
21 git-show(1). The default is "format:%B%n(imported from commit %H)",
22 which appends the commit hash of the picked commit to the patch’s
23 commit message.
24
26 -n NAME, --name NAME
27 Use NAME as the patch name.
28
29 -B REF-BRANCH, --ref-branch REF-BRANCH
30 Pick patches from BRANCH.
31
32 -r, --revert
33 Revert the given commit object.
34
35 -p COMMITID, --parent COMMITID
36 Use COMMITID as parent.
37
38 -x, --expose
39 Append the imported commit id to the patch log.
40
41 --fold
42 Fold the commit object into the current patch.
43
44 --update
45 Like fold but only update the current patch files.
46
47 -f FILE, --file FILE
48 Only fold the given file (can be used multiple times).
49
50 --noapply
51 Keep the patch unapplied.
52
54 Part of the StGit suite - see stg(1)
55
56
57
58StGit 1.5 01/21/2023 STG-PICK(1)