commit | author | age
|
48fe87
|
1 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> |
M |
2 |
<html> |
|
3 |
<head> |
|
4 |
<!-- Begin Header -->
|
|
5 |
<title>Gitblit</title>
|
|
6 |
<meta charset="utf-8">
|
|
7 |
<meta name="ROBOTS" content="INDEX">
|
|
8 |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
|
9 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
10 |
|
|
11 |
<link rel="stylesheet" href="./bootstrap/css/bootstrap.css"> |
|
12 |
<link rel='shortcut icon' type='image/png' href='./gitblt-favicon.png' /> |
|
13 |
<link rel="stylesheet" href="./prettify/prettify.css" /> |
|
14 |
<!-- Google Plus Profile Page -->
|
|
15 |
<link rel="publisher" href="https://plus.google.com/114464678392593421684" />
|
|
16 |
<style type="text/css"> a.gpluspage { margin-top:3px;text-decoration: none; } </style> |
|
17 |
|
|
18 |
<!-- Google Plus One -->
|
|
19 |
<link rel="canonical" href="http://gitblit.com" />
|
|
20 |
<script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script>
|
|
21 |
<style type="text/css"> div.gplusone { margin-top:12px; } </style> |
|
22 |
|
|
23 |
<script src="./prettify/prettify.js"></script> |
|
24 |
<script src="./bootstrap/js/jquery.js"></script> |
|
25 |
<script src="./bootstrap/js/bootstrap.min.js"></script> |
|
26 |
</head> |
|
27 |
<body onload='prettyPrint()'> <!-- Navigation Bar -->
|
|
28 |
<div class="navbar navbar-fixed-top">
|
|
29 |
<div class="navbar-inner">
|
|
30 |
<div class="container">
|
|
31 |
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
|
|
32 |
<span class="icon-bar"></span>
|
|
33 |
<span class="icon-bar"></span>
|
|
34 |
<span class="icon-bar"></span>
|
|
35 |
</a>
|
|
36 |
<a class="brand" href="./"><img src="./gitblt_25_white.png" alt="Gitblit"></img></a>
|
|
37 |
<div class="nav-collapse">
|
|
38 |
<ul class="nav">
|
|
39 |
<li class='dropdown'> <!-- Menu --> |
|
40 |
<a class='dropdown-toggle' href='#' data-toggle='dropdown'>about<b class='caret'></b></a> |
|
41 |
<ul class='dropdown-menu'> |
|
42 |
<li><a href='index.html'>overview</a></li> |
|
43 |
<li><a href='features.html'>features</a></li> |
|
44 |
<li><a href='screenshots.html'>screenshots</a></li> |
|
45 |
</ul></li> <!-- End Menu --> |
|
46 |
<li class='dropdown'> <!-- Menu --> |
|
47 |
<a class='dropdown-toggle' href='#' data-toggle='dropdown'>documentation<b class='caret'></b></a> |
|
48 |
<ul class='dropdown-menu'> |
|
49 |
<li class='dropdown-submenu'> <!-- Submenu --> |
|
50 |
<a tabindex='-1' href='#'>Gitblit GO</a> |
|
51 |
<ul class='dropdown-menu'> |
|
52 |
<li><a href='setup_go.html'>setup GO</a></li> |
|
53 |
<li><a href='upgrade_go.html'>upgrade GO</a></li> |
|
54 |
</ul></li> <!-- End Submenu --> |
|
55 |
<li class='divider'></li> |
|
56 |
<li class='dropdown-submenu'> <!-- Submenu --> |
|
57 |
<a tabindex='-1' href='#'>Gitblit WAR</a> |
|
58 |
<ul class='dropdown-menu'> |
|
59 |
<li><a href='setup_war.html'>setup WAR</a></li> |
|
60 |
<li><a href='upgrade_war.html'>upgrade WAR</a></li> |
|
61 |
</ul></li> <!-- End Submenu --> |
|
62 |
<li class='divider'></li> |
|
63 |
<li class='dropdown-submenu'> <!-- Submenu --> |
|
64 |
<a tabindex='-1' href='#'>Server Configuration</a> |
|
65 |
<ul class='dropdown-menu'> |
|
66 |
<li><a href='administration.html'>administration</a></li> |
|
67 |
<li><a href='setup_authentication.html'>authentication</a></li> |
|
68 |
<li><a href='setup_hooks.html'>push hooks</a></li> |
|
69 |
<li><a href='setup_lucene.html'>lucene indexing</a></li> |
|
70 |
<li><a href='setup_proxy.html'>reverse proxies</a></li> |
|
71 |
<li><a href='setup_clientmenus.html'>client app menus</a></li> |
|
72 |
<li><a href='setup_bugtraq.html'>bugtraq</a></li> |
|
73 |
<li><a href='setup_mirrors.html'>mirrors</a></li> |
|
74 |
<li><a href='setup_scaling.html'>scaling</a></li> |
5287d2
|
75 |
<li><a href='setup_fail2ban.html'>fail2ban</a></li> |
48fe87
|
76 |
<li class='divider'></li> |
M |
77 |
<li><a href='setup_viewer.html'>Gitblit as a viewer</a></li> |
|
78 |
</ul></li> <!-- End Submenu --> |
|
79 |
<li class='divider'></li> |
|
80 |
<li class='dropdown-submenu'> <!-- Submenu --> |
|
81 |
<a tabindex='-1' href='#'>Client Usage</a> |
|
82 |
<ul class='dropdown-menu'> |
|
83 |
<li><a href='setup_transport_http.html'>using HTTP/HTTPS</a></li> |
|
84 |
<li><a href='setup_transport_ssh.html'>using SSH</a></li> |
|
85 |
<li><a href='eclipse_plugin.html'>using the Eclipse plugin</a></li> |
|
86 |
</ul></li> <!-- End Submenu --> |
|
87 |
<li class='divider'></li> |
|
88 |
<li class='dropdown-submenu'> <!-- Submenu --> |
|
89 |
<a tabindex='-1' href='#'>Tickets</a> |
|
90 |
<ul class='dropdown-menu'> |
|
91 |
<li><a href='tickets_overview.html'>overview</a></li> |
|
92 |
<li><a href='tickets_using.html'>using</a></li> |
|
93 |
<li><a href='tickets_barnum.html'>barnum</a></li> |
|
94 |
<li><a href='tickets_setup.html'>setup</a></li> |
|
95 |
<li><a href='tickets_replication.html'>replication & advanced administration</a></li> |
|
96 |
</ul></li> <!-- End Submenu --> |
|
97 |
<li class='divider'></li> |
|
98 |
<li class='dropdown-submenu'> <!-- Submenu --> |
|
99 |
<a tabindex='-1' href='#'>Plugins</a> |
|
100 |
<ul class='dropdown-menu'> |
|
101 |
<li><a href='plugins_overview.html'>overview</a></li> |
|
102 |
<li><a href='plugins_extensions.html'>extension points</a></li> |
|
103 |
</ul></li> <!-- End Submenu --> |
|
104 |
<li class='divider'></li> |
|
105 |
<li><a href='federation.html'>federation</a></li> |
|
106 |
<li class='divider'></li> |
|
107 |
<li><a href='properties.html'>settings</a></li> |
|
108 |
<li><a href='faq.html'>faq</a></li> |
|
109 |
<li class='divider'></li> |
|
110 |
<li><a href='design.html'>design</a></li> |
|
111 |
<li><a href='rpc.html'>rpc</a></li> |
|
112 |
</ul></li> <!-- End Menu --> |
|
113 |
<li class='dropdown'> <!-- Menu --> |
|
114 |
<a class='dropdown-toggle' href='#' data-toggle='dropdown'>releases<b class='caret'></b></a> |
|
115 |
<ul class='dropdown-menu'> |
|
116 |
<li><a href='releasenotes.html'>release notes</a></li> |
|
117 |
<li><a href='releases.html'>release history</a></li> |
|
118 |
</ul></li> <!-- End Menu --> |
|
119 |
<li class='dropdown'> <!-- Menu --> |
|
120 |
<a class='dropdown-toggle' href='#' data-toggle='dropdown'>downloads<b class='caret'></b></a> |
|
121 |
<ul class='dropdown-menu'> |
678348
|
122 |
<li><a href='http://dl.bintray.com/gitblit/releases/gitblit-1.7.1.zip'>Gitblit GO (Windows)</a></li> |
M |
123 |
<li><a href='http://dl.bintray.com/gitblit/releases/gitblit-1.7.1.tar.gz'>Gitblit GO (Linux/OSX)</a></li> |
|
124 |
<li><a href='http://dl.bintray.com/gitblit/releases/gitblit-1.7.1.war'>Gitblit WAR</a></li> |
48fe87
|
125 |
<li class='divider'></li> |
M |
126 |
<li><a href='https://registry.hub.docker.com/u/jmoger/gitblit/'>Gitblit GO (Docker)</a></li> |
|
127 |
<li class='divider'></li> |
|
128 |
<li><a href='http://plugins.gitblit.com'>Plugins Registry</a></li> |
|
129 |
<li class='divider'></li> |
678348
|
130 |
<li><a href='http://dl.bintray.com/gitblit/releases/manager-1.7.1.zip'>Gitblit Manager</a></li> |
M |
131 |
<li><a href='http://dl.bintray.com/gitblit/releases/fedclient-1.7.1.zip'>Federation Client</a></li> |
48fe87
|
132 |
<li class='divider'></li> |
678348
|
133 |
<li><a href='http://dl.bintray.com/gitblit/releases/gbapi-1.7.1.zip'>API Library</a></li> |
48fe87
|
134 |
<li class='divider'></li> |
M |
135 |
<li><a href='https://bintray.com/gitblit/releases/gitblit'>Bintray (1.4.0+)</a></li> |
|
136 |
<li><a href='https://code.google.com/p/gitblit/downloads/list?can=1'>GoogleCode (pre-1.4.0)</a></li> |
|
137 |
<li class='divider'></li> |
|
138 |
<li><a href='http://gitblit.github.io/gitblit-maven'>Maven Repository</a></li> |
|
139 |
</ul></li> <!-- End Menu --> |
|
140 |
<li class='dropdown'> <!-- Menu --> |
|
141 |
<a class='dropdown-toggle' href='#' data-toggle='dropdown'>links<b class='caret'></b></a> |
|
142 |
<ul class='dropdown-menu'> |
|
143 |
<li><a href='https://dev.gitblit.com'>dev.gitblit.com (self-hosted)</a></li> |
|
144 |
<li class='divider'></li> |
|
145 |
<li><a href='http://plugins.gitblit.com'>Plugins Registry</a></li> |
|
146 |
<li class='divider'></li> |
|
147 |
<li><a href='https://github.com/gitblit/gitblit'>Github</a></li> |
5287d2
|
148 |
<li><a href='https://github.com/gitblit/gitblit'>Issues</a></li> |
48fe87
|
149 |
<li><a href='http://groups.google.com/group/gitblit'>Discussion</a></li> |
M |
150 |
<li><a href='https://twitter.com/gitblit'>Twitter</a></li> |
|
151 |
<li><a href='http://www.ohloh.net/p/gitblit'>Ohloh</a></li> |
584328
|
152 |
<li class='divider'></li> |
M |
153 |
<li><a href='https://vimeo.com/86164723'>Gitblit Tickets screencast</a></li> |
|
154 |
<li><a href='https://asciinema.org/a/9342'>Gitblit SSH and Plugin Management asciicast</a></li> |
|
155 |
<li><a href='http://episodes.gitminutes.com/2014/05/gitminutes-29-james-moger-on-gitblit.html'>GitMinutes #29: James Moger on Gitblit</a></li> |
48fe87
|
156 |
<li class='divider'></li> |
M |
157 |
<li><a href='https://twitter.com/JamesMoger'>@JamesMoger</a></li> |
|
158 |
</ul></li> <!-- End Menu --> |
|
159 |
<li class='divider-vertical'></li> |
|
160 |
<li><a href='https://plus.google.com/114464678392593421684?prsrc=3' class='gpluspage'><img src='https://ssl.gstatic.com/images/icons/gplus-16.png' width='16' height='16 style='order: 0;'/></a></li><li><div class='gplusone'><g:plusone size='small' href='http://gitblit.com'></g:plusone></div></li>
|
|
161 |
</ul>
|
|
162 |
</div><!--/.nav-collapse -->
|
|
163 |
</div>
|
|
164 |
</div>
|
|
165 |
</div><!-- end Navigation Bar --> |
|
166 |
<div class='container'> |
|
167 |
<!-- Begin Markdown --> |
|
168 |
<h2 class="section" id='H1'><a href="#H1" class="sectionlink"><i class="icon-share-alt"> </i></a>Using Tickets</h2><p><em>SINCE 1.4.0</em></p> |
|
169 |
<h3 class="section" id='H2'><a href="#H2" class="sectionlink"><i class="icon-share-alt"> </i></a>Creating Standard Tickets</h3><p>Standard tickets can be created using the web ui. These ticket types include <em>Bug</em>, <em>Enhancement</em>, <em>task</em>, and <em>Question</em>.</p> |
|
170 |
<h3 class="section" id='H3'><a href="#H3" class="sectionlink"><i class="icon-share-alt"> </i></a>Creating a Proposal Ticket</h3><p>Proposal tickets are created by pushing a <strong>single commit</strong> to the magic ref. They can not be created from the web ui.</p><p><em>Why is there a single commit limitation for creating a Proposal Ticket?</em></p><p>Because the ticket which will be created for your commit will use your commit's message to define the Ticket's <em>title</em> and <em>description</em>. After the ticket is created, you can add as many commits as you want to the ticket's branch.</p><p><em>Why would I create a proposal ticket?</em></p><p>Because you are too lazy to create a ticket in the web ui first. The proposal ticket is a convenience mechanism. It allows you to propose a change using Git, not your browser.</p><p><em>Who can create a proposal ticket?</em></p><p>Any authenticated user who can clone your repository.</p> |
|
171 |
<pre><code>git clone https://server/r/repo.git |
|
172 |
cd repo |
|
173 |
git checkout -b mytopic |
|
174 |
...add a single commit... |
|
175 |
git push origin HEAD:refs/for/new |
|
176 |
# read ticket id from server output |
|
177 |
git branch -u origin/ticket/{id} |
|
178 |
</code></pre> |
|
179 |
<h3 class="section" id='H4'><a href="#H4" class="sectionlink"><i class="icon-share-alt"> </i></a>Creating the first Patchset for an Existing Ticket</h3><p>If you have an existing ticket that does <strong>not</strong> yet have a proposed patchset you can push using the ticket branch ref.</p><p><em>Who can create the first patchset for an existing ticket?</em></p><p>Any authenticated user who can clone your repository.</p> |
|
180 |
<pre><code>git clone https://server/r/repo.git |
|
181 |
cd repo |
|
182 |
git checkout -b ticket/{id} |
|
183 |
...add one or more commits... |
|
184 |
git push -u origin ticket/{id} |
|
185 |
</code></pre> |
|
186 |
<h3 class="section" id='H5'><a href="#H5" class="sectionlink"><i class="icon-share-alt"> </i></a>Safely adding commits to a Patchset for an Existing Ticket</h3><p><em>Who can add commits to an existing patchset?</em></p> |
|
187 |
<ol> |
|
188 |
<li>The ticket author</li> |
|
189 |
<li>The initial patchset author</li> |
|
190 |
<li>The person set as <em>responsible</em></li> |
|
191 |
<li>Any user with write (RW) permissions to the repository</li> |
|
192 |
</ol> |
|
193 |
<pre><code>git fetch && git checkout ticket/{id} |
|
194 |
git pull --ff-only |
|
195 |
...add one or more commits... |
|
196 |
git push |
|
197 |
</code></pre> |
|
198 |
<h3 class="section" id='H6'><a href="#H6" class="sectionlink"><i class="icon-share-alt"> </i></a>Checking-Out a Named Branch for an Existing Ticket with a Patchset</h3><p>If you prefer to name your local ticket branches rather than using the default integer ids, you can do this with a little more syntax.</p> |
|
199 |
<pre><code>git checkout -b my_fix --track origin/ticket/{id} |
|
200 |
</code></pre><p>This will create a local branch named <em>my_fix</em> which tracks the upstream ticket branch.</p> |
|
201 |
<h3 class="section" id='H7'><a href="#H7" class="sectionlink"><i class="icon-share-alt"> </i></a>Rewriting a Patchset (amend, rebase, squash)</h3><p><em>Who can rewrite a patchset?</em></p><p>See the above rules for who can add commits to a patchset. You do <strong>not</strong> need rewind (RW+) to the repository to push a non-fast-forward patchset. Gitblit will detect the non-fast-forward update and create a new patchset ref. This preserves the previous patchset.</p> |
|
202 |
<pre><code>git fetch && git checkout ticket/{id} |
|
203 |
git pull --ff-only |
|
204 |
...amend, rebase, squash... |
|
205 |
git push origin HEAD:refs/for/{id} |
|
206 |
</code></pre><p>OR if you have RW+ permissions, then you can push using <em>-f</em> flag.</p> |
|
207 |
<pre><code>git push -f |
|
208 |
</code></pre> |
|
209 |
<h3 class="section" id='H8'><a href="#H8" class="sectionlink"><i class="icon-share-alt"> </i></a>Updating your copy of a rewritten Patchset</h3><p>If a patchset has been rewritten you can no longer simply <em>pull</em> to update. Let's assume your checkout <strong>does not</strong> have any unshared commits - i.e. it represents the previous patchset. The simplest way to update your branch to the current patchset is to reset it using the <code>-B</code> checkout flag.</p> |
|
210 |
<pre><code>git fetch && git checkout -B ticket/{id} |
|
211 |
</code></pre><p>If you <strong>do</strong> have unshared commits then you'll could make a new temporary branch and then cherry-pick your changes onto the rewritten patchset.</p> |
|
212 |
<pre><code>git branch oldticket ticket/{id} |
|
213 |
git fetch && git checkout -B ticket/{id} |
|
214 |
git cherry-pick <commitid1> <commitid2> |
|
215 |
git branch -D oldticket |
|
216 |
</code></pre><p>Git is a very flexible tool, there are no doubt several other strategies you could use to resolve this situation. The above solution is just one way.</p> |
|
217 |
<h3 class="section" id='H9'><a href="#H9" class="sectionlink"><i class="icon-share-alt"> </i></a>Ticket RefSpecs</h3><p>Gitblit supports two primary push ref specs: the magic ref and the patchset ref.</p> |
|
218 |
<h4 class="section" id='H10'><a href="#H10" class="sectionlink"><i class="icon-share-alt"> </i></a>to create a new proposal ticket</h4> |
|
219 |
<table> |
|
220 |
<thead> |
|
221 |
<tr> |
|
222 |
<th align="left">ref </th> |
|
223 |
<th align="left">description </th> |
|
224 |
</tr> |
|
225 |
</thead> |
|
226 |
<tbody> |
|
227 |
<tr> |
|
228 |
<td align="left">refs/for/new </td> |
|
229 |
<td align="left">new proposal for the default branch </td> |
|
230 |
</tr> |
|
231 |
<tr> |
|
232 |
<td align="left">refs/for/default </td> |
|
233 |
<td align="left">new proposal for the default branch </td> |
|
234 |
</tr> |
|
235 |
<tr> |
|
236 |
<td align="left">refs/for/{branch} </td> |
|
237 |
<td align="left">new proposal for the specified branch </td> |
|
238 |
</tr> |
|
239 |
</tbody> |
|
240 |
</table> |
|
241 |
<h4 class="section" id='H11'><a href="#H11" class="sectionlink"><i class="icon-share-alt"> </i></a>to add a proposal patchset (first patchset) to an existing ticket</h4> |
|
242 |
<table> |
|
243 |
<thead> |
|
244 |
<tr> |
|
245 |
<th align="left">ref </th> |
|
246 |
<th align="left">description </th> |
|
247 |
</tr> |
|
248 |
</thead> |
|
249 |
<tbody> |
|
250 |
<tr> |
|
251 |
<td align="left">refs/for/{id} </td> |
|
252 |
<td align="left">add new patchset to an existing ticket </td> |
|
253 |
</tr> |
|
254 |
</tbody> |
|
255 |
</table> |
|
256 |
<h4 class="section" id='H12'><a href="#H12" class="sectionlink"><i class="icon-share-alt"> </i></a>to add commits to an existing patchset</h4> |
|
257 |
<table> |
|
258 |
<thead> |
|
259 |
<tr> |
|
260 |
<th align="left">ref </th> |
|
261 |
<th align="left">description </th> |
|
262 |
</tr> |
|
263 |
</thead> |
|
264 |
<tbody> |
|
265 |
<tr> |
|
266 |
<td align="left">refs/heads/ticket/{id} </td> |
|
267 |
<td align="left">fast-forward an existing patchset </td> |
|
268 |
</tr> |
|
269 |
</tbody> |
|
270 |
</table> |
|
271 |
<h4 class="section" id='H13'><a href="#H13" class="sectionlink"><i class="icon-share-alt"> </i></a>to rewrite a patchset (amend, rebase, squash)</h4> |
|
272 |
<table> |
|
273 |
<thead> |
|
274 |
<tr> |
|
275 |
<th align="left">magic ref </th> |
|
276 |
<th align="left">description </th> |
|
277 |
</tr> |
|
278 |
</thead> |
|
279 |
<tbody> |
|
280 |
<tr> |
|
281 |
<td align="left">refs/for/{id} </td> |
|
282 |
<td align="left">to rewrite a patchset </td> |
|
283 |
</tr> |
|
284 |
</tbody> |
|
285 |
</table> |
|
286 |
<h3 class="section" id='H14'><a href="#H14" class="sectionlink"><i class="icon-share-alt"> </i></a>Ticket RefSpec Tricks</h3><p>Gitblit supports setting some ticket fields from the push refspec.</p> |
|
287 |
<pre><code>refs/for/master%topic=bug/42,r=james,m=1.4.1,cc=dave,cc=mark |
|
288 |
</code></pre> |
|
289 |
<table> |
|
290 |
<thead> |
|
291 |
<tr> |
|
292 |
<th align="left">parameter </th> |
|
293 |
<th align="left">description </th> |
|
294 |
</tr> |
|
295 |
</thead> |
|
296 |
<tbody> |
|
297 |
<tr> |
|
298 |
<td align="left">t </td> |
|
299 |
<td align="left">assign a <em>topic</em> to the ticket (matched against bugtraq config) </td> |
|
300 |
</tr> |
|
301 |
<tr> |
|
302 |
<td align="left">r </td> |
|
303 |
<td align="left">set the <em>responsible</em> user </td> |
|
304 |
</tr> |
|
305 |
<tr> |
|
306 |
<td align="left">m </td> |
|
307 |
<td align="left">set the <em>milestone</em> for patchset integration </td> |
|
308 |
</tr> |
|
309 |
<tr> |
|
310 |
<td align="left">cc </td> |
|
311 |
<td align="left">add this account to the <em>watch</em> list (multiple ccs allowed) </td> |
|
312 |
</tr> |
|
313 |
</tbody> |
|
314 |
</table> |
|
315 |
<h4 class="section" id='H15'><a href="#H15" class="sectionlink"><i class="icon-share-alt"> </i></a>examples</h4><p>Create a new patchset for ticket <em>12</em>, add <em>james</em> and <em>mark</em> to the watch list, and set the topic to <em>JIRA-123</em> which will be regex-matched against the repository bugtraq configuration.</p> |
|
316 |
<pre><code>git push origin HEAD:refs/for/12%cc=james,cc=mark,t=JIRA-123 |
|
317 |
</code></pre><p>Add some commits (fast-forward) to ticket <em>12</em>. Set the milestone to <em>1.4.1</em>.</p> |
|
318 |
<pre><code>git push origin HEAD:refs/heads/ticket/12%m=1.4.1 |
|
319 |
</code></pre> |
|
320 |
<h3 class="section" id='H16'><a href="#H16" class="sectionlink"><i class="icon-share-alt"> </i></a>Merging Patchsets</h3><p>The Gitblit web ui offers a merge button which will work for clean merges of a patchset to the integration branch.</p><p>There are complicated merge scenarios for which it may be best to merge using your Git client. There are several ways to do this, here is a safe merge strategy which pulls into a new branch and then fast-forwards your integration branch, assuming you were happy with the pull (merge).</p> |
|
321 |
<pre><code>git pull origin master |
|
322 |
git checkout -b ticket-{id} master |
|
323 |
git pull origin ticket/{id} |
|
324 |
git checkout master |
|
325 |
git merge ticket-{id} |
|
326 |
git push origin master |
|
327 |
git branch -d ticket-{id} |
|
328 |
</code></pre> |
|
329 |
<h3 class="section" id='H17'><a href="#H17" class="sectionlink"><i class="icon-share-alt"> </i></a>Closing Tickets on Push with a Completely New Patchset</h3><p>Gitblit will look for patchset references on pushes to normal branches. If it finds a reference (like would be found in the previous merge instructions), the ticket is resolved as merged and everyone is notified.</p><p>If you do not need to create a patchset for review, you can just push a commit to the integration branch that contains <code>fixes #1</code> or <code>closes #1</code> in the commit message. Gitblit will identify the ticket, create a new patchset with that commit as the tip, and resolve the ticket as merged. (And if the integration branch is not specified in the ticket - this is the case for a ticket without any existing patchsets - Gitblit will resolve the ticket as merged to the pushed branch).</p> |
|
330 |
<h3 class="section" id='H18'><a href="#H18" class="sectionlink"><i class="icon-share-alt"> </i></a>Reopening Tickets with Patchsets</h3><p>Gitblit allows you to reopen a Ticket with a merged patchset. Since Gitblit allows patchset rewrites and versions patchsets, this seems like a logical capability. There is no need to create another ticket for a feature request or bug report if the merged commits did not actually resolve the ticket.</p><p>This allows you to continue the discussion and create a new patchset that hopefully resolves the need.</p><p><strong>NOTE:</strong> There is one caveat to this feature. You can not push patchsets to a closed ticket; Gitblit will reject the push. You must first reopen the ticket through the web ui before you may push your patchset update or new patchset.</p> |
|
331 |
<h3 class="section" id='H19'><a href="#H19" class="sectionlink"><i class="icon-share-alt"> </i></a>Reviews</h3><p>Gitblit includes a very simple patchset scoring mechanism. Gitblit is not code-review system, but for those who have simple needs, this may suffice.</p> |
|
332 |
<ul> |
|
333 |
<li>+2, approved: patchset can be merged</li> |
|
334 |
<li>+1, looks good: someone else must approve for merge</li> |
|
335 |
<li>-1, needs improvement: please do not merge</li> |
|
336 |
<li>-2, vetoed: patchset may not be merged</li> |
|
337 |
</ul><p>Only users with write (RW) permissions to the repository can give a +2 and -2 score. All other users are allowed to score +/-1. If the repository is configured to <em>require approval</em> then then +2 score has an important meaning. The merge button will only be shown if there is at least one +2 score and no -2 scores. If there is a -2 score, the merge is blocked by the web ui. Users with RW permissions, however, can still manually merge and push the patchset to the integration branch; Gitblit does not enforce vetoed patchsets on push.</p> |
|
338 |
<h4 class="section" id='H20'><a href="#H20" class="sectionlink"><i class="icon-share-alt"> </i></a>Reviews and Updated or Rewritten Patchsets</h4><p>If the patchset is updated or rewritten, all former review scores are ignored; review scores apply to specific revisions of patchsets - they are not blanket approvals/disapprovals. |
|
339 |
<!-- End Markdown --> |
678348
|
340 |
<div ><ul class="pager"><li class="previous"><a href="tickets_overview.html">← overview</a></li> <li class="next"><a href="tickets_barnum.html">barnum →</a></li></ul></div><footer class="footer"><p class="pull-right">generated 2015-11-23</p>
|
48fe87
|
341 |
<p>The content of this page is licensed under the <a href="http://creativecommons.org/licenses/by/3.0">Creative Commons Attribution 3.0 License</a>.</p> |
M |
342 |
</footer> |
|
343 |
</div> |
|
344 |
<!-- Google Analytics -->
|
|
345 |
<script type="text/javascript">
|
|
346 |
var _gaq = _gaq || [];
|
|
347 |
_gaq.push(['_setAccount', 'UA-24377072-1']);
|
|
348 |
_gaq.push(['_trackPageview']);
|
|
349 |
|
|
350 |
(function() {
|
|
351 |
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
|
|
352 |
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
|
|
353 |
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
|
|
354 |
})();
|
|
355 |
</script> |
|
356 |
|
|
357 |
</body> |
|
358 |
</html> |