Only check for upstream merges if not fast-forwarding
[stgit] / Documentation / stg.txt
CommitLineData
4ec67741
YD
1stg(7)
2======
3Yann Dirson <ydirson@altern.org>
4v0.12.1, February 2007
5
6NAME
7----
8stg - manage stacks of patches using the GIT content tracker
9
10SYNOPSIS
11--------
12[verse]
13'stg' [--version] [--help] <command> [OPTIONS] [ARGS]
14
15DESCRIPTION
16-----------
17
18StGIT (Stacked GIT) is an application providing similar functionality
19to Quilt (i.e. pushing/popping patches to/from a stack), on top of
20GIT. These operations are performed using GIT commands and the patches
21are stored as GIT commit objects, allowing easy merging of the StGIT
22patches into other repositories using standard GIT functionality.
23
24Typical uses of StGIT include:
25
26Tracking branch::
27 Maintaining modifications against a remote branch, possibly
28 with the intent of sending some patches upstream. StGIT
29 assists in preparing and cleaning up patches until they are
30 acceptable upstream, as well as maintaining local patches not
31 meant to be sent upstream.
32
33Development branch::
34 Preparing and testing your commits before publishing them,
35 separating your features from unrelated bugfixes collected
36 while developping.
37
38OPTIONS
39-------
40
41--version::
42 Prints the StGIT suite version that the 'stg' program came
43 from, as well as version of other components used, such as GIT
44 and Python.
45
46--help::
47 Prints the synopsis and a list of all commands. If a git
48 command is given this option will display the specific help
49 for that command.
50
51STGIT COMMANDS
52--------------
53
54We divide StGIT commands in thematic groups, according to the primary
55type of object they create or change.
56
57ifdef::backend-docbook[]
58Here is a short description of each command. A more detailed
59description is available in individual command manpages. Those
60manpages are named 'stg-<command>(1)'.
61endif::backend-docbook[]
62
63Generic commands
64~~~~~~~~~~~~~~~~
65
66User-support commands not touching the repository.
67
68stglink:help[]::
69 stgdesc:help[]
70stglink:version[]::
71 stgdesc:version[]
72stglink:copyright[]::
73 stgdesc:copyright[]
74
75Repository commands
76~~~~~~~~~~~~~~~~~~~
77
78stglink:clone[]::
79 stgdesc:clone[]
80stglink:id[]::
81 stgdesc:id[]
82
83Stack commands
84~~~~~~~~~~~~~~
85
86Stack management
87^^^^^^^^^^^^^^^^
88
89stglink:branch[]::
90 stgdesc:branch[]
91stglink:init[]::
92 stgdesc:init[]
93stglink:clean[]::
94 stgdesc:clean[]
95stglink:pull[]::
96 stgdesc:pull[]
97stglink:rebase[]::
98 stgdesc:rebase[]
99
100stglink:commit[]::
101 stgdesc:commit[]
102stglink:uncommit[]::
103 stgdesc:uncommit[]
104stglink:assimilate[]::
105 stgdesc:assimilate[]
106
107Controlling what patches are applied
108^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
109
110stglink:series[]::
111 stgdesc:series[]
112stglink:push[]::
113 stgdesc:push[]
114stglink:pop[]::
115 stgdesc:pop[]
116stglink:goto[]::
117 stgdesc:goto[]
118stglink:float[]::
119 stgdesc:float[]
120stglink:applied[]::
121 stgdesc:applied[]
122stglink:unapplied[]::
123 stgdesc:unapplied[]
124stglink:top[]::
125 stgdesc:top[]
126
127stglink:hide[]::
128 stgdesc:hide[]
129stglink:unhide[]::
130 stgdesc:unhide[]
131
132Miscellaneous stack commands
133^^^^^^^^^^^^^^^^^^^^^^^^^^^^
134
135stglink:patches[]::
136 stgdesc:patches[]
137
138
139Patch commands
140~~~~~~~~~~~~~~
141
142Patch management
143^^^^^^^^^^^^^^^^
144
145stglink:new[]::
146 stgdesc:new[]
147stglink:delete[]::
148 stgdesc:delete[]
149stglink:rename[]::
150 stgdesc:rename[]
151stglink:log[]::
152 stgdesc:log[]
153
154Controlling patch contents
155^^^^^^^^^^^^^^^^^^^^^^^^^^
156
157stglink:files[]::
158 stgdesc:files[]
159stglink:show[]::
160 stgdesc:show[]
161stglink:refresh[]::
162 stgdesc:refresh[]
163stglink:fold[]::
164 stgdesc:fold[]
165stglink:pick[]::
166 stgdesc:pick[]
167stglink:sync[]::
168 stgdesc:sync[]
169
170Interaction with the rest of the world
171^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
172
173stglink:export[]::
174 stgdesc:export[]
175stglink:import[]::
176 stgdesc:import[]
177stglink:mail[]::
178 stgdesc:mail[]
179
180
181Working-copy commands
182~~~~~~~~~~~~~~~~~~~~~
183
184stglink:add[]::
185 stgdesc:add[]
186stglink:rm[]::
187 stgdesc:rm[]
188stglink:status[]::
189 stgdesc:status[]
190stglink:diff[]::
191 stgdesc:diff[]
192stglink:resolved[]::
193 stgdesc:resolved[]
194
195CONFIGURATION MECHANISM
196-----------------------
197
198Starting with 0.12, StGIT uses the same configuration mechanism as
199GIT. See gitlink:git[7] for more details.
200
201TEMPLATES
202---------
203
204A number of StGIT commands make use of template files to provide
205useful default texts to be edited by the user. These '<name>.tmpl'
206template files are searched in the following directories:
207
208 $GITDIR/
209 $HOME/.stgit/templates/
210 /usr/share/stgit/templates/