git 1.0.3 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of git might be problematic. Click here for more details.
- data/doc/classes/Git/Base.html +336 -336
- data/doc/classes/Git/Branch.html +74 -74
- data/doc/classes/Git/Branches.html +36 -36
- data/doc/classes/Git/Diff.html +64 -64
- data/doc/classes/Git/Diff/DiffFile.html +12 -12
- data/doc/classes/Git/Lib.html +397 -318
- data/doc/classes/Git/Log.html +2 -2
- data/doc/classes/Git/Object.html +7 -7
- data/doc/classes/Git/Object/AbstractObject.html +91 -91
- data/doc/classes/Git/Object/Blob.html +6 -6
- data/doc/classes/Git/Object/Commit.html +134 -74
- data/doc/classes/Git/Object/Tag.html +7 -7
- data/doc/classes/Git/Object/Tree.html +36 -36
- data/doc/classes/Git/Path.html +24 -24
- data/doc/classes/Git/Remote.html +41 -41
- data/doc/created.rid +1 -1
- data/doc/files/lib/git/branch_rb.html +1 -1
- data/doc/files/lib/git/diff_rb.html +1 -1
- data/doc/files/lib/git/lib_rb.html +1 -1
- data/doc/files/lib/git/log_rb.html +1 -1
- data/doc/files/lib/git/object_rb.html +1 -1
- data/doc/fr_method_index.html +183 -179
- data/lib/git.rb +1 -1
- data/lib/git/branch.rb +1 -1
- data/lib/git/lib.rb +71 -29
- data/lib/git/log.rb +4 -4
- data/lib/git/object.rb +20 -6
- data/tests/units/test_lib.rb +4 -4
- data/tests/units/test_log.rb +2 -5
- data/tests/units/test_object.rb +3 -3
- metadata +2 -2
@@ -88,7 +88,7 @@
|
|
88
88
|
<h3 class="section-bar">Methods</h3>
|
89
89
|
|
90
90
|
<div class="name-list">
|
91
|
-
<a href="#
|
91
|
+
<a href="#M000181">new</a>
|
92
92
|
</div>
|
93
93
|
</div>
|
94
94
|
|
@@ -110,19 +110,19 @@
|
|
110
110
|
<div id="methods">
|
111
111
|
<h3 class="section-bar">Public Class methods</h3>
|
112
112
|
|
113
|
-
<div id="method-
|
114
|
-
<a name="
|
113
|
+
<div id="method-M000181" class="method-detail">
|
114
|
+
<a name="M000181"></a>
|
115
115
|
|
116
116
|
<div class="method-heading">
|
117
|
-
<a href="#
|
117
|
+
<a href="#M000181" class="method-signature">
|
118
118
|
<span class="method-name">new</span><span class="method-args">(base, sha, mode = nil)</span>
|
119
119
|
</a>
|
120
120
|
</div>
|
121
121
|
|
122
122
|
<div class="method-description">
|
123
123
|
<p><a class="source-toggle" href="#"
|
124
|
-
onclick="toggleCode('
|
125
|
-
<div class="method-source-code" id="
|
124
|
+
onclick="toggleCode('M000181-source');return false;">[Source]</a></p>
|
125
|
+
<div class="method-source-code" id="M000181-source">
|
126
126
|
<pre>
|
127
127
|
<span class="ruby-comment cmt"># File lib/git/object.rb, line 88</span>
|
128
128
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">base</span>, <span class="ruby-identifier">sha</span>, <span class="ruby-identifier">mode</span> = <span class="ruby-keyword kw">nil</span>)
|
@@ -88,17 +88,19 @@
|
|
88
88
|
<h3 class="section-bar">Methods</h3>
|
89
89
|
|
90
90
|
<div class="name-list">
|
91
|
-
<a href="#
|
92
|
-
<a href="#
|
93
|
-
<a href="#
|
94
|
-
<a href="#
|
95
|
-
<a href="#
|
96
|
-
<a href="#
|
97
|
-
<a href="#
|
98
|
-
<a href="#
|
99
|
-
<a href="#
|
100
|
-
<a href="#
|
101
|
-
<a href="#
|
91
|
+
<a href="#M000158">author</a>
|
92
|
+
<a href="#M000159">author_date</a>
|
93
|
+
<a href="#M000160">committer</a>
|
94
|
+
<a href="#M000161">committer_date</a>
|
95
|
+
<a href="#M000162">date</a>
|
96
|
+
<a href="#M000163">diff_parent</a>
|
97
|
+
<a href="#M000155">gtree</a>
|
98
|
+
<a href="#M000153">message</a>
|
99
|
+
<a href="#M000154">name</a>
|
100
|
+
<a href="#M000152">new</a>
|
101
|
+
<a href="#M000156">parent</a>
|
102
|
+
<a href="#M000157">parents</a>
|
103
|
+
<a href="#M000164">set_commit</a>
|
102
104
|
</div>
|
103
105
|
</div>
|
104
106
|
|
@@ -118,13 +120,41 @@
|
|
118
120
|
|
119
121
|
<!-- if method_list -->
|
120
122
|
<div id="methods">
|
123
|
+
<h3 class="section-bar">Public Class methods</h3>
|
124
|
+
|
125
|
+
<div id="method-M000152" class="method-detail">
|
126
|
+
<a name="M000152"></a>
|
127
|
+
|
128
|
+
<div class="method-heading">
|
129
|
+
<a href="#M000152" class="method-signature">
|
130
|
+
<span class="method-name">new</span><span class="method-args">(base, sha, init = nil)</span>
|
131
|
+
</a>
|
132
|
+
</div>
|
133
|
+
|
134
|
+
<div class="method-description">
|
135
|
+
<p><a class="source-toggle" href="#"
|
136
|
+
onclick="toggleCode('M000152-source');return false;">[Source]</a></p>
|
137
|
+
<div class="method-source-code" id="M000152-source">
|
138
|
+
<pre>
|
139
|
+
<span class="ruby-comment cmt"># File lib/git/object.rb, line 154</span>
|
140
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">base</span>, <span class="ruby-identifier">sha</span>, <span class="ruby-identifier">init</span> = <span class="ruby-keyword kw">nil</span>)
|
141
|
+
<span class="ruby-keyword kw">super</span>(<span class="ruby-identifier">base</span>, <span class="ruby-identifier">sha</span>)
|
142
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">init</span>
|
143
|
+
<span class="ruby-identifier">set_commit</span>(<span class="ruby-identifier">init</span>)
|
144
|
+
<span class="ruby-keyword kw">end</span>
|
145
|
+
<span class="ruby-keyword kw">end</span>
|
146
|
+
</pre>
|
147
|
+
</div>
|
148
|
+
</div>
|
149
|
+
</div>
|
150
|
+
|
121
151
|
<h3 class="section-bar">Public Instance methods</h3>
|
122
152
|
|
123
|
-
<div id="method-
|
124
|
-
<a name="
|
153
|
+
<div id="method-M000158" class="method-detail">
|
154
|
+
<a name="M000158"></a>
|
125
155
|
|
126
156
|
<div class="method-heading">
|
127
|
-
<a href="#
|
157
|
+
<a href="#M000158" class="method-signature">
|
128
158
|
<span class="method-name">author</span><span class="method-args">()</span>
|
129
159
|
</a>
|
130
160
|
</div>
|
@@ -134,10 +164,10 @@
|
|
134
164
|
git author
|
135
165
|
</p>
|
136
166
|
<p><a class="source-toggle" href="#"
|
137
|
-
onclick="toggleCode('
|
138
|
-
<div class="method-source-code" id="
|
167
|
+
onclick="toggleCode('M000158-source');return false;">[Source]</a></p>
|
168
|
+
<div class="method-source-code" id="M000158-source">
|
139
169
|
<pre>
|
140
|
-
<span class="ruby-comment cmt"># File lib/git/object.rb, line
|
170
|
+
<span class="ruby-comment cmt"># File lib/git/object.rb, line 186</span>
|
141
171
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">author</span>
|
142
172
|
<span class="ruby-identifier">check_commit</span>
|
143
173
|
<span class="ruby-ivar">@author</span>
|
@@ -147,21 +177,21 @@ git author
|
|
147
177
|
</div>
|
148
178
|
</div>
|
149
179
|
|
150
|
-
<div id="method-
|
151
|
-
<a name="
|
180
|
+
<div id="method-M000159" class="method-detail">
|
181
|
+
<a name="M000159"></a>
|
152
182
|
|
153
183
|
<div class="method-heading">
|
154
|
-
<a href="#
|
184
|
+
<a href="#M000159" class="method-signature">
|
155
185
|
<span class="method-name">author_date</span><span class="method-args">()</span>
|
156
186
|
</a>
|
157
187
|
</div>
|
158
188
|
|
159
189
|
<div class="method-description">
|
160
190
|
<p><a class="source-toggle" href="#"
|
161
|
-
onclick="toggleCode('
|
162
|
-
<div class="method-source-code" id="
|
191
|
+
onclick="toggleCode('M000159-source');return false;">[Source]</a></p>
|
192
|
+
<div class="method-source-code" id="M000159-source">
|
163
193
|
<pre>
|
164
|
-
<span class="ruby-comment cmt"># File lib/git/object.rb, line
|
194
|
+
<span class="ruby-comment cmt"># File lib/git/object.rb, line 191</span>
|
165
195
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">author_date</span>
|
166
196
|
<span class="ruby-identifier">author</span>.<span class="ruby-identifier">date</span>
|
167
197
|
<span class="ruby-keyword kw">end</span>
|
@@ -170,11 +200,11 @@ git author
|
|
170
200
|
</div>
|
171
201
|
</div>
|
172
202
|
|
173
|
-
<div id="method-
|
174
|
-
<a name="
|
203
|
+
<div id="method-M000160" class="method-detail">
|
204
|
+
<a name="M000160"></a>
|
175
205
|
|
176
206
|
<div class="method-heading">
|
177
|
-
<a href="#
|
207
|
+
<a href="#M000160" class="method-signature">
|
178
208
|
<span class="method-name">committer</span><span class="method-args">()</span>
|
179
209
|
</a>
|
180
210
|
</div>
|
@@ -184,10 +214,10 @@ git author
|
|
184
214
|
git author
|
185
215
|
</p>
|
186
216
|
<p><a class="source-toggle" href="#"
|
187
|
-
onclick="toggleCode('
|
188
|
-
<div class="method-source-code" id="
|
217
|
+
onclick="toggleCode('M000160-source');return false;">[Source]</a></p>
|
218
|
+
<div class="method-source-code" id="M000160-source">
|
189
219
|
<pre>
|
190
|
-
<span class="ruby-comment cmt"># File lib/git/object.rb, line
|
220
|
+
<span class="ruby-comment cmt"># File lib/git/object.rb, line 196</span>
|
191
221
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">committer</span>
|
192
222
|
<span class="ruby-identifier">check_commit</span>
|
193
223
|
<span class="ruby-ivar">@committer</span>
|
@@ -197,21 +227,21 @@ git author
|
|
197
227
|
</div>
|
198
228
|
</div>
|
199
229
|
|
200
|
-
<div id="method-
|
201
|
-
<a name="
|
230
|
+
<div id="method-M000161" class="method-detail">
|
231
|
+
<a name="M000161"></a>
|
202
232
|
|
203
233
|
<div class="method-heading">
|
204
|
-
<a href="#
|
234
|
+
<a href="#M000161" class="method-signature">
|
205
235
|
<span class="method-name">committer_date</span><span class="method-args">()</span>
|
206
236
|
</a>
|
207
237
|
</div>
|
208
238
|
|
209
239
|
<div class="method-description">
|
210
240
|
<p><a class="source-toggle" href="#"
|
211
|
-
onclick="toggleCode('
|
212
|
-
<div class="method-source-code" id="
|
241
|
+
onclick="toggleCode('M000161-source');return false;">[Source]</a></p>
|
242
|
+
<div class="method-source-code" id="M000161-source">
|
213
243
|
<pre>
|
214
|
-
<span class="ruby-comment cmt"># File lib/git/object.rb, line
|
244
|
+
<span class="ruby-comment cmt"># File lib/git/object.rb, line 201</span>
|
215
245
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">committer_date</span>
|
216
246
|
<span class="ruby-identifier">committer</span>.<span class="ruby-identifier">date</span>
|
217
247
|
<span class="ruby-keyword kw">end</span>
|
@@ -220,8 +250,8 @@ git author
|
|
220
250
|
</div>
|
221
251
|
</div>
|
222
252
|
|
223
|
-
<div id="method-
|
224
|
-
<a name="
|
253
|
+
<div id="method-M000162" class="method-detail">
|
254
|
+
<a name="M000162"></a>
|
225
255
|
|
226
256
|
<div class="method-heading">
|
227
257
|
<span class="method-name">date</span><span class="method-args">()</span>
|
@@ -229,26 +259,26 @@ git author
|
|
229
259
|
|
230
260
|
<div class="method-description">
|
231
261
|
<p>
|
232
|
-
Alias for <a href="Commit.html#
|
262
|
+
Alias for <a href="Commit.html#M000161">committer_date</a>
|
233
263
|
</p>
|
234
264
|
</div>
|
235
265
|
</div>
|
236
266
|
|
237
|
-
<div id="method-
|
238
|
-
<a name="
|
267
|
+
<div id="method-M000163" class="method-detail">
|
268
|
+
<a name="M000163"></a>
|
239
269
|
|
240
270
|
<div class="method-heading">
|
241
|
-
<a href="#
|
271
|
+
<a href="#M000163" class="method-signature">
|
242
272
|
<span class="method-name">diff_parent</span><span class="method-args">()</span>
|
243
273
|
</a>
|
244
274
|
</div>
|
245
275
|
|
246
276
|
<div class="method-description">
|
247
277
|
<p><a class="source-toggle" href="#"
|
248
|
-
onclick="toggleCode('
|
249
|
-
<div class="method-source-code" id="
|
278
|
+
onclick="toggleCode('M000163-source');return false;">[Source]</a></p>
|
279
|
+
<div class="method-source-code" id="M000163-source">
|
250
280
|
<pre>
|
251
|
-
<span class="ruby-comment cmt"># File lib/git/object.rb, line
|
281
|
+
<span class="ruby-comment cmt"># File lib/git/object.rb, line 206</span>
|
252
282
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">diff_parent</span>
|
253
283
|
<span class="ruby-identifier">diff</span>(<span class="ruby-identifier">parent</span>)
|
254
284
|
<span class="ruby-keyword kw">end</span>
|
@@ -257,21 +287,21 @@ Alias for <a href="Commit.html#M000158">committer_date</a>
|
|
257
287
|
</div>
|
258
288
|
</div>
|
259
289
|
|
260
|
-
<div id="method-
|
261
|
-
<a name="
|
290
|
+
<div id="method-M000155" class="method-detail">
|
291
|
+
<a name="M000155"></a>
|
262
292
|
|
263
293
|
<div class="method-heading">
|
264
|
-
<a href="#
|
294
|
+
<a href="#M000155" class="method-signature">
|
265
295
|
<span class="method-name">gtree</span><span class="method-args">()</span>
|
266
296
|
</a>
|
267
297
|
</div>
|
268
298
|
|
269
299
|
<div class="method-description">
|
270
300
|
<p><a class="source-toggle" href="#"
|
271
|
-
onclick="toggleCode('
|
272
|
-
<div class="method-source-code" id="
|
301
|
+
onclick="toggleCode('M000155-source');return false;">[Source]</a></p>
|
302
|
+
<div class="method-source-code" id="M000155-source">
|
273
303
|
<pre>
|
274
|
-
<span class="ruby-comment cmt"># File lib/git/object.rb, line
|
304
|
+
<span class="ruby-comment cmt"># File lib/git/object.rb, line 170</span>
|
275
305
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">gtree</span>
|
276
306
|
<span class="ruby-identifier">check_commit</span>
|
277
307
|
<span class="ruby-constant">Tree</span>.<span class="ruby-identifier">new</span>(<span class="ruby-ivar">@base</span>, <span class="ruby-ivar">@tree</span>)
|
@@ -281,21 +311,21 @@ Alias for <a href="Commit.html#M000158">committer_date</a>
|
|
281
311
|
</div>
|
282
312
|
</div>
|
283
313
|
|
284
|
-
<div id="method-
|
285
|
-
<a name="
|
314
|
+
<div id="method-M000153" class="method-detail">
|
315
|
+
<a name="M000153"></a>
|
286
316
|
|
287
317
|
<div class="method-heading">
|
288
|
-
<a href="#
|
318
|
+
<a href="#M000153" class="method-signature">
|
289
319
|
<span class="method-name">message</span><span class="method-args">()</span>
|
290
320
|
</a>
|
291
321
|
</div>
|
292
322
|
|
293
323
|
<div class="method-description">
|
294
324
|
<p><a class="source-toggle" href="#"
|
295
|
-
onclick="toggleCode('
|
296
|
-
<div class="method-source-code" id="
|
325
|
+
onclick="toggleCode('M000153-source');return false;">[Source]</a></p>
|
326
|
+
<div class="method-source-code" id="M000153-source">
|
297
327
|
<pre>
|
298
|
-
<span class="ruby-comment cmt"># File lib/git/object.rb, line
|
328
|
+
<span class="ruby-comment cmt"># File lib/git/object.rb, line 161</span>
|
299
329
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">message</span>
|
300
330
|
<span class="ruby-identifier">check_commit</span>
|
301
331
|
<span class="ruby-ivar">@message</span>
|
@@ -305,21 +335,21 @@ Alias for <a href="Commit.html#M000158">committer_date</a>
|
|
305
335
|
</div>
|
306
336
|
</div>
|
307
337
|
|
308
|
-
<div id="method-
|
309
|
-
<a name="
|
338
|
+
<div id="method-M000154" class="method-detail">
|
339
|
+
<a name="M000154"></a>
|
310
340
|
|
311
341
|
<div class="method-heading">
|
312
|
-
<a href="#
|
342
|
+
<a href="#M000154" class="method-signature">
|
313
343
|
<span class="method-name">name</span><span class="method-args">()</span>
|
314
344
|
</a>
|
315
345
|
</div>
|
316
346
|
|
317
347
|
<div class="method-description">
|
318
348
|
<p><a class="source-toggle" href="#"
|
319
|
-
onclick="toggleCode('
|
320
|
-
<div class="method-source-code" id="
|
349
|
+
onclick="toggleCode('M000154-source');return false;">[Source]</a></p>
|
350
|
+
<div class="method-source-code" id="M000154-source">
|
321
351
|
<pre>
|
322
|
-
<span class="ruby-comment cmt"># File lib/git/object.rb, line
|
352
|
+
<span class="ruby-comment cmt"># File lib/git/object.rb, line 166</span>
|
323
353
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">name</span>
|
324
354
|
<span class="ruby-ivar">@base</span>.<span class="ruby-identifier">lib</span>.<span class="ruby-identifier">namerev</span>(<span class="ruby-identifier">sha</span>)
|
325
355
|
<span class="ruby-keyword kw">end</span>
|
@@ -328,21 +358,21 @@ Alias for <a href="Commit.html#M000158">committer_date</a>
|
|
328
358
|
</div>
|
329
359
|
</div>
|
330
360
|
|
331
|
-
<div id="method-
|
332
|
-
<a name="
|
361
|
+
<div id="method-M000156" class="method-detail">
|
362
|
+
<a name="M000156"></a>
|
333
363
|
|
334
364
|
<div class="method-heading">
|
335
|
-
<a href="#
|
365
|
+
<a href="#M000156" class="method-signature">
|
336
366
|
<span class="method-name">parent</span><span class="method-args">()</span>
|
337
367
|
</a>
|
338
368
|
</div>
|
339
369
|
|
340
370
|
<div class="method-description">
|
341
371
|
<p><a class="source-toggle" href="#"
|
342
|
-
onclick="toggleCode('
|
343
|
-
<div class="method-source-code" id="
|
372
|
+
onclick="toggleCode('M000156-source');return false;">[Source]</a></p>
|
373
|
+
<div class="method-source-code" id="M000156-source">
|
344
374
|
<pre>
|
345
|
-
<span class="ruby-comment cmt"># File lib/git/object.rb, line
|
375
|
+
<span class="ruby-comment cmt"># File lib/git/object.rb, line 175</span>
|
346
376
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">parent</span>
|
347
377
|
<span class="ruby-identifier">parents</span>.<span class="ruby-identifier">first</span>
|
348
378
|
<span class="ruby-keyword kw">end</span>
|
@@ -351,11 +381,11 @@ Alias for <a href="Commit.html#M000158">committer_date</a>
|
|
351
381
|
</div>
|
352
382
|
</div>
|
353
383
|
|
354
|
-
<div id="method-
|
355
|
-
<a name="
|
384
|
+
<div id="method-M000157" class="method-detail">
|
385
|
+
<a name="M000157"></a>
|
356
386
|
|
357
387
|
<div class="method-heading">
|
358
|
-
<a href="#
|
388
|
+
<a href="#M000157" class="method-signature">
|
359
389
|
<span class="method-name">parents</span><span class="method-args">()</span>
|
360
390
|
</a>
|
361
391
|
</div>
|
@@ -365,10 +395,10 @@ Alias for <a href="Commit.html#M000158">committer_date</a>
|
|
365
395
|
array of all parent commits
|
366
396
|
</p>
|
367
397
|
<p><a class="source-toggle" href="#"
|
368
|
-
onclick="toggleCode('
|
369
|
-
<div class="method-source-code" id="
|
398
|
+
onclick="toggleCode('M000157-source');return false;">[Source]</a></p>
|
399
|
+
<div class="method-source-code" id="M000157-source">
|
370
400
|
<pre>
|
371
|
-
<span class="ruby-comment cmt"># File lib/git/object.rb, line
|
401
|
+
<span class="ruby-comment cmt"># File lib/git/object.rb, line 180</span>
|
372
402
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">parents</span>
|
373
403
|
<span class="ruby-identifier">check_commit</span>
|
374
404
|
<span class="ruby-ivar">@parents</span>
|
@@ -378,6 +408,36 @@ array of all parent commits
|
|
378
408
|
</div>
|
379
409
|
</div>
|
380
410
|
|
411
|
+
<div id="method-M000164" class="method-detail">
|
412
|
+
<a name="M000164"></a>
|
413
|
+
|
414
|
+
<div class="method-heading">
|
415
|
+
<a href="#M000164" class="method-signature">
|
416
|
+
<span class="method-name">set_commit</span><span class="method-args">(data)</span>
|
417
|
+
</a>
|
418
|
+
</div>
|
419
|
+
|
420
|
+
<div class="method-description">
|
421
|
+
<p><a class="source-toggle" href="#"
|
422
|
+
onclick="toggleCode('M000164-source');return false;">[Source]</a></p>
|
423
|
+
<div class="method-source-code" id="M000164-source">
|
424
|
+
<pre>
|
425
|
+
<span class="ruby-comment cmt"># File lib/git/object.rb, line 210</span>
|
426
|
+
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">set_commit</span>(<span class="ruby-identifier">data</span>)
|
427
|
+
<span class="ruby-keyword kw">if</span> <span class="ruby-identifier">data</span>[<span class="ruby-value str">'sha'</span>]
|
428
|
+
<span class="ruby-ivar">@sha</span> = <span class="ruby-identifier">data</span>[<span class="ruby-value str">'sha'</span>]
|
429
|
+
<span class="ruby-keyword kw">end</span>
|
430
|
+
<span class="ruby-ivar">@committer</span> = <span class="ruby-constant">Git</span><span class="ruby-operator">::</span><span class="ruby-constant">Author</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">data</span>[<span class="ruby-value str">'committer'</span>])
|
431
|
+
<span class="ruby-ivar">@author</span> = <span class="ruby-constant">Git</span><span class="ruby-operator">::</span><span class="ruby-constant">Author</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">data</span>[<span class="ruby-value str">'author'</span>])
|
432
|
+
<span class="ruby-ivar">@tree</span> = <span class="ruby-constant">Tree</span>.<span class="ruby-identifier">new</span>(<span class="ruby-ivar">@base</span>, <span class="ruby-identifier">data</span>[<span class="ruby-value str">'tree'</span>])
|
433
|
+
<span class="ruby-ivar">@parents</span> = <span class="ruby-identifier">data</span>[<span class="ruby-value str">'parent'</span>].<span class="ruby-identifier">map</span>{ <span class="ruby-operator">|</span><span class="ruby-identifier">sha</span><span class="ruby-operator">|</span> <span class="ruby-constant">Commit</span>.<span class="ruby-identifier">new</span>(<span class="ruby-ivar">@base</span>, <span class="ruby-identifier">sha</span>) }
|
434
|
+
<span class="ruby-ivar">@message</span> = <span class="ruby-identifier">data</span>[<span class="ruby-value str">'message'</span>].<span class="ruby-identifier">chomp</span>
|
435
|
+
<span class="ruby-keyword kw">end</span>
|
436
|
+
</pre>
|
437
|
+
</div>
|
438
|
+
</div>
|
439
|
+
</div>
|
440
|
+
|
381
441
|
|
382
442
|
</div>
|
383
443
|
|
@@ -88,7 +88,7 @@
|
|
88
88
|
<h3 class="section-bar">Methods</h3>
|
89
89
|
|
90
90
|
<div class="name-list">
|
91
|
-
<a href="#
|
91
|
+
<a href="#M000180">new</a>
|
92
92
|
</div>
|
93
93
|
</div>
|
94
94
|
|
@@ -123,21 +123,21 @@
|
|
123
123
|
<div id="methods">
|
124
124
|
<h3 class="section-bar">Public Class methods</h3>
|
125
125
|
|
126
|
-
<div id="method-
|
127
|
-
<a name="
|
126
|
+
<div id="method-M000180" class="method-detail">
|
127
|
+
<a name="M000180"></a>
|
128
128
|
|
129
129
|
<div class="method-heading">
|
130
|
-
<a href="#
|
130
|
+
<a href="#M000180" class="method-signature">
|
131
131
|
<span class="method-name">new</span><span class="method-args">(base, sha, name)</span>
|
132
132
|
</a>
|
133
133
|
</div>
|
134
134
|
|
135
135
|
<div class="method-description">
|
136
136
|
<p><a class="source-toggle" href="#"
|
137
|
-
onclick="toggleCode('
|
138
|
-
<div class="method-source-code" id="
|
137
|
+
onclick="toggleCode('M000180-source');return false;">[Source]</a></p>
|
138
|
+
<div class="method-source-code" id="M000180-source">
|
139
139
|
<pre>
|
140
|
-
<span class="ruby-comment cmt"># File lib/git/object.rb, line
|
140
|
+
<span class="ruby-comment cmt"># File lib/git/object.rb, line 240</span>
|
141
141
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">base</span>, <span class="ruby-identifier">sha</span>, <span class="ruby-identifier">name</span>)
|
142
142
|
<span class="ruby-keyword kw">super</span>(<span class="ruby-identifier">base</span>, <span class="ruby-identifier">sha</span>)
|
143
143
|
<span class="ruby-ivar">@name</span> = <span class="ruby-identifier">name</span>
|