git 1.0.3 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
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
data/doc/classes/Git/Base.html
CHANGED
@@ -88,62 +88,62 @@
|
|
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="#
|
102
|
-
<a href="#
|
103
|
-
<a href="#
|
104
|
-
<a href="#
|
105
|
-
<a href="#
|
106
|
-
<a href="#
|
107
|
-
<a href="#
|
108
|
-
<a href="#
|
109
|
-
<a href="#
|
110
|
-
<a href="#
|
111
|
-
<a href="#
|
112
|
-
<a href="#
|
113
|
-
<a href="#
|
114
|
-
<a href="#
|
115
|
-
<a href="#
|
116
|
-
<a href="#
|
117
|
-
<a href="#
|
118
|
-
<a href="#
|
119
|
-
<a href="#
|
120
|
-
<a href="#
|
121
|
-
<a href="#
|
122
|
-
<a href="#
|
123
|
-
<a href="#
|
124
|
-
<a href="#
|
125
|
-
<a href="#
|
126
|
-
<a href="#
|
127
|
-
<a href="#
|
128
|
-
<a href="#
|
129
|
-
<a href="#
|
130
|
-
<a href="#
|
131
|
-
<a href="#
|
132
|
-
<a href="#
|
133
|
-
<a href="#
|
134
|
-
<a href="#
|
135
|
-
<a href="#
|
136
|
-
<a href="#
|
137
|
-
<a href="#
|
138
|
-
<a href="#
|
139
|
-
<a href="#
|
140
|
-
<a href="#
|
141
|
-
<a href="#
|
142
|
-
<a href="#
|
143
|
-
<a href="#
|
144
|
-
<a href="#
|
145
|
-
<a href="#
|
146
|
-
<a href="#
|
91
|
+
<a href="#M000116">add</a>
|
92
|
+
<a href="#M000128">add_remote</a>
|
93
|
+
<a href="#M000131">add_tag</a>
|
94
|
+
<a href="#M000132">archive</a>
|
95
|
+
<a href="#M000091">bare</a>
|
96
|
+
<a href="#M000111">branch</a>
|
97
|
+
<a href="#M000110">branches</a>
|
98
|
+
<a href="#M000101">chdir</a>
|
99
|
+
<a href="#M000122">checkout</a>
|
100
|
+
<a href="#M000136">checkout_index</a>
|
101
|
+
<a href="#M000094">clone</a>
|
102
|
+
<a href="#M000120">commit</a>
|
103
|
+
<a href="#M000121">commit_all</a>
|
104
|
+
<a href="#M000139">commit_tree</a>
|
105
|
+
<a href="#M000103">config</a>
|
106
|
+
<a href="#M000146">current_branch</a>
|
107
|
+
<a href="#M000115">diff</a>
|
108
|
+
<a href="#M000096">dir</a>
|
109
|
+
<a href="#M000123">fetch</a>
|
110
|
+
<a href="#M000107">gblob</a>
|
111
|
+
<a href="#M000106">gcommit</a>
|
112
|
+
<a href="#M000114">grep</a>
|
113
|
+
<a href="#M000105">gtree</a>
|
114
|
+
<a href="#M000098">index</a>
|
115
|
+
<a href="#M000093">init</a>
|
116
|
+
<a href="#M000113">lib</a>
|
117
|
+
<a href="#M000108">log</a>
|
118
|
+
<a href="#M000142">ls_files</a>
|
119
|
+
<a href="#M000125">merge</a>
|
120
|
+
<a href="#M000095">new</a>
|
121
|
+
<a href="#M000104">object</a>
|
122
|
+
<a href="#M000092">open</a>
|
123
|
+
<a href="#M000126">pull</a>
|
124
|
+
<a href="#M000124">push</a>
|
125
|
+
<a href="#M000137">read_tree</a>
|
126
|
+
<a href="#M000112">remote</a>
|
127
|
+
<a href="#M000127">remotes</a>
|
128
|
+
<a href="#M000117">remove</a>
|
129
|
+
<a href="#M000133">repack</a>
|
130
|
+
<a href="#M000097">repo</a>
|
131
|
+
<a href="#M000102">repo_size</a>
|
132
|
+
<a href="#M000118">reset</a>
|
133
|
+
<a href="#M000119">reset_hard</a>
|
134
|
+
<a href="#M000145">revparse</a>
|
135
|
+
<a href="#M000100">set_index</a>
|
136
|
+
<a href="#M000099">set_working</a>
|
137
|
+
<a href="#M000109">status</a>
|
138
|
+
<a href="#M000130">tag</a>
|
139
|
+
<a href="#M000129">tags</a>
|
140
|
+
<a href="#M000141">update_ref</a>
|
141
|
+
<a href="#M000134">with_index</a>
|
142
|
+
<a href="#M000135">with_temp_index</a>
|
143
|
+
<a href="#M000144">with_temp_working</a>
|
144
|
+
<a href="#M000143">with_working</a>
|
145
|
+
<a href="#M000140">write_and_commit_tree</a>
|
146
|
+
<a href="#M000138">write_tree</a>
|
147
147
|
</div>
|
148
148
|
</div>
|
149
149
|
|
@@ -165,11 +165,11 @@
|
|
165
165
|
<div id="methods">
|
166
166
|
<h3 class="section-bar">Public Class methods</h3>
|
167
167
|
|
168
|
-
<div id="method-
|
169
|
-
<a name="
|
168
|
+
<div id="method-M000091" class="method-detail">
|
169
|
+
<a name="M000091"></a>
|
170
170
|
|
171
171
|
<div class="method-heading">
|
172
|
-
<a href="#
|
172
|
+
<a href="#M000091" class="method-signature">
|
173
173
|
<span class="method-name">bare</span><span class="method-args">(git_dir)</span>
|
174
174
|
</a>
|
175
175
|
</div>
|
@@ -180,8 +180,8 @@ opens a bare <a href="../Git.html">Git</a> <a
|
|
180
180
|
href="Repository.html">Repository</a> - no working directory options
|
181
181
|
</p>
|
182
182
|
<p><a class="source-toggle" href="#"
|
183
|
-
onclick="toggleCode('
|
184
|
-
<div class="method-source-code" id="
|
183
|
+
onclick="toggleCode('M000091-source');return false;">[Source]</a></p>
|
184
|
+
<div class="method-source-code" id="M000091-source">
|
185
185
|
<pre>
|
186
186
|
<span class="ruby-comment cmt"># File lib/git/base.rb, line 12</span>
|
187
187
|
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">bare</span>(<span class="ruby-identifier">git_dir</span>)
|
@@ -192,11 +192,11 @@ href="Repository.html">Repository</a> - no working directory options
|
|
192
192
|
</div>
|
193
193
|
</div>
|
194
194
|
|
195
|
-
<div id="method-
|
196
|
-
<a name="
|
195
|
+
<div id="method-M000094" class="method-detail">
|
196
|
+
<a name="M000094"></a>
|
197
197
|
|
198
198
|
<div class="method-heading">
|
199
|
-
<a href="#
|
199
|
+
<a href="#M000094" class="method-signature">
|
200
200
|
<span class="method-name">clone</span><span class="method-args">(repository, name, opts = {})</span>
|
201
201
|
</a>
|
202
202
|
</div>
|
@@ -221,8 +221,8 @@ options:
|
|
221
221
|
:index_file
|
222
222
|
</pre>
|
223
223
|
<p><a class="source-toggle" href="#"
|
224
|
-
onclick="toggleCode('
|
225
|
-
<div class="method-source-code" id="
|
224
|
+
onclick="toggleCode('M000094-source');return false;">[Source]</a></p>
|
225
|
+
<div class="method-source-code" id="M000094-source">
|
226
226
|
<pre>
|
227
227
|
<span class="ruby-comment cmt"># File lib/git/base.rb, line 60</span>
|
228
228
|
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">clone</span>(<span class="ruby-identifier">repository</span>, <span class="ruby-identifier">name</span>, <span class="ruby-identifier">opts</span> = {})
|
@@ -234,11 +234,11 @@ options:
|
|
234
234
|
</div>
|
235
235
|
</div>
|
236
236
|
|
237
|
-
<div id="method-
|
238
|
-
<a name="
|
237
|
+
<div id="method-M000093" class="method-detail">
|
238
|
+
<a name="M000093"></a>
|
239
239
|
|
240
240
|
<div class="method-heading">
|
241
|
-
<a href="#
|
241
|
+
<a href="#M000093" class="method-signature">
|
242
242
|
<span class="method-name">init</span><span class="method-args">(working_dir, opts = {})</span>
|
243
243
|
</a>
|
244
244
|
</div>
|
@@ -255,8 +255,8 @@ options:
|
|
255
255
|
:index_file
|
256
256
|
</pre>
|
257
257
|
<p><a class="source-toggle" href="#"
|
258
|
-
onclick="toggleCode('
|
259
|
-
<div class="method-source-code" id="
|
258
|
+
onclick="toggleCode('M000093-source');return false;">[Source]</a></p>
|
259
|
+
<div class="method-source-code" id="M000093-source">
|
260
260
|
<pre>
|
261
261
|
<span class="ruby-comment cmt"># File lib/git/base.rb, line 31</span>
|
262
262
|
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">init</span>(<span class="ruby-identifier">working_dir</span>, <span class="ruby-identifier">opts</span> = {})
|
@@ -279,19 +279,19 @@ options:
|
|
279
279
|
</div>
|
280
280
|
</div>
|
281
281
|
|
282
|
-
<div id="method-
|
283
|
-
<a name="
|
282
|
+
<div id="method-M000095" class="method-detail">
|
283
|
+
<a name="M000095"></a>
|
284
284
|
|
285
285
|
<div class="method-heading">
|
286
|
-
<a href="#
|
286
|
+
<a href="#M000095" class="method-signature">
|
287
287
|
<span class="method-name">new</span><span class="method-args">(options = {})</span>
|
288
288
|
</a>
|
289
289
|
</div>
|
290
290
|
|
291
291
|
<div class="method-description">
|
292
292
|
<p><a class="source-toggle" href="#"
|
293
|
-
onclick="toggleCode('
|
294
|
-
<div class="method-source-code" id="
|
293
|
+
onclick="toggleCode('M000095-source');return false;">[Source]</a></p>
|
294
|
+
<div class="method-source-code" id="M000095-source">
|
295
295
|
<pre>
|
296
296
|
<span class="ruby-comment cmt"># File lib/git/base.rb, line 65</span>
|
297
297
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">options</span> = {})
|
@@ -309,11 +309,11 @@ options:
|
|
309
309
|
</div>
|
310
310
|
</div>
|
311
311
|
|
312
|
-
<div id="method-
|
313
|
-
<a name="
|
312
|
+
<div id="method-M000092" class="method-detail">
|
313
|
+
<a name="M000092"></a>
|
314
314
|
|
315
315
|
<div class="method-heading">
|
316
|
-
<a href="#
|
316
|
+
<a href="#M000092" class="method-signature">
|
317
317
|
<span class="method-name">open</span><span class="method-args">(working_dir, opts={})</span>
|
318
318
|
</a>
|
319
319
|
</div>
|
@@ -324,8 +324,8 @@ opens a new <a href="../Git.html">Git</a> Project from a working directory
|
|
324
324
|
you can specify non-standard git_dir and index file in the options
|
325
325
|
</p>
|
326
326
|
<p><a class="source-toggle" href="#"
|
327
|
-
onclick="toggleCode('
|
328
|
-
<div class="method-source-code" id="
|
327
|
+
onclick="toggleCode('M000092-source');return false;">[Source]</a></p>
|
328
|
+
<div class="method-source-code" id="M000092-source">
|
329
329
|
<pre>
|
330
330
|
<span class="ruby-comment cmt"># File lib/git/base.rb, line 18</span>
|
331
331
|
<span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">open</span>(<span class="ruby-identifier">working_dir</span>, <span class="ruby-identifier">opts</span>={})
|
@@ -341,11 +341,11 @@ you can specify non-standard git_dir and index file in the options
|
|
341
341
|
|
342
342
|
<h3 class="section-bar">Public Instance methods</h3>
|
343
343
|
|
344
|
-
<div id="method-
|
345
|
-
<a name="
|
344
|
+
<div id="method-M000116" class="method-detail">
|
345
|
+
<a name="M000116"></a>
|
346
346
|
|
347
347
|
<div class="method-heading">
|
348
|
-
<a href="#
|
348
|
+
<a href="#M000116" class="method-signature">
|
349
349
|
<span class="method-name">add</span><span class="method-args">(path = '.')</span>
|
350
350
|
</a>
|
351
351
|
</div>
|
@@ -355,8 +355,8 @@ you can specify non-standard git_dir and index file in the options
|
|
355
355
|
adds files from the working directory to the git repository
|
356
356
|
</p>
|
357
357
|
<p><a class="source-toggle" href="#"
|
358
|
-
onclick="toggleCode('
|
359
|
-
<div class="method-source-code" id="
|
358
|
+
onclick="toggleCode('M000116-source');return false;">[Source]</a></p>
|
359
|
+
<div class="method-source-code" id="M000116-source">
|
360
360
|
<pre>
|
361
361
|
<span class="ruby-comment cmt"># File lib/git/base.rb, line 234</span>
|
362
362
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add</span>(<span class="ruby-identifier">path</span> = <span class="ruby-value str">'.'</span>)
|
@@ -367,11 +367,11 @@ adds files from the working directory to the git repository
|
|
367
367
|
</div>
|
368
368
|
</div>
|
369
369
|
|
370
|
-
<div id="method-
|
371
|
-
<a name="
|
370
|
+
<div id="method-M000128" class="method-detail">
|
371
|
+
<a name="M000128"></a>
|
372
372
|
|
373
373
|
<div class="method-heading">
|
374
|
-
<a href="#
|
374
|
+
<a href="#M000128" class="method-signature">
|
375
375
|
<span class="method-name">add_remote</span><span class="method-args">(name, url, opts = {})</span>
|
376
376
|
</a>
|
377
377
|
</div>
|
@@ -387,8 +387,8 @@ href="Base.html">Git::Base</a> object if it’s a local reference
|
|
387
387
|
@git.merge('scotts_git/master')
|
388
388
|
</pre>
|
389
389
|
<p><a class="source-toggle" href="#"
|
390
|
-
onclick="toggleCode('
|
391
|
-
<div class="method-source-code" id="
|
390
|
+
onclick="toggleCode('M000128-source');return false;">[Source]</a></p>
|
391
|
+
<div class="method-source-code" id="M000128-source">
|
392
392
|
<pre>
|
393
393
|
<span class="ruby-comment cmt"># File lib/git/base.rb, line 312</span>
|
394
394
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_remote</span>(<span class="ruby-identifier">name</span>, <span class="ruby-identifier">url</span>, <span class="ruby-identifier">opts</span> = {})
|
@@ -403,11 +403,11 @@ href="Base.html">Git::Base</a> object if it’s a local reference
|
|
403
403
|
</div>
|
404
404
|
</div>
|
405
405
|
|
406
|
-
<div id="method-
|
407
|
-
<a name="
|
406
|
+
<div id="method-M000131" class="method-detail">
|
407
|
+
<a name="M000131"></a>
|
408
408
|
|
409
409
|
<div class="method-heading">
|
410
|
-
<a href="#
|
410
|
+
<a href="#M000131" class="method-signature">
|
411
411
|
<span class="method-name">add_tag</span><span class="method-args">(tag_name)</span>
|
412
412
|
</a>
|
413
413
|
</div>
|
@@ -417,8 +417,8 @@ href="Base.html">Git::Base</a> object if it’s a local reference
|
|
417
417
|
creates a new git tag (Git::Tag)
|
418
418
|
</p>
|
419
419
|
<p><a class="source-toggle" href="#"
|
420
|
-
onclick="toggleCode('
|
421
|
-
<div class="method-source-code" id="
|
420
|
+
onclick="toggleCode('M000131-source');return false;">[Source]</a></p>
|
421
|
+
<div class="method-source-code" id="M000131-source">
|
422
422
|
<pre>
|
423
423
|
<span class="ruby-comment cmt"># File lib/git/base.rb, line 331</span>
|
424
424
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_tag</span>(<span class="ruby-identifier">tag_name</span>)
|
@@ -430,11 +430,11 @@ creates a new git tag (Git::Tag)
|
|
430
430
|
</div>
|
431
431
|
</div>
|
432
432
|
|
433
|
-
<div id="method-
|
434
|
-
<a name="
|
433
|
+
<div id="method-M000132" class="method-detail">
|
434
|
+
<a name="M000132"></a>
|
435
435
|
|
436
436
|
<div class="method-heading">
|
437
|
-
<a href="#
|
437
|
+
<a href="#M000132" class="method-signature">
|
438
438
|
<span class="method-name">archive</span><span class="method-args">(treeish, file = nil, opts = {})</span>
|
439
439
|
</a>
|
440
440
|
</div>
|
@@ -444,8 +444,8 @@ creates a new git tag (Git::Tag)
|
|
444
444
|
creates an archive file of the given tree-ish
|
445
445
|
</p>
|
446
446
|
<p><a class="source-toggle" href="#"
|
447
|
-
onclick="toggleCode('
|
448
|
-
<div class="method-source-code" id="
|
447
|
+
onclick="toggleCode('M000132-source');return false;">[Source]</a></p>
|
448
|
+
<div class="method-source-code" id="M000132-source">
|
449
449
|
<pre>
|
450
450
|
<span class="ruby-comment cmt"># File lib/git/base.rb, line 337</span>
|
451
451
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">archive</span>(<span class="ruby-identifier">treeish</span>, <span class="ruby-identifier">file</span> = <span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">opts</span> = {})
|
@@ -456,11 +456,11 @@ creates an archive file of the given tree-ish
|
|
456
456
|
</div>
|
457
457
|
</div>
|
458
458
|
|
459
|
-
<div id="method-
|
460
|
-
<a name="
|
459
|
+
<div id="method-M000111" class="method-detail">
|
460
|
+
<a name="M000111"></a>
|
461
461
|
|
462
462
|
<div class="method-heading">
|
463
|
-
<a href="#
|
463
|
+
<a href="#M000111" class="method-signature">
|
464
464
|
<span class="method-name">branch</span><span class="method-args">(branch_name = 'master')</span>
|
465
465
|
</a>
|
466
466
|
</div>
|
@@ -470,8 +470,8 @@ creates an archive file of the given tree-ish
|
|
470
470
|
returns a <a href="Branch.html">Git::Branch</a> object for branch_name
|
471
471
|
</p>
|
472
472
|
<p><a class="source-toggle" href="#"
|
473
|
-
onclick="toggleCode('
|
474
|
-
<div class="method-source-code" id="
|
473
|
+
onclick="toggleCode('M000111-source');return false;">[Source]</a></p>
|
474
|
+
<div class="method-source-code" id="M000111-source">
|
475
475
|
<pre>
|
476
476
|
<span class="ruby-comment cmt"># File lib/git/base.rb, line 189</span>
|
477
477
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">branch</span>(<span class="ruby-identifier">branch_name</span> = <span class="ruby-value str">'master'</span>)
|
@@ -482,11 +482,11 @@ returns a <a href="Branch.html">Git::Branch</a> object for branch_name
|
|
482
482
|
</div>
|
483
483
|
</div>
|
484
484
|
|
485
|
-
<div id="method-
|
486
|
-
<a name="
|
485
|
+
<div id="method-M000110" class="method-detail">
|
486
|
+
<a name="M000110"></a>
|
487
487
|
|
488
488
|
<div class="method-heading">
|
489
|
-
<a href="#
|
489
|
+
<a href="#M000110" class="method-signature">
|
490
490
|
<span class="method-name">branches</span><span class="method-args">()</span>
|
491
491
|
</a>
|
492
492
|
</div>
|
@@ -497,8 +497,8 @@ returns a <a href="Branches.html">Git::Branches</a> object of all the <a
|
|
497
497
|
href="Branch.html">Git::Branch</a> objects for this repo
|
498
498
|
</p>
|
499
499
|
<p><a class="source-toggle" href="#"
|
500
|
-
onclick="toggleCode('
|
501
|
-
<div class="method-source-code" id="
|
500
|
+
onclick="toggleCode('M000110-source');return false;">[Source]</a></p>
|
501
|
+
<div class="method-source-code" id="M000110-source">
|
502
502
|
<pre>
|
503
503
|
<span class="ruby-comment cmt"># File lib/git/base.rb, line 184</span>
|
504
504
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">branches</span>
|
@@ -509,11 +509,11 @@ href="Branch.html">Git::Branch</a> objects for this repo
|
|
509
509
|
</div>
|
510
510
|
</div>
|
511
511
|
|
512
|
-
<div id="method-
|
513
|
-
<a name="
|
512
|
+
<div id="method-M000101" class="method-detail">
|
513
|
+
<a name="M000101"></a>
|
514
514
|
|
515
515
|
<div class="method-heading">
|
516
|
-
<a href="#
|
516
|
+
<a href="#M000101" class="method-signature">
|
517
517
|
<span class="method-name">chdir</span><span class="method-args">() {|dir.path| ...}</span>
|
518
518
|
</a>
|
519
519
|
</div>
|
@@ -533,8 +533,8 @@ example
|
|
533
533
|
end
|
534
534
|
</pre>
|
535
535
|
<p><a class="source-toggle" href="#"
|
536
|
-
onclick="toggleCode('
|
537
|
-
<div class="method-source-code" id="
|
536
|
+
onclick="toggleCode('M000101-source');return false;">[Source]</a></p>
|
537
|
+
<div class="method-source-code" id="M000101-source">
|
538
538
|
<pre>
|
539
539
|
<span class="ruby-comment cmt"># File lib/git/base.rb, line 115</span>
|
540
540
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">chdir</span>
|
@@ -547,11 +547,11 @@ example
|
|
547
547
|
</div>
|
548
548
|
</div>
|
549
549
|
|
550
|
-
<div id="method-
|
551
|
-
<a name="
|
550
|
+
<div id="method-M000122" class="method-detail">
|
551
|
+
<a name="M000122"></a>
|
552
552
|
|
553
553
|
<div class="method-heading">
|
554
|
-
<a href="#
|
554
|
+
<a href="#M000122" class="method-signature">
|
555
555
|
<span class="method-name">checkout</span><span class="method-args">(branch = 'master', opts = {})</span>
|
556
556
|
</a>
|
557
557
|
</div>
|
@@ -561,8 +561,8 @@ example
|
|
561
561
|
checks out a branch as the new git working directory
|
562
562
|
</p>
|
563
563
|
<p><a class="source-toggle" href="#"
|
564
|
-
onclick="toggleCode('
|
565
|
-
<div class="method-source-code" id="
|
564
|
+
onclick="toggleCode('M000122-source');return false;">[Source]</a></p>
|
565
|
+
<div class="method-source-code" id="M000122-source">
|
566
566
|
<pre>
|
567
567
|
<span class="ruby-comment cmt"># File lib/git/base.rb, line 268</span>
|
568
568
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">checkout</span>(<span class="ruby-identifier">branch</span> = <span class="ruby-value str">'master'</span>, <span class="ruby-identifier">opts</span> = {})
|
@@ -573,19 +573,19 @@ checks out a branch as the new git working directory
|
|
573
573
|
</div>
|
574
574
|
</div>
|
575
575
|
|
576
|
-
<div id="method-
|
577
|
-
<a name="
|
576
|
+
<div id="method-M000136" class="method-detail">
|
577
|
+
<a name="M000136"></a>
|
578
578
|
|
579
579
|
<div class="method-heading">
|
580
|
-
<a href="#
|
580
|
+
<a href="#M000136" class="method-signature">
|
581
581
|
<span class="method-name">checkout_index</span><span class="method-args">(opts = {})</span>
|
582
582
|
</a>
|
583
583
|
</div>
|
584
584
|
|
585
585
|
<div class="method-description">
|
586
586
|
<p><a class="source-toggle" href="#"
|
587
|
-
onclick="toggleCode('
|
588
|
-
<div class="method-source-code" id="
|
587
|
+
onclick="toggleCode('M000136-source');return false;">[Source]</a></p>
|
588
|
+
<div class="method-source-code" id="M000136-source">
|
589
589
|
<pre>
|
590
590
|
<span class="ruby-comment cmt"># File lib/git/base.rb, line 364</span>
|
591
591
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">checkout_index</span>(<span class="ruby-identifier">opts</span> = {})
|
@@ -596,11 +596,11 @@ checks out a branch as the new git working directory
|
|
596
596
|
</div>
|
597
597
|
</div>
|
598
598
|
|
599
|
-
<div id="method-
|
600
|
-
<a name="
|
599
|
+
<div id="method-M000120" class="method-detail">
|
600
|
+
<a name="M000120"></a>
|
601
601
|
|
602
602
|
<div class="method-heading">
|
603
|
-
<a href="#
|
603
|
+
<a href="#M000120" class="method-signature">
|
604
604
|
<span class="method-name">commit</span><span class="method-args">(message, opts = {})</span>
|
605
605
|
</a>
|
606
606
|
</div>
|
@@ -610,8 +610,8 @@ checks out a branch as the new git working directory
|
|
610
610
|
commits all pending changes in the index file to the git repository
|
611
611
|
</p>
|
612
612
|
<p><a class="source-toggle" href="#"
|
613
|
-
onclick="toggleCode('
|
614
|
-
<div class="method-source-code" id="
|
613
|
+
onclick="toggleCode('M000120-source');return false;">[Source]</a></p>
|
614
|
+
<div class="method-source-code" id="M000120-source">
|
615
615
|
<pre>
|
616
616
|
<span class="ruby-comment cmt"># File lib/git/base.rb, line 255</span>
|
617
617
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">commit</span>(<span class="ruby-identifier">message</span>, <span class="ruby-identifier">opts</span> = {})
|
@@ -622,11 +622,11 @@ commits all pending changes in the index file to the git repository
|
|
622
622
|
</div>
|
623
623
|
</div>
|
624
624
|
|
625
|
-
<div id="method-
|
626
|
-
<a name="
|
625
|
+
<div id="method-M000121" class="method-detail">
|
626
|
+
<a name="M000121"></a>
|
627
627
|
|
628
628
|
<div class="method-heading">
|
629
|
-
<a href="#
|
629
|
+
<a href="#M000121" class="method-signature">
|
630
630
|
<span class="method-name">commit_all</span><span class="method-args">(message, opts = {})</span>
|
631
631
|
</a>
|
632
632
|
</div>
|
@@ -638,8 +638,8 @@ automatically adds all modified files without having to explicitly calling
|
|
638
638
|
@git.add() on them.
|
639
639
|
</p>
|
640
640
|
<p><a class="source-toggle" href="#"
|
641
|
-
onclick="toggleCode('
|
642
|
-
<div class="method-source-code" id="
|
641
|
+
onclick="toggleCode('M000121-source');return false;">[Source]</a></p>
|
642
|
+
<div class="method-source-code" id="M000121-source">
|
643
643
|
<pre>
|
644
644
|
<span class="ruby-comment cmt"># File lib/git/base.rb, line 262</span>
|
645
645
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">commit_all</span>(<span class="ruby-identifier">message</span>, <span class="ruby-identifier">opts</span> = {})
|
@@ -651,19 +651,19 @@ automatically adds all modified files without having to explicitly calling
|
|
651
651
|
</div>
|
652
652
|
</div>
|
653
653
|
|
654
|
-
<div id="method-
|
655
|
-
<a name="
|
654
|
+
<div id="method-M000139" class="method-detail">
|
655
|
+
<a name="M000139"></a>
|
656
656
|
|
657
657
|
<div class="method-heading">
|
658
|
-
<a href="#
|
658
|
+
<a href="#M000139" class="method-signature">
|
659
659
|
<span class="method-name">commit_tree</span><span class="method-args">(tree = nil, opts = {})</span>
|
660
660
|
</a>
|
661
661
|
</div>
|
662
662
|
|
663
663
|
<div class="method-description">
|
664
664
|
<p><a class="source-toggle" href="#"
|
665
|
-
onclick="toggleCode('
|
666
|
-
<div class="method-source-code" id="
|
665
|
+
onclick="toggleCode('M000139-source');return false;">[Source]</a></p>
|
666
|
+
<div class="method-source-code" id="M000139-source">
|
667
667
|
<pre>
|
668
668
|
<span class="ruby-comment cmt"># File lib/git/base.rb, line 376</span>
|
669
669
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">commit_tree</span>(<span class="ruby-identifier">tree</span> = <span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">opts</span> = {})
|
@@ -674,11 +674,11 @@ automatically adds all modified files without having to explicitly calling
|
|
674
674
|
</div>
|
675
675
|
</div>
|
676
676
|
|
677
|
-
<div id="method-
|
678
|
-
<a name="
|
677
|
+
<div id="method-M000103" class="method-detail">
|
678
|
+
<a name="M000103"></a>
|
679
679
|
|
680
680
|
<div class="method-heading">
|
681
|
-
<a href="#
|
681
|
+
<a href="#M000103" class="method-signature">
|
682
682
|
<span class="method-name">config</span><span class="method-args">(name = nil, value = nil)</span>
|
683
683
|
</a>
|
684
684
|
</div>
|
@@ -691,8 +691,8 @@ value g.config(‘user.name’) # returns ‘Scott
|
|
691
691
|
Chacon’ g.config # returns whole config hash
|
692
692
|
</p>
|
693
693
|
<p><a class="source-toggle" href="#"
|
694
|
-
onclick="toggleCode('
|
695
|
-
<div class="method-source-code" id="
|
694
|
+
onclick="toggleCode('M000103-source');return false;">[Source]</a></p>
|
695
|
+
<div class="method-source-code" id="M000103-source">
|
696
696
|
<pre>
|
697
697
|
<span class="ruby-comment cmt"># File lib/git/base.rb, line 134</span>
|
698
698
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">config</span>(<span class="ruby-identifier">name</span> = <span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">value</span> = <span class="ruby-keyword kw">nil</span>)
|
@@ -712,11 +712,11 @@ Chacon’ g.config # returns whole config hash
|
|
712
712
|
</div>
|
713
713
|
</div>
|
714
714
|
|
715
|
-
<div id="method-
|
716
|
-
<a name="
|
715
|
+
<div id="method-M000146" class="method-detail">
|
716
|
+
<a name="M000146"></a>
|
717
717
|
|
718
718
|
<div class="method-heading">
|
719
|
-
<a href="#
|
719
|
+
<a href="#M000146" class="method-signature">
|
720
720
|
<span class="method-name">current_branch</span><span class="method-args">()</span>
|
721
721
|
</a>
|
722
722
|
</div>
|
@@ -726,8 +726,8 @@ Chacon’ g.config # returns whole config hash
|
|
726
726
|
returns the name of the branch the working directory is currently on
|
727
727
|
</p>
|
728
728
|
<p><a class="source-toggle" href="#"
|
729
|
-
onclick="toggleCode('
|
730
|
-
<div class="method-source-code" id="
|
729
|
+
onclick="toggleCode('M000146-source');return false;">[Source]</a></p>
|
730
|
+
<div class="method-source-code" id="M000146-source">
|
731
731
|
<pre>
|
732
732
|
<span class="ruby-comment cmt"># File lib/git/base.rb, line 425</span>
|
733
733
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">current_branch</span>
|
@@ -738,11 +738,11 @@ returns the name of the branch the working directory is currently on
|
|
738
738
|
</div>
|
739
739
|
</div>
|
740
740
|
|
741
|
-
<div id="method-
|
742
|
-
<a name="
|
741
|
+
<div id="method-M000115" class="method-detail">
|
742
|
+
<a name="M000115"></a>
|
743
743
|
|
744
744
|
<div class="method-heading">
|
745
|
-
<a href="#
|
745
|
+
<a href="#M000115" class="method-signature">
|
746
746
|
<span class="method-name">diff</span><span class="method-args">(objectish = 'HEAD', obj2 = nil)</span>
|
747
747
|
</a>
|
748
748
|
</div>
|
@@ -752,8 +752,8 @@ returns the name of the branch the working directory is currently on
|
|
752
752
|
returns a <a href="Diff.html">Git::Diff</a> object
|
753
753
|
</p>
|
754
754
|
<p><a class="source-toggle" href="#"
|
755
|
-
onclick="toggleCode('
|
756
|
-
<div class="method-source-code" id="
|
755
|
+
onclick="toggleCode('M000115-source');return false;">[Source]</a></p>
|
756
|
+
<div class="method-source-code" id="M000115-source">
|
757
757
|
<pre>
|
758
758
|
<span class="ruby-comment cmt"># File lib/git/base.rb, line 229</span>
|
759
759
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">diff</span>(<span class="ruby-identifier">objectish</span> = <span class="ruby-value str">'HEAD'</span>, <span class="ruby-identifier">obj2</span> = <span class="ruby-keyword kw">nil</span>)
|
@@ -764,11 +764,11 @@ returns a <a href="Diff.html">Git::Diff</a> object
|
|
764
764
|
</div>
|
765
765
|
</div>
|
766
766
|
|
767
|
-
<div id="method-
|
768
|
-
<a name="
|
767
|
+
<div id="method-M000096" class="method-detail">
|
768
|
+
<a name="M000096"></a>
|
769
769
|
|
770
770
|
<div class="method-heading">
|
771
|
-
<a href="#
|
771
|
+
<a href="#M000096" class="method-signature">
|
772
772
|
<span class="method-name">dir</span><span class="method-args">()</span>
|
773
773
|
</a>
|
774
774
|
</div>
|
@@ -782,8 +782,8 @@ returns a reference to the working directory
|
|
782
782
|
@git.dir.writeable?
|
783
783
|
</pre>
|
784
784
|
<p><a class="source-toggle" href="#"
|
785
|
-
onclick="toggleCode('
|
786
|
-
<div class="method-source-code" id="
|
785
|
+
onclick="toggleCode('M000096-source');return false;">[Source]</a></p>
|
786
|
+
<div class="method-source-code" id="M000096-source">
|
787
787
|
<pre>
|
788
788
|
<span class="ruby-comment cmt"># File lib/git/base.rb, line 80</span>
|
789
789
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">dir</span>
|
@@ -794,11 +794,11 @@ returns a reference to the working directory
|
|
794
794
|
</div>
|
795
795
|
</div>
|
796
796
|
|
797
|
-
<div id="method-
|
798
|
-
<a name="
|
797
|
+
<div id="method-M000123" class="method-detail">
|
798
|
+
<a name="M000123"></a>
|
799
799
|
|
800
800
|
<div class="method-heading">
|
801
|
-
<a href="#
|
801
|
+
<a href="#M000123" class="method-signature">
|
802
802
|
<span class="method-name">fetch</span><span class="method-args">(remote = 'origin')</span>
|
803
803
|
</a>
|
804
804
|
</div>
|
@@ -809,8 +809,8 @@ fetches changes from a remote branch - this does not modify the working
|
|
809
809
|
directory, it just gets the changes from the remote if there are any
|
810
810
|
</p>
|
811
811
|
<p><a class="source-toggle" href="#"
|
812
|
-
onclick="toggleCode('
|
813
|
-
<div class="method-source-code" id="
|
812
|
+
onclick="toggleCode('M000123-source');return false;">[Source]</a></p>
|
813
|
+
<div class="method-source-code" id="M000123-source">
|
814
814
|
<pre>
|
815
815
|
<span class="ruby-comment cmt"># File lib/git/base.rb, line 274</span>
|
816
816
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">fetch</span>(<span class="ruby-identifier">remote</span> = <span class="ruby-value str">'origin'</span>)
|
@@ -821,19 +821,19 @@ directory, it just gets the changes from the remote if there are any
|
|
821
821
|
</div>
|
822
822
|
</div>
|
823
823
|
|
824
|
-
<div id="method-
|
825
|
-
<a name="
|
824
|
+
<div id="method-M000107" class="method-detail">
|
825
|
+
<a name="M000107"></a>
|
826
826
|
|
827
827
|
<div class="method-heading">
|
828
|
-
<a href="#
|
828
|
+
<a href="#M000107" class="method-signature">
|
829
829
|
<span class="method-name">gblob</span><span class="method-args">(objectish)</span>
|
830
830
|
</a>
|
831
831
|
</div>
|
832
832
|
|
833
833
|
<div class="method-description">
|
834
834
|
<p><a class="source-toggle" href="#"
|
835
|
-
onclick="toggleCode('
|
836
|
-
<div class="method-source-code" id="
|
835
|
+
onclick="toggleCode('M000107-source');return false;">[Source]</a></p>
|
836
|
+
<div class="method-source-code" id="M000107-source">
|
837
837
|
<pre>
|
838
838
|
<span class="ruby-comment cmt"># File lib/git/base.rb, line 169</span>
|
839
839
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">gblob</span>(<span class="ruby-identifier">objectish</span>)
|
@@ -844,19 +844,19 @@ directory, it just gets the changes from the remote if there are any
|
|
844
844
|
</div>
|
845
845
|
</div>
|
846
846
|
|
847
|
-
<div id="method-
|
848
|
-
<a name="
|
847
|
+
<div id="method-M000106" class="method-detail">
|
848
|
+
<a name="M000106"></a>
|
849
849
|
|
850
850
|
<div class="method-heading">
|
851
|
-
<a href="#
|
851
|
+
<a href="#M000106" class="method-signature">
|
852
852
|
<span class="method-name">gcommit</span><span class="method-args">(objectish)</span>
|
853
853
|
</a>
|
854
854
|
</div>
|
855
855
|
|
856
856
|
<div class="method-description">
|
857
857
|
<p><a class="source-toggle" href="#"
|
858
|
-
onclick="toggleCode('
|
859
|
-
<div class="method-source-code" id="
|
858
|
+
onclick="toggleCode('M000106-source');return false;">[Source]</a></p>
|
859
|
+
<div class="method-source-code" id="M000106-source">
|
860
860
|
<pre>
|
861
861
|
<span class="ruby-comment cmt"># File lib/git/base.rb, line 165</span>
|
862
862
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">gcommit</span>(<span class="ruby-identifier">objectish</span>)
|
@@ -867,11 +867,11 @@ directory, it just gets the changes from the remote if there are any
|
|
867
867
|
</div>
|
868
868
|
</div>
|
869
869
|
|
870
|
-
<div id="method-
|
871
|
-
<a name="
|
870
|
+
<div id="method-M000114" class="method-detail">
|
871
|
+
<a name="M000114"></a>
|
872
872
|
|
873
873
|
<div class="method-heading">
|
874
|
-
<a href="#
|
874
|
+
<a href="#M000114" class="method-signature">
|
875
875
|
<span class="method-name">grep</span><span class="method-args">(string)</span>
|
876
876
|
</a>
|
877
877
|
</div>
|
@@ -906,8 +906,8 @@ so you might use it like this:
|
|
906
906
|
end
|
907
907
|
</pre>
|
908
908
|
<p><a class="source-toggle" href="#"
|
909
|
-
onclick="toggleCode('
|
910
|
-
<div class="method-source-code" id="
|
909
|
+
onclick="toggleCode('M000114-source');return false;">[Source]</a></p>
|
910
|
+
<div class="method-source-code" id="M000114-source">
|
911
911
|
<pre>
|
912
912
|
<span class="ruby-comment cmt"># File lib/git/base.rb, line 224</span>
|
913
913
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">grep</span>(<span class="ruby-identifier">string</span>)
|
@@ -918,19 +918,19 @@ so you might use it like this:
|
|
918
918
|
</div>
|
919
919
|
</div>
|
920
920
|
|
921
|
-
<div id="method-
|
922
|
-
<a name="
|
921
|
+
<div id="method-M000105" class="method-detail">
|
922
|
+
<a name="M000105"></a>
|
923
923
|
|
924
924
|
<div class="method-heading">
|
925
|
-
<a href="#
|
925
|
+
<a href="#M000105" class="method-signature">
|
926
926
|
<span class="method-name">gtree</span><span class="method-args">(objectish)</span>
|
927
927
|
</a>
|
928
928
|
</div>
|
929
929
|
|
930
930
|
<div class="method-description">
|
931
931
|
<p><a class="source-toggle" href="#"
|
932
|
-
onclick="toggleCode('
|
933
|
-
<div class="method-source-code" id="
|
932
|
+
onclick="toggleCode('M000105-source');return false;">[Source]</a></p>
|
933
|
+
<div class="method-source-code" id="M000105-source">
|
934
934
|
<pre>
|
935
935
|
<span class="ruby-comment cmt"># File lib/git/base.rb, line 161</span>
|
936
936
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">gtree</span>(<span class="ruby-identifier">objectish</span>)
|
@@ -941,11 +941,11 @@ so you might use it like this:
|
|
941
941
|
</div>
|
942
942
|
</div>
|
943
943
|
|
944
|
-
<div id="method-
|
945
|
-
<a name="
|
944
|
+
<div id="method-M000098" class="method-detail">
|
945
|
+
<a name="M000098"></a>
|
946
946
|
|
947
947
|
<div class="method-heading">
|
948
|
-
<a href="#
|
948
|
+
<a href="#M000098" class="method-signature">
|
949
949
|
<span class="method-name">index</span><span class="method-args">()</span>
|
950
950
|
</a>
|
951
951
|
</div>
|
@@ -955,8 +955,8 @@ so you might use it like this:
|
|
955
955
|
returns reference to the git index file
|
956
956
|
</p>
|
957
957
|
<p><a class="source-toggle" href="#"
|
958
|
-
onclick="toggleCode('
|
959
|
-
<div class="method-source-code" id="
|
958
|
+
onclick="toggleCode('M000098-source');return false;">[Source]</a></p>
|
959
|
+
<div class="method-source-code" id="M000098-source">
|
960
960
|
<pre>
|
961
961
|
<span class="ruby-comment cmt"># File lib/git/base.rb, line 91</span>
|
962
962
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">index</span>
|
@@ -967,11 +967,11 @@ returns reference to the git index file
|
|
967
967
|
</div>
|
968
968
|
</div>
|
969
969
|
|
970
|
-
<div id="method-
|
971
|
-
<a name="
|
970
|
+
<div id="method-M000113" class="method-detail">
|
971
|
+
<a name="M000113"></a>
|
972
972
|
|
973
973
|
<div class="method-heading">
|
974
|
-
<a href="#
|
974
|
+
<a href="#M000113" class="method-signature">
|
975
975
|
<span class="method-name">lib</span><span class="method-args">()</span>
|
976
976
|
</a>
|
977
977
|
</div>
|
@@ -984,8 +984,8 @@ replace the <a href="Lib.html">Git::Lib</a> class with one that uses native
|
|
984
984
|
methods or libgit C bindings
|
985
985
|
</p>
|
986
986
|
<p><a class="source-toggle" href="#"
|
987
|
-
onclick="toggleCode('
|
988
|
-
<div class="method-source-code" id="
|
987
|
+
onclick="toggleCode('M000113-source');return false;">[Source]</a></p>
|
988
|
+
<div class="method-source-code" id="M000113-source">
|
989
989
|
<pre>
|
990
990
|
<span class="ruby-comment cmt"># File lib/git/base.rb, line 201</span>
|
991
991
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">lib</span>
|
@@ -996,11 +996,11 @@ methods or libgit C bindings
|
|
996
996
|
</div>
|
997
997
|
</div>
|
998
998
|
|
999
|
-
<div id="method-
|
1000
|
-
<a name="
|
999
|
+
<div id="method-M000108" class="method-detail">
|
1000
|
+
<a name="M000108"></a>
|
1001
1001
|
|
1002
1002
|
<div class="method-heading">
|
1003
|
-
<a href="#
|
1003
|
+
<a href="#M000108" class="method-signature">
|
1004
1004
|
<span class="method-name">log</span><span class="method-args">(count = 30)</span>
|
1005
1005
|
</a>
|
1006
1006
|
</div>
|
@@ -1010,8 +1010,8 @@ methods or libgit C bindings
|
|
1010
1010
|
returns a <a href="Log.html">Git::Log</a> object with count commits
|
1011
1011
|
</p>
|
1012
1012
|
<p><a class="source-toggle" href="#"
|
1013
|
-
onclick="toggleCode('
|
1014
|
-
<div class="method-source-code" id="
|
1013
|
+
onclick="toggleCode('M000108-source');return false;">[Source]</a></p>
|
1014
|
+
<div class="method-source-code" id="M000108-source">
|
1015
1015
|
<pre>
|
1016
1016
|
<span class="ruby-comment cmt"># File lib/git/base.rb, line 174</span>
|
1017
1017
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">log</span>(<span class="ruby-identifier">count</span> = <span class="ruby-value">30</span>)
|
@@ -1022,19 +1022,19 @@ returns a <a href="Log.html">Git::Log</a> object with count commits
|
|
1022
1022
|
</div>
|
1023
1023
|
</div>
|
1024
1024
|
|
1025
|
-
<div id="method-
|
1026
|
-
<a name="
|
1025
|
+
<div id="method-M000142" class="method-detail">
|
1026
|
+
<a name="M000142"></a>
|
1027
1027
|
|
1028
1028
|
<div class="method-heading">
|
1029
|
-
<a href="#
|
1029
|
+
<a href="#M000142" class="method-signature">
|
1030
1030
|
<span class="method-name">ls_files</span><span class="method-args">()</span>
|
1031
1031
|
</a>
|
1032
1032
|
</div>
|
1033
1033
|
|
1034
1034
|
<div class="method-description">
|
1035
1035
|
<p><a class="source-toggle" href="#"
|
1036
|
-
onclick="toggleCode('
|
1037
|
-
<div class="method-source-code" id="
|
1036
|
+
onclick="toggleCode('M000142-source');return false;">[Source]</a></p>
|
1037
|
+
<div class="method-source-code" id="M000142-source">
|
1038
1038
|
<pre>
|
1039
1039
|
<span class="ruby-comment cmt"># File lib/git/base.rb, line 390</span>
|
1040
1040
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">ls_files</span>
|
@@ -1045,11 +1045,11 @@ returns a <a href="Log.html">Git::Log</a> object with count commits
|
|
1045
1045
|
</div>
|
1046
1046
|
</div>
|
1047
1047
|
|
1048
|
-
<div id="method-
|
1049
|
-
<a name="
|
1048
|
+
<div id="method-M000125" class="method-detail">
|
1049
|
+
<a name="M000125"></a>
|
1050
1050
|
|
1051
1051
|
<div class="method-heading">
|
1052
|
-
<a href="#
|
1052
|
+
<a href="#M000125" class="method-signature">
|
1053
1053
|
<span class="method-name">merge</span><span class="method-args">(branch, message = 'merge')</span>
|
1054
1054
|
</a>
|
1055
1055
|
</div>
|
@@ -1063,8 +1063,8 @@ you can specify more than one branch to merge by passing an array of
|
|
1063
1063
|
branches
|
1064
1064
|
</p>
|
1065
1065
|
<p><a class="source-toggle" href="#"
|
1066
|
-
onclick="toggleCode('
|
1067
|
-
<div class="method-source-code" id="
|
1066
|
+
onclick="toggleCode('M000125-source');return false;">[Source]</a></p>
|
1067
|
+
<div class="method-source-code" id="M000125-source">
|
1068
1068
|
<pre>
|
1069
1069
|
<span class="ruby-comment cmt"># File lib/git/base.rb, line 290</span>
|
1070
1070
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">merge</span>(<span class="ruby-identifier">branch</span>, <span class="ruby-identifier">message</span> = <span class="ruby-value str">'merge'</span>)
|
@@ -1075,11 +1075,11 @@ branches
|
|
1075
1075
|
</div>
|
1076
1076
|
</div>
|
1077
1077
|
|
1078
|
-
<div id="method-
|
1079
|
-
<a name="
|
1078
|
+
<div id="method-M000104" class="method-detail">
|
1079
|
+
<a name="M000104"></a>
|
1080
1080
|
|
1081
1081
|
<div class="method-heading">
|
1082
|
-
<a href="#
|
1082
|
+
<a href="#M000104" class="method-signature">
|
1083
1083
|
<span class="method-name">object</span><span class="method-args">(objectish)</span>
|
1084
1084
|
</a>
|
1085
1085
|
</div>
|
@@ -1097,8 +1097,8 @@ objectish and determine the type of the object and return an appropriate
|
|
1097
1097
|
object for that type
|
1098
1098
|
</p>
|
1099
1099
|
<p><a class="source-toggle" href="#"
|
1100
|
-
onclick="toggleCode('
|
1101
|
-
<div class="method-source-code" id="
|
1100
|
+
onclick="toggleCode('M000104-source');return false;">[Source]</a></p>
|
1101
|
+
<div class="method-source-code" id="M000104-source">
|
1102
1102
|
<pre>
|
1103
1103
|
<span class="ruby-comment cmt"># File lib/git/base.rb, line 157</span>
|
1104
1104
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">object</span>(<span class="ruby-identifier">objectish</span>)
|
@@ -1109,11 +1109,11 @@ object for that type
|
|
1109
1109
|
</div>
|
1110
1110
|
</div>
|
1111
1111
|
|
1112
|
-
<div id="method-
|
1113
|
-
<a name="
|
1112
|
+
<div id="method-M000126" class="method-detail">
|
1113
|
+
<a name="M000126"></a>
|
1114
1114
|
|
1115
1115
|
<div class="method-heading">
|
1116
|
-
<a href="#
|
1116
|
+
<a href="#M000126" class="method-signature">
|
1117
1117
|
<span class="method-name">pull</span><span class="method-args">(remote = 'origin', branch = 'master', message = 'origin pull')</span>
|
1118
1118
|
</a>
|
1119
1119
|
</div>
|
@@ -1124,8 +1124,8 @@ fetches a branch from a remote and merges it into the current working
|
|
1124
1124
|
branch
|
1125
1125
|
</p>
|
1126
1126
|
<p><a class="source-toggle" href="#"
|
1127
|
-
onclick="toggleCode('
|
1128
|
-
<div class="method-source-code" id="
|
1127
|
+
onclick="toggleCode('M000126-source');return false;">[Source]</a></p>
|
1128
|
+
<div class="method-source-code" id="M000126-source">
|
1129
1129
|
<pre>
|
1130
1130
|
<span class="ruby-comment cmt"># File lib/git/base.rb, line 295</span>
|
1131
1131
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">pull</span>(<span class="ruby-identifier">remote</span> = <span class="ruby-value str">'origin'</span>, <span class="ruby-identifier">branch</span> = <span class="ruby-value str">'master'</span>, <span class="ruby-identifier">message</span> = <span class="ruby-value str">'origin pull'</span>)
|
@@ -1137,11 +1137,11 @@ branch
|
|
1137
1137
|
</div>
|
1138
1138
|
</div>
|
1139
1139
|
|
1140
|
-
<div id="method-
|
1141
|
-
<a name="
|
1140
|
+
<div id="method-M000124" class="method-detail">
|
1141
|
+
<a name="M000124"></a>
|
1142
1142
|
|
1143
1143
|
<div class="method-heading">
|
1144
|
-
<a href="#
|
1144
|
+
<a href="#M000124" class="method-signature">
|
1145
1145
|
<span class="method-name">push</span><span class="method-args">(remote = 'origin', branch = 'master')</span>
|
1146
1146
|
</a>
|
1147
1147
|
</div>
|
@@ -1156,8 +1156,8 @@ setup the push parameters:
|
|
1156
1156
|
@git.config('remote.remote-name.push', 'refs/heads/master:refs/heads/master')
|
1157
1157
|
</pre>
|
1158
1158
|
<p><a class="source-toggle" href="#"
|
1159
|
-
onclick="toggleCode('
|
1160
|
-
<div class="method-source-code" id="
|
1159
|
+
onclick="toggleCode('M000124-source');return false;">[Source]</a></p>
|
1160
|
+
<div class="method-source-code" id="M000124-source">
|
1161
1161
|
<pre>
|
1162
1162
|
<span class="ruby-comment cmt"># File lib/git/base.rb, line 283</span>
|
1163
1163
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">push</span>(<span class="ruby-identifier">remote</span> = <span class="ruby-value str">'origin'</span>, <span class="ruby-identifier">branch</span> = <span class="ruby-value str">'master'</span>)
|
@@ -1168,19 +1168,19 @@ setup the push parameters:
|
|
1168
1168
|
</div>
|
1169
1169
|
</div>
|
1170
1170
|
|
1171
|
-
<div id="method-
|
1172
|
-
<a name="
|
1171
|
+
<div id="method-M000137" class="method-detail">
|
1172
|
+
<a name="M000137"></a>
|
1173
1173
|
|
1174
1174
|
<div class="method-heading">
|
1175
|
-
<a href="#
|
1175
|
+
<a href="#M000137" class="method-signature">
|
1176
1176
|
<span class="method-name">read_tree</span><span class="method-args">(treeish, opts = {})</span>
|
1177
1177
|
</a>
|
1178
1178
|
</div>
|
1179
1179
|
|
1180
1180
|
<div class="method-description">
|
1181
1181
|
<p><a class="source-toggle" href="#"
|
1182
|
-
onclick="toggleCode('
|
1183
|
-
<div class="method-source-code" id="
|
1182
|
+
onclick="toggleCode('M000137-source');return false;">[Source]</a></p>
|
1183
|
+
<div class="method-source-code" id="M000137-source">
|
1184
1184
|
<pre>
|
1185
1185
|
<span class="ruby-comment cmt"># File lib/git/base.rb, line 368</span>
|
1186
1186
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">read_tree</span>(<span class="ruby-identifier">treeish</span>, <span class="ruby-identifier">opts</span> = {})
|
@@ -1191,11 +1191,11 @@ setup the push parameters:
|
|
1191
1191
|
</div>
|
1192
1192
|
</div>
|
1193
1193
|
|
1194
|
-
<div id="method-
|
1195
|
-
<a name="
|
1194
|
+
<div id="method-M000112" class="method-detail">
|
1195
|
+
<a name="M000112"></a>
|
1196
1196
|
|
1197
1197
|
<div class="method-heading">
|
1198
|
-
<a href="#
|
1198
|
+
<a href="#M000112" class="method-signature">
|
1199
1199
|
<span class="method-name">remote</span><span class="method-args">(remote_name = 'origin')</span>
|
1200
1200
|
</a>
|
1201
1201
|
</div>
|
@@ -1205,8 +1205,8 @@ setup the push parameters:
|
|
1205
1205
|
returns a <a href="Remote.html">Git::Remote</a> object
|
1206
1206
|
</p>
|
1207
1207
|
<p><a class="source-toggle" href="#"
|
1208
|
-
onclick="toggleCode('
|
1209
|
-
<div class="method-source-code" id="
|
1208
|
+
onclick="toggleCode('M000112-source');return false;">[Source]</a></p>
|
1209
|
+
<div class="method-source-code" id="M000112-source">
|
1210
1210
|
<pre>
|
1211
1211
|
<span class="ruby-comment cmt"># File lib/git/base.rb, line 194</span>
|
1212
1212
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">remote</span>(<span class="ruby-identifier">remote_name</span> = <span class="ruby-value str">'origin'</span>)
|
@@ -1217,11 +1217,11 @@ returns a <a href="Remote.html">Git::Remote</a> object
|
|
1217
1217
|
</div>
|
1218
1218
|
</div>
|
1219
1219
|
|
1220
|
-
<div id="method-
|
1221
|
-
<a name="
|
1220
|
+
<div id="method-M000127" class="method-detail">
|
1221
|
+
<a name="M000127"></a>
|
1222
1222
|
|
1223
1223
|
<div class="method-heading">
|
1224
|
-
<a href="#
|
1224
|
+
<a href="#M000127" class="method-signature">
|
1225
1225
|
<span class="method-name">remotes</span><span class="method-args">()</span>
|
1226
1226
|
</a>
|
1227
1227
|
</div>
|
@@ -1232,8 +1232,8 @@ returns an array of <a href="../Git.html">Git</a>:<a
|
|
1232
1232
|
href="Remote.html">Remote</a> objects
|
1233
1233
|
</p>
|
1234
1234
|
<p><a class="source-toggle" href="#"
|
1235
|
-
onclick="toggleCode('
|
1236
|
-
<div class="method-source-code" id="
|
1235
|
+
onclick="toggleCode('M000127-source');return false;">[Source]</a></p>
|
1236
|
+
<div class="method-source-code" id="M000127-source">
|
1237
1237
|
<pre>
|
1238
1238
|
<span class="ruby-comment cmt"># File lib/git/base.rb, line 301</span>
|
1239
1239
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">remotes</span>
|
@@ -1244,11 +1244,11 @@ href="Remote.html">Remote</a> objects
|
|
1244
1244
|
</div>
|
1245
1245
|
</div>
|
1246
1246
|
|
1247
|
-
<div id="method-
|
1248
|
-
<a name="
|
1247
|
+
<div id="method-M000117" class="method-detail">
|
1248
|
+
<a name="M000117"></a>
|
1249
1249
|
|
1250
1250
|
<div class="method-heading">
|
1251
|
-
<a href="#
|
1251
|
+
<a href="#M000117" class="method-signature">
|
1252
1252
|
<span class="method-name">remove</span><span class="method-args">(path = '.', opts = {})</span>
|
1253
1253
|
</a>
|
1254
1254
|
</div>
|
@@ -1258,8 +1258,8 @@ href="Remote.html">Remote</a> objects
|
|
1258
1258
|
removes file(s) from the git repository
|
1259
1259
|
</p>
|
1260
1260
|
<p><a class="source-toggle" href="#"
|
1261
|
-
onclick="toggleCode('
|
1262
|
-
<div class="method-source-code" id="
|
1261
|
+
onclick="toggleCode('M000117-source');return false;">[Source]</a></p>
|
1262
|
+
<div class="method-source-code" id="M000117-source">
|
1263
1263
|
<pre>
|
1264
1264
|
<span class="ruby-comment cmt"># File lib/git/base.rb, line 239</span>
|
1265
1265
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">remove</span>(<span class="ruby-identifier">path</span> = <span class="ruby-value str">'.'</span>, <span class="ruby-identifier">opts</span> = {})
|
@@ -1270,11 +1270,11 @@ removes file(s) from the git repository
|
|
1270
1270
|
</div>
|
1271
1271
|
</div>
|
1272
1272
|
|
1273
|
-
<div id="method-
|
1274
|
-
<a name="
|
1273
|
+
<div id="method-M000133" class="method-detail">
|
1274
|
+
<a name="M000133"></a>
|
1275
1275
|
|
1276
1276
|
<div class="method-heading">
|
1277
|
-
<a href="#
|
1277
|
+
<a href="#M000133" class="method-signature">
|
1278
1278
|
<span class="method-name">repack</span><span class="method-args">()</span>
|
1279
1279
|
</a>
|
1280
1280
|
</div>
|
@@ -1284,8 +1284,8 @@ removes file(s) from the git repository
|
|
1284
1284
|
repacks the repository
|
1285
1285
|
</p>
|
1286
1286
|
<p><a class="source-toggle" href="#"
|
1287
|
-
onclick="toggleCode('
|
1288
|
-
<div class="method-source-code" id="
|
1287
|
+
onclick="toggleCode('M000133-source');return false;">[Source]</a></p>
|
1288
|
+
<div class="method-source-code" id="M000133-source">
|
1289
1289
|
<pre>
|
1290
1290
|
<span class="ruby-comment cmt"># File lib/git/base.rb, line 342</span>
|
1291
1291
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">repack</span>
|
@@ -1296,11 +1296,11 @@ repacks the repository
|
|
1296
1296
|
</div>
|
1297
1297
|
</div>
|
1298
1298
|
|
1299
|
-
<div id="method-
|
1300
|
-
<a name="
|
1299
|
+
<div id="method-M000097" class="method-detail">
|
1300
|
+
<a name="M000097"></a>
|
1301
1301
|
|
1302
1302
|
<div class="method-heading">
|
1303
|
-
<a href="#
|
1303
|
+
<a href="#M000097" class="method-signature">
|
1304
1304
|
<span class="method-name">repo</span><span class="method-args">()</span>
|
1305
1305
|
</a>
|
1306
1306
|
</div>
|
@@ -1313,8 +1313,8 @@ returns reference to the git repository directory
|
|
1313
1313
|
@git.dir.path
|
1314
1314
|
</pre>
|
1315
1315
|
<p><a class="source-toggle" href="#"
|
1316
|
-
onclick="toggleCode('
|
1317
|
-
<div class="method-source-code" id="
|
1316
|
+
onclick="toggleCode('M000097-source');return false;">[Source]</a></p>
|
1317
|
+
<div class="method-source-code" id="M000097-source">
|
1318
1318
|
<pre>
|
1319
1319
|
<span class="ruby-comment cmt"># File lib/git/base.rb, line 86</span>
|
1320
1320
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">repo</span>
|
@@ -1325,11 +1325,11 @@ returns reference to the git repository directory
|
|
1325
1325
|
</div>
|
1326
1326
|
</div>
|
1327
1327
|
|
1328
|
-
<div id="method-
|
1329
|
-
<a name="
|
1328
|
+
<div id="method-M000102" class="method-detail">
|
1329
|
+
<a name="M000102"></a>
|
1330
1330
|
|
1331
1331
|
<div class="method-heading">
|
1332
|
-
<a href="#
|
1332
|
+
<a href="#M000102" class="method-signature">
|
1333
1333
|
<span class="method-name">repo_size</span><span class="method-args">()</span>
|
1334
1334
|
</a>
|
1335
1335
|
</div>
|
@@ -1339,8 +1339,8 @@ returns reference to the git repository directory
|
|
1339
1339
|
returns the repository size in bytes
|
1340
1340
|
</p>
|
1341
1341
|
<p><a class="source-toggle" href="#"
|
1342
|
-
onclick="toggleCode('
|
1343
|
-
<div class="method-source-code" id="
|
1342
|
+
onclick="toggleCode('M000102-source');return false;">[Source]</a></p>
|
1343
|
+
<div class="method-source-code" id="M000102-source">
|
1344
1344
|
<pre>
|
1345
1345
|
<span class="ruby-comment cmt"># File lib/git/base.rb, line 122</span>
|
1346
1346
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">repo_size</span>
|
@@ -1355,11 +1355,11 @@ returns the repository size in bytes
|
|
1355
1355
|
</div>
|
1356
1356
|
</div>
|
1357
1357
|
|
1358
|
-
<div id="method-
|
1359
|
-
<a name="
|
1358
|
+
<div id="method-M000118" class="method-detail">
|
1359
|
+
<a name="M000118"></a>
|
1360
1360
|
|
1361
1361
|
<div class="method-heading">
|
1362
|
-
<a href="#
|
1362
|
+
<a href="#M000118" class="method-signature">
|
1363
1363
|
<span class="method-name">reset</span><span class="method-args">(commitish = nil, opts = {})</span>
|
1364
1364
|
</a>
|
1365
1365
|
</div>
|
@@ -1369,8 +1369,8 @@ returns the repository size in bytes
|
|
1369
1369
|
resets the working directory to the provided commitish
|
1370
1370
|
</p>
|
1371
1371
|
<p><a class="source-toggle" href="#"
|
1372
|
-
onclick="toggleCode('
|
1373
|
-
<div class="method-source-code" id="
|
1372
|
+
onclick="toggleCode('M000118-source');return false;">[Source]</a></p>
|
1373
|
+
<div class="method-source-code" id="M000118-source">
|
1374
1374
|
<pre>
|
1375
1375
|
<span class="ruby-comment cmt"># File lib/git/base.rb, line 244</span>
|
1376
1376
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">reset</span>(<span class="ruby-identifier">commitish</span> = <span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">opts</span> = {})
|
@@ -1381,11 +1381,11 @@ resets the working directory to the provided commitish
|
|
1381
1381
|
</div>
|
1382
1382
|
</div>
|
1383
1383
|
|
1384
|
-
<div id="method-
|
1385
|
-
<a name="
|
1384
|
+
<div id="method-M000119" class="method-detail">
|
1385
|
+
<a name="M000119"></a>
|
1386
1386
|
|
1387
1387
|
<div class="method-heading">
|
1388
|
-
<a href="#
|
1388
|
+
<a href="#M000119" class="method-signature">
|
1389
1389
|
<span class="method-name">reset_hard</span><span class="method-args">(commitish = nil, opts = {})</span>
|
1390
1390
|
</a>
|
1391
1391
|
</div>
|
@@ -1396,8 +1396,8 @@ resets the working directory to the commitish with
|
|
1396
1396
|
’—hard’
|
1397
1397
|
</p>
|
1398
1398
|
<p><a class="source-toggle" href="#"
|
1399
|
-
onclick="toggleCode('
|
1400
|
-
<div class="method-source-code" id="
|
1399
|
+
onclick="toggleCode('M000119-source');return false;">[Source]</a></p>
|
1400
|
+
<div class="method-source-code" id="M000119-source">
|
1401
1401
|
<pre>
|
1402
1402
|
<span class="ruby-comment cmt"># File lib/git/base.rb, line 249</span>
|
1403
1403
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">reset_hard</span>(<span class="ruby-identifier">commitish</span> = <span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">opts</span> = {})
|
@@ -1409,11 +1409,11 @@ resets the working directory to the commitish with
|
|
1409
1409
|
</div>
|
1410
1410
|
</div>
|
1411
1411
|
|
1412
|
-
<div id="method-
|
1413
|
-
<a name="
|
1412
|
+
<div id="method-M000145" class="method-detail">
|
1413
|
+
<a name="M000145"></a>
|
1414
1414
|
|
1415
1415
|
<div class="method-heading">
|
1416
|
-
<a href="#
|
1416
|
+
<a href="#M000145" class="method-signature">
|
1417
1417
|
<span class="method-name">revparse</span><span class="method-args">(objectish)</span>
|
1418
1418
|
</a>
|
1419
1419
|
</div>
|
@@ -1428,8 +1428,8 @@ runs git rev-parse to convert the objectish to a full sha
|
|
1428
1428
|
@git.revparse('v2.4:/doc/index.html')
|
1429
1429
|
</pre>
|
1430
1430
|
<p><a class="source-toggle" href="#"
|
1431
|
-
onclick="toggleCode('
|
1432
|
-
<div class="method-source-code" id="
|
1431
|
+
onclick="toggleCode('M000145-source');return false;">[Source]</a></p>
|
1432
|
+
<div class="method-source-code" id="M000145-source">
|
1433
1433
|
<pre>
|
1434
1434
|
<span class="ruby-comment cmt"># File lib/git/base.rb, line 420</span>
|
1435
1435
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">revparse</span>(<span class="ruby-identifier">objectish</span>)
|
@@ -1440,19 +1440,19 @@ runs git rev-parse to convert the objectish to a full sha
|
|
1440
1440
|
</div>
|
1441
1441
|
</div>
|
1442
1442
|
|
1443
|
-
<div id="method-
|
1444
|
-
<a name="
|
1443
|
+
<div id="method-M000100" class="method-detail">
|
1444
|
+
<a name="M000100"></a>
|
1445
1445
|
|
1446
1446
|
<div class="method-heading">
|
1447
|
-
<a href="#
|
1447
|
+
<a href="#M000100" class="method-signature">
|
1448
1448
|
<span class="method-name">set_index</span><span class="method-args">(index_file, check = true)</span>
|
1449
1449
|
</a>
|
1450
1450
|
</div>
|
1451
1451
|
|
1452
1452
|
<div class="method-description">
|
1453
1453
|
<p><a class="source-toggle" href="#"
|
1454
|
-
onclick="toggleCode('
|
1455
|
-
<div class="method-source-code" id="
|
1454
|
+
onclick="toggleCode('M000100-source');return false;">[Source]</a></p>
|
1455
|
+
<div class="method-source-code" id="M000100-source">
|
1456
1456
|
<pre>
|
1457
1457
|
<span class="ruby-comment cmt"># File lib/git/base.rb, line 101</span>
|
1458
1458
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">set_index</span>(<span class="ruby-identifier">index_file</span>, <span class="ruby-identifier">check</span> = <span class="ruby-keyword kw">true</span>)
|
@@ -1464,19 +1464,19 @@ runs git rev-parse to convert the objectish to a full sha
|
|
1464
1464
|
</div>
|
1465
1465
|
</div>
|
1466
1466
|
|
1467
|
-
<div id="method-
|
1468
|
-
<a name="
|
1467
|
+
<div id="method-M000099" class="method-detail">
|
1468
|
+
<a name="M000099"></a>
|
1469
1469
|
|
1470
1470
|
<div class="method-heading">
|
1471
|
-
<a href="#
|
1471
|
+
<a href="#M000099" class="method-signature">
|
1472
1472
|
<span class="method-name">set_working</span><span class="method-args">(work_dir, check = true)</span>
|
1473
1473
|
</a>
|
1474
1474
|
</div>
|
1475
1475
|
|
1476
1476
|
<div class="method-description">
|
1477
1477
|
<p><a class="source-toggle" href="#"
|
1478
|
-
onclick="toggleCode('
|
1479
|
-
<div class="method-source-code" id="
|
1478
|
+
onclick="toggleCode('M000099-source');return false;">[Source]</a></p>
|
1479
|
+
<div class="method-source-code" id="M000099-source">
|
1480
1480
|
<pre>
|
1481
1481
|
<span class="ruby-comment cmt"># File lib/git/base.rb, line 96</span>
|
1482
1482
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">set_working</span>(<span class="ruby-identifier">work_dir</span>, <span class="ruby-identifier">check</span> = <span class="ruby-keyword kw">true</span>)
|
@@ -1488,11 +1488,11 @@ runs git rev-parse to convert the objectish to a full sha
|
|
1488
1488
|
</div>
|
1489
1489
|
</div>
|
1490
1490
|
|
1491
|
-
<div id="method-
|
1492
|
-
<a name="
|
1491
|
+
<div id="method-M000109" class="method-detail">
|
1492
|
+
<a name="M000109"></a>
|
1493
1493
|
|
1494
1494
|
<div class="method-heading">
|
1495
|
-
<a href="#
|
1495
|
+
<a href="#M000109" class="method-signature">
|
1496
1496
|
<span class="method-name">status</span><span class="method-args">()</span>
|
1497
1497
|
</a>
|
1498
1498
|
</div>
|
@@ -1502,8 +1502,8 @@ runs git rev-parse to convert the objectish to a full sha
|
|
1502
1502
|
returns a <a href="Status.html">Git::Status</a> object
|
1503
1503
|
</p>
|
1504
1504
|
<p><a class="source-toggle" href="#"
|
1505
|
-
onclick="toggleCode('
|
1506
|
-
<div class="method-source-code" id="
|
1505
|
+
onclick="toggleCode('M000109-source');return false;">[Source]</a></p>
|
1506
|
+
<div class="method-source-code" id="M000109-source">
|
1507
1507
|
<pre>
|
1508
1508
|
<span class="ruby-comment cmt"># File lib/git/base.rb, line 179</span>
|
1509
1509
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">status</span>
|
@@ -1514,11 +1514,11 @@ returns a <a href="Status.html">Git::Status</a> object
|
|
1514
1514
|
</div>
|
1515
1515
|
</div>
|
1516
1516
|
|
1517
|
-
<div id="method-
|
1518
|
-
<a name="
|
1517
|
+
<div id="method-M000130" class="method-detail">
|
1518
|
+
<a name="M000130"></a>
|
1519
1519
|
|
1520
1520
|
<div class="method-heading">
|
1521
|
-
<a href="#
|
1521
|
+
<a href="#M000130" class="method-signature">
|
1522
1522
|
<span class="method-name">tag</span><span class="method-args">(tag_name)</span>
|
1523
1523
|
</a>
|
1524
1524
|
</div>
|
@@ -1528,8 +1528,8 @@ returns a <a href="Status.html">Git::Status</a> object
|
|
1528
1528
|
returns a Git::Tag object
|
1529
1529
|
</p>
|
1530
1530
|
<p><a class="source-toggle" href="#"
|
1531
|
-
onclick="toggleCode('
|
1532
|
-
<div class="method-source-code" id="
|
1531
|
+
onclick="toggleCode('M000130-source');return false;">[Source]</a></p>
|
1532
|
+
<div class="method-source-code" id="M000130-source">
|
1533
1533
|
<pre>
|
1534
1534
|
<span class="ruby-comment cmt"># File lib/git/base.rb, line 326</span>
|
1535
1535
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">tag</span>(<span class="ruby-identifier">tag_name</span>)
|
@@ -1540,11 +1540,11 @@ returns a Git::Tag object
|
|
1540
1540
|
</div>
|
1541
1541
|
</div>
|
1542
1542
|
|
1543
|
-
<div id="method-
|
1544
|
-
<a name="
|
1543
|
+
<div id="method-M000129" class="method-detail">
|
1544
|
+
<a name="M000129"></a>
|
1545
1545
|
|
1546
1546
|
<div class="method-heading">
|
1547
|
-
<a href="#
|
1547
|
+
<a href="#M000129" class="method-signature">
|
1548
1548
|
<span class="method-name">tags</span><span class="method-args">()</span>
|
1549
1549
|
</a>
|
1550
1550
|
</div>
|
@@ -1554,8 +1554,8 @@ returns a Git::Tag object
|
|
1554
1554
|
returns an array of all Git::Tag objects for this repository
|
1555
1555
|
</p>
|
1556
1556
|
<p><a class="source-toggle" href="#"
|
1557
|
-
onclick="toggleCode('
|
1558
|
-
<div class="method-source-code" id="
|
1557
|
+
onclick="toggleCode('M000129-source');return false;">[Source]</a></p>
|
1558
|
+
<div class="method-source-code" id="M000129-source">
|
1559
1559
|
<pre>
|
1560
1560
|
<span class="ruby-comment cmt"># File lib/git/base.rb, line 321</span>
|
1561
1561
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">tags</span>
|
@@ -1566,19 +1566,19 @@ returns an array of all Git::Tag objects for this repository
|
|
1566
1566
|
</div>
|
1567
1567
|
</div>
|
1568
1568
|
|
1569
|
-
<div id="method-
|
1570
|
-
<a name="
|
1569
|
+
<div id="method-M000141" class="method-detail">
|
1570
|
+
<a name="M000141"></a>
|
1571
1571
|
|
1572
1572
|
<div class="method-heading">
|
1573
|
-
<a href="#
|
1573
|
+
<a href="#M000141" class="method-signature">
|
1574
1574
|
<span class="method-name">update_ref</span><span class="method-args">(branch, commit)</span>
|
1575
1575
|
</a>
|
1576
1576
|
</div>
|
1577
1577
|
|
1578
1578
|
<div class="method-description">
|
1579
1579
|
<p><a class="source-toggle" href="#"
|
1580
|
-
onclick="toggleCode('
|
1581
|
-
<div class="method-source-code" id="
|
1580
|
+
onclick="toggleCode('M000141-source');return false;">[Source]</a></p>
|
1581
|
+
<div class="method-source-code" id="M000141-source">
|
1582
1582
|
<pre>
|
1583
1583
|
<span class="ruby-comment cmt"># File lib/git/base.rb, line 385</span>
|
1584
1584
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">update_ref</span>(<span class="ruby-identifier">branch</span>, <span class="ruby-identifier">commit</span>)
|
@@ -1589,11 +1589,11 @@ returns an array of all Git::Tag objects for this repository
|
|
1589
1589
|
</div>
|
1590
1590
|
</div>
|
1591
1591
|
|
1592
|
-
<div id="method-
|
1593
|
-
<a name="
|
1592
|
+
<div id="method-M000134" class="method-detail">
|
1593
|
+
<a name="M000134"></a>
|
1594
1594
|
|
1595
1595
|
<div class="method-heading">
|
1596
|
-
<a href="#
|
1596
|
+
<a href="#M000134" class="method-signature">
|
1597
1597
|
<span class="method-name">with_index</span><span class="method-args">(new_index) {|@index| ...}</span>
|
1598
1598
|
</a>
|
1599
1599
|
</div>
|
@@ -1603,8 +1603,8 @@ returns an array of all Git::Tag objects for this repository
|
|
1603
1603
|
LOWER LEVEL INDEX OPERATIONS ##
|
1604
1604
|
</p>
|
1605
1605
|
<p><a class="source-toggle" href="#"
|
1606
|
-
onclick="toggleCode('
|
1607
|
-
<div class="method-source-code" id="
|
1606
|
+
onclick="toggleCode('M000134-source');return false;">[Source]</a></p>
|
1607
|
+
<div class="method-source-code" id="M000134-source">
|
1608
1608
|
<pre>
|
1609
1609
|
<span class="ruby-comment cmt"># File lib/git/base.rb, line 349</span>
|
1610
1610
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">with_index</span>(<span class="ruby-identifier">new_index</span>)
|
@@ -1619,19 +1619,19 @@ LOWER LEVEL INDEX OPERATIONS ##
|
|
1619
1619
|
</div>
|
1620
1620
|
</div>
|
1621
1621
|
|
1622
|
-
<div id="method-
|
1623
|
-
<a name="
|
1622
|
+
<div id="method-M000135" class="method-detail">
|
1623
|
+
<a name="M000135"></a>
|
1624
1624
|
|
1625
1625
|
<div class="method-heading">
|
1626
|
-
<a href="#
|
1626
|
+
<a href="#M000135" class="method-signature">
|
1627
1627
|
<span class="method-name">with_temp_index</span><span class="method-args">(&blk)</span>
|
1628
1628
|
</a>
|
1629
1629
|
</div>
|
1630
1630
|
|
1631
1631
|
<div class="method-description">
|
1632
1632
|
<p><a class="source-toggle" href="#"
|
1633
|
-
onclick="toggleCode('
|
1634
|
-
<div class="method-source-code" id="
|
1633
|
+
onclick="toggleCode('M000135-source');return false;">[Source]</a></p>
|
1634
|
+
<div class="method-source-code" id="M000135-source">
|
1635
1635
|
<pre>
|
1636
1636
|
<span class="ruby-comment cmt"># File lib/git/base.rb, line 357</span>
|
1637
1637
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">with_temp_index</span> <span class="ruby-operator">&</span><span class="ruby-identifier">blk</span>
|
@@ -1645,19 +1645,19 @@ LOWER LEVEL INDEX OPERATIONS ##
|
|
1645
1645
|
</div>
|
1646
1646
|
</div>
|
1647
1647
|
|
1648
|
-
<div id="method-
|
1649
|
-
<a name="
|
1648
|
+
<div id="method-M000144" class="method-detail">
|
1649
|
+
<a name="M000144"></a>
|
1650
1650
|
|
1651
1651
|
<div class="method-heading">
|
1652
|
-
<a href="#
|
1652
|
+
<a href="#M000144" class="method-signature">
|
1653
1653
|
<span class="method-name">with_temp_working</span><span class="method-args">(&blk)</span>
|
1654
1654
|
</a>
|
1655
1655
|
</div>
|
1656
1656
|
|
1657
1657
|
<div class="method-description">
|
1658
1658
|
<p><a class="source-toggle" href="#"
|
1659
|
-
onclick="toggleCode('
|
1660
|
-
<div class="method-source-code" id="
|
1659
|
+
onclick="toggleCode('M000144-source');return false;">[Source]</a></p>
|
1660
|
+
<div class="method-source-code" id="M000144-source">
|
1661
1661
|
<pre>
|
1662
1662
|
<span class="ruby-comment cmt"># File lib/git/base.rb, line 405</span>
|
1663
1663
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">with_temp_working</span> <span class="ruby-operator">&</span><span class="ruby-identifier">blk</span>
|
@@ -1672,19 +1672,19 @@ LOWER LEVEL INDEX OPERATIONS ##
|
|
1672
1672
|
</div>
|
1673
1673
|
</div>
|
1674
1674
|
|
1675
|
-
<div id="method-
|
1676
|
-
<a name="
|
1675
|
+
<div id="method-M000143" class="method-detail">
|
1676
|
+
<a name="M000143"></a>
|
1677
1677
|
|
1678
1678
|
<div class="method-heading">
|
1679
|
-
<a href="#
|
1679
|
+
<a href="#M000143" class="method-signature">
|
1680
1680
|
<span class="method-name">with_working</span><span class="method-args">(work_dir) {|@working_directory| ...}</span>
|
1681
1681
|
</a>
|
1682
1682
|
</div>
|
1683
1683
|
|
1684
1684
|
<div class="method-description">
|
1685
1685
|
<p><a class="source-toggle" href="#"
|
1686
|
-
onclick="toggleCode('
|
1687
|
-
<div class="method-source-code" id="
|
1686
|
+
onclick="toggleCode('M000143-source');return false;">[Source]</a></p>
|
1687
|
+
<div class="method-source-code" id="M000143-source">
|
1688
1688
|
<pre>
|
1689
1689
|
<span class="ruby-comment cmt"># File lib/git/base.rb, line 394</span>
|
1690
1690
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">with_working</span>(<span class="ruby-identifier">work_dir</span>)
|
@@ -1702,19 +1702,19 @@ LOWER LEVEL INDEX OPERATIONS ##
|
|
1702
1702
|
</div>
|
1703
1703
|
</div>
|
1704
1704
|
|
1705
|
-
<div id="method-
|
1706
|
-
<a name="
|
1705
|
+
<div id="method-M000140" class="method-detail">
|
1706
|
+
<a name="M000140"></a>
|
1707
1707
|
|
1708
1708
|
<div class="method-heading">
|
1709
|
-
<a href="#
|
1709
|
+
<a href="#M000140" class="method-signature">
|
1710
1710
|
<span class="method-name">write_and_commit_tree</span><span class="method-args">(opts = {})</span>
|
1711
1711
|
</a>
|
1712
1712
|
</div>
|
1713
1713
|
|
1714
1714
|
<div class="method-description">
|
1715
1715
|
<p><a class="source-toggle" href="#"
|
1716
|
-
onclick="toggleCode('
|
1717
|
-
<div class="method-source-code" id="
|
1716
|
+
onclick="toggleCode('M000140-source');return false;">[Source]</a></p>
|
1717
|
+
<div class="method-source-code" id="M000140-source">
|
1718
1718
|
<pre>
|
1719
1719
|
<span class="ruby-comment cmt"># File lib/git/base.rb, line 380</span>
|
1720
1720
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">write_and_commit_tree</span>(<span class="ruby-identifier">opts</span> = {})
|
@@ -1726,19 +1726,19 @@ LOWER LEVEL INDEX OPERATIONS ##
|
|
1726
1726
|
</div>
|
1727
1727
|
</div>
|
1728
1728
|
|
1729
|
-
<div id="method-
|
1730
|
-
<a name="
|
1729
|
+
<div id="method-M000138" class="method-detail">
|
1730
|
+
<a name="M000138"></a>
|
1731
1731
|
|
1732
1732
|
<div class="method-heading">
|
1733
|
-
<a href="#
|
1733
|
+
<a href="#M000138" class="method-signature">
|
1734
1734
|
<span class="method-name">write_tree</span><span class="method-args">()</span>
|
1735
1735
|
</a>
|
1736
1736
|
</div>
|
1737
1737
|
|
1738
1738
|
<div class="method-description">
|
1739
1739
|
<p><a class="source-toggle" href="#"
|
1740
|
-
onclick="toggleCode('
|
1741
|
-
<div class="method-source-code" id="
|
1740
|
+
onclick="toggleCode('M000138-source');return false;">[Source]</a></p>
|
1741
|
+
<div class="method-source-code" id="M000138-source">
|
1742
1742
|
<pre>
|
1743
1743
|
<span class="ruby-comment cmt"># File lib/git/base.rb, line 372</span>
|
1744
1744
|
<span class="ruby-keyword kw">def</span> <span class="ruby-identifier">write_tree</span>
|