diff options
Diffstat (limited to 'doc')
-rw-r--r-- | doc/classes/Git/Base.html | 526 | ||||
-rw-r--r-- | doc/classes/Git/Branch.html | 122 | ||||
-rw-r--r-- | doc/classes/Git/Branches.html | 72 | ||||
-rw-r--r-- | doc/classes/Git/Diff.html | 128 | ||||
-rw-r--r-- | doc/classes/Git/Diff/DiffFile.html | 24 | ||||
-rw-r--r-- | doc/classes/Git/Lib.html | 52 | ||||
-rw-r--r-- | doc/classes/Git/Object.html | 12 | ||||
-rw-r--r-- | doc/classes/Git/Object/AbstractObject.html | 96 | ||||
-rw-r--r-- | doc/classes/Git/Object/Blob.html | 12 | ||||
-rw-r--r-- | doc/classes/Git/Object/Commit.html | 12 | ||||
-rw-r--r-- | doc/classes/Git/Object/Tag.html | 24 | ||||
-rw-r--r-- | doc/classes/Git/Object/Tree.html | 12 | ||||
-rw-r--r-- | doc/classes/Git/Path.html | 36 | ||||
-rw-r--r-- | doc/classes/Git/Remote.html | 84 | ||||
-rw-r--r-- | doc/created.rid | 2 | ||||
-rw-r--r-- | doc/files/EXAMPLES.html | 281 | ||||
-rw-r--r-- | doc/files/README.html | 147 | ||||
-rw-r--r-- | doc/files/lib/git/base_rb.html | 2 | ||||
-rw-r--r-- | doc/files/lib/git/lib_rb.html | 2 | ||||
-rw-r--r-- | doc/fr_file_index.html | 1 | ||||
-rw-r--r-- | doc/fr_method_index.html | 198 |
21 files changed, 1007 insertions, 838 deletions
diff --git a/doc/classes/Git/Base.html b/doc/classes/Git/Base.html index 7f4f2c1..2a7fbce 100644 --- a/doc/classes/Git/Base.html +++ b/doc/classes/Git/Base.html @@ -88,47 +88,48 @@ <h3 class="section-bar">Methods</h3> <div class="name-list"> - <a href="#M000099">add</a> - <a href="#M000110">add_remote</a> - <a href="#M000113">add_tag</a> - <a href="#M000076">bare</a> - <a href="#M000094">branch</a> - <a href="#M000093">branches</a> - <a href="#M000084">chdir</a> - <a href="#M000105">checkout</a> - <a href="#M000079">clone</a> - <a href="#M000103">commit</a> - <a href="#M000104">commit_all</a> - <a href="#M000086">config</a> - <a href="#M000116">current_branch</a> - <a href="#M000098">diff</a> - <a href="#M000081">dir</a> - <a href="#M000106">fetch</a> - <a href="#M000090">gblob</a> - <a href="#M000089">gcommit</a> - <a href="#M000097">grep</a> - <a href="#M000088">gtree</a> - <a href="#M000083">index</a> - <a href="#M000078">init</a> - <a href="#M000096">lib</a> - <a href="#M000091">log</a> - <a href="#M000107">merge</a> - <a href="#M000080">new</a> - <a href="#M000087">object</a> - <a href="#M000077">open</a> - <a href="#M000108">pull</a> - <a href="#M000095">remote</a> - <a href="#M000109">remotes</a> - <a href="#M000100">remove</a> - <a href="#M000114">repack</a> - <a href="#M000082">repo</a> - <a href="#M000085">repo_size</a> - <a href="#M000101">reset</a> - <a href="#M000102">reset_hard</a> - <a href="#M000115">revparse</a> - <a href="#M000092">status</a> - <a href="#M000112">tag</a> - <a href="#M000111">tags</a> + <a href="#M000100">add</a> + <a href="#M000112">add_remote</a> + <a href="#M000115">add_tag</a> + <a href="#M000077">bare</a> + <a href="#M000095">branch</a> + <a href="#M000094">branches</a> + <a href="#M000085">chdir</a> + <a href="#M000106">checkout</a> + <a href="#M000080">clone</a> + <a href="#M000104">commit</a> + <a href="#M000105">commit_all</a> + <a href="#M000087">config</a> + <a href="#M000118">current_branch</a> + <a href="#M000099">diff</a> + <a href="#M000082">dir</a> + <a href="#M000107">fetch</a> + <a href="#M000091">gblob</a> + <a href="#M000090">gcommit</a> + <a href="#M000098">grep</a> + <a href="#M000089">gtree</a> + <a href="#M000084">index</a> + <a href="#M000079">init</a> + <a href="#M000097">lib</a> + <a href="#M000092">log</a> + <a href="#M000109">merge</a> + <a href="#M000081">new</a> + <a href="#M000088">object</a> + <a href="#M000078">open</a> + <a href="#M000110">pull</a> + <a href="#M000108">push</a> + <a href="#M000096">remote</a> + <a href="#M000111">remotes</a> + <a href="#M000101">remove</a> + <a href="#M000116">repack</a> + <a href="#M000083">repo</a> + <a href="#M000086">repo_size</a> + <a href="#M000102">reset</a> + <a href="#M000103">reset_hard</a> + <a href="#M000117">revparse</a> + <a href="#M000093">status</a> + <a href="#M000114">tag</a> + <a href="#M000113">tags</a> </div> </div> @@ -150,11 +151,11 @@ <div id="methods"> <h3 class="section-bar">Public Class methods</h3> - <div id="method-M000076" class="method-detail"> - <a name="M000076"></a> + <div id="method-M000077" class="method-detail"> + <a name="M000077"></a> <div class="method-heading"> - <a href="#M000076" class="method-signature"> + <a href="#M000077" class="method-signature"> <span class="method-name">bare</span><span class="method-args">(git_dir)</span> </a> </div> @@ -165,8 +166,8 @@ opens a bare <a href="../Git.html">Git</a> <a href="Repository.html">Repository</a> - no working directory options </p> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000076-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000076-source"> + onclick="toggleCode('M000077-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000077-source"> <pre> <span class="ruby-comment cmt"># File lib/git/base.rb, line 10</span> <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>) @@ -177,11 +178,11 @@ href="Repository.html">Repository</a> - no working directory options </div> </div> - <div id="method-M000079" class="method-detail"> - <a name="M000079"></a> + <div id="method-M000080" class="method-detail"> + <a name="M000080"></a> <div class="method-heading"> - <a href="#M000079" class="method-signature"> + <a href="#M000080" class="method-signature"> <span class="method-name">clone</span><span class="method-args">(repository, name, opts = {})</span> </a> </div> @@ -206,8 +207,8 @@ options: :index_file </pre> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000079-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000079-source"> + onclick="toggleCode('M000080-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000080-source"> <pre> <span class="ruby-comment cmt"># File lib/git/base.rb, line 58</span> <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> = {}) @@ -219,11 +220,11 @@ options: </div> </div> - <div id="method-M000078" class="method-detail"> - <a name="M000078"></a> + <div id="method-M000079" class="method-detail"> + <a name="M000079"></a> <div class="method-heading"> - <a href="#M000078" class="method-signature"> + <a href="#M000079" class="method-signature"> <span class="method-name">init</span><span class="method-args">(working_dir, opts = {})</span> </a> </div> @@ -240,8 +241,8 @@ options: :index_file </pre> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000078-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000078-source"> + onclick="toggleCode('M000079-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000079-source"> <pre> <span class="ruby-comment cmt"># File lib/git/base.rb, line 29</span> <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> = {}) @@ -264,19 +265,19 @@ options: </div> </div> - <div id="method-M000080" class="method-detail"> - <a name="M000080"></a> + <div id="method-M000081" class="method-detail"> + <a name="M000081"></a> <div class="method-heading"> - <a href="#M000080" class="method-signature"> + <a href="#M000081" class="method-signature"> <span class="method-name">new</span><span class="method-args">(options = {})</span> </a> </div> <div class="method-description"> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000080-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000080-source"> + onclick="toggleCode('M000081-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000081-source"> <pre> <span class="ruby-comment cmt"># File lib/git/base.rb, line 63</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">options</span> = {}) @@ -294,11 +295,11 @@ options: </div> </div> - <div id="method-M000077" class="method-detail"> - <a name="M000077"></a> + <div id="method-M000078" class="method-detail"> + <a name="M000078"></a> <div class="method-heading"> - <a href="#M000077" class="method-signature"> + <a href="#M000078" class="method-signature"> <span class="method-name">open</span><span class="method-args">(working_dir, opts={})</span> </a> </div> @@ -309,8 +310,8 @@ opens a new <a href="../Git.html">Git</a> Project from a working directory you can specify non-standard git_dir and index file in the options </p> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000077-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000077-source"> + onclick="toggleCode('M000078-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000078-source"> <pre> <span class="ruby-comment cmt"># File lib/git/base.rb, line 16</span> <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>={}) @@ -326,11 +327,11 @@ you can specify non-standard git_dir and index file in the options <h3 class="section-bar">Public Instance methods</h3> - <div id="method-M000099" class="method-detail"> - <a name="M000099"></a> + <div id="method-M000100" class="method-detail"> + <a name="M000100"></a> <div class="method-heading"> - <a href="#M000099" class="method-signature"> + <a href="#M000100" class="method-signature"> <span class="method-name">add</span><span class="method-args">(path = '.')</span> </a> </div> @@ -340,8 +341,8 @@ you can specify non-standard git_dir and index file in the options adds files from the working directory to the git repository </p> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000099-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000099-source"> + onclick="toggleCode('M000100-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000100-source"> <pre> <span class="ruby-comment cmt"># File lib/git/base.rb, line 162</span> <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>) @@ -352,21 +353,21 @@ adds files from the working directory to the git repository </div> </div> - <div id="method-M000110" class="method-detail"> - <a name="M000110"></a> + <div id="method-M000112" class="method-detail"> + <a name="M000112"></a> <div class="method-heading"> - <a href="#M000110" class="method-signature"> + <a href="#M000112" class="method-signature"> <span class="method-name">add_remote</span><span class="method-args">(name, url, opts = {})</span> </a> </div> <div class="method-description"> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000110-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000110-source"> + onclick="toggleCode('M000112-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000112-source"> <pre> -<span class="ruby-comment cmt"># File lib/git/base.rb, line 209</span> +<span class="ruby-comment cmt"># File lib/git/base.rb, line 213</span> <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> = {}) <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">url</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">Git</span><span class="ruby-operator">::</span><span class="ruby-constant">Base</span>) <span class="ruby-identifier">url</span> = <span class="ruby-identifier">url</span>.<span class="ruby-identifier">repo</span>.<span class="ruby-identifier">path</span> @@ -379,21 +380,21 @@ adds files from the working directory to the git repository </div> </div> - <div id="method-M000113" class="method-detail"> - <a name="M000113"></a> + <div id="method-M000115" class="method-detail"> + <a name="M000115"></a> <div class="method-heading"> - <a href="#M000113" class="method-signature"> + <a href="#M000115" class="method-signature"> <span class="method-name">add_tag</span><span class="method-args">(tag_name)</span> </a> </div> <div class="method-description"> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000113-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000113-source"> + onclick="toggleCode('M000115-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000115-source"> <pre> -<span class="ruby-comment cmt"># File lib/git/base.rb, line 225</span> +<span class="ruby-comment cmt"># File lib/git/base.rb, line 229</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add_tag</span>(<span class="ruby-identifier">tag_name</span>) <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">lib</span>.<span class="ruby-identifier">tag</span>(<span class="ruby-identifier">tag_name</span>) <span class="ruby-identifier">tag</span>(<span class="ruby-identifier">tag_name</span>) @@ -403,19 +404,19 @@ adds files from the working directory to the git repository </div> </div> - <div id="method-M000094" class="method-detail"> - <a name="M000094"></a> + <div id="method-M000095" class="method-detail"> + <a name="M000095"></a> <div class="method-heading"> - <a href="#M000094" class="method-signature"> + <a href="#M000095" class="method-signature"> <span class="method-name">branch</span><span class="method-args">(branch_name = 'master')</span> </a> </div> <div class="method-description"> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000094-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000094-source"> + onclick="toggleCode('M000095-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000095-source"> <pre> <span class="ruby-comment cmt"># File lib/git/base.rb, line 140</span> <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>) @@ -426,19 +427,19 @@ adds files from the working directory to the git repository </div> </div> - <div id="method-M000093" class="method-detail"> - <a name="M000093"></a> + <div id="method-M000094" class="method-detail"> + <a name="M000094"></a> <div class="method-heading"> - <a href="#M000093" class="method-signature"> + <a href="#M000094" class="method-signature"> <span class="method-name">branches</span><span class="method-args">()</span> </a> </div> <div class="method-description"> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000093-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000093-source"> + onclick="toggleCode('M000094-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000094-source"> <pre> <span class="ruby-comment cmt"># File lib/git/base.rb, line 136</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">branches</span> @@ -449,19 +450,19 @@ adds files from the working directory to the git repository </div> </div> - <div id="method-M000084" class="method-detail"> - <a name="M000084"></a> + <div id="method-M000085" class="method-detail"> + <a name="M000085"></a> <div class="method-heading"> - <a href="#M000084" class="method-signature"> + <a href="#M000085" class="method-signature"> <span class="method-name">chdir</span><span class="method-args">() {|dir.path| ...}</span> </a> </div> <div class="method-description"> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000084-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000084-source"> + onclick="toggleCode('M000085-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000085-source"> <pre> <span class="ruby-comment cmt"># File lib/git/base.rb, line 87</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">chdir</span> @@ -474,22 +475,22 @@ adds files from the working directory to the git repository </div> </div> - <div id="method-M000105" class="method-detail"> - <a name="M000105"></a> + <div id="method-M000106" class="method-detail"> + <a name="M000106"></a> <div class="method-heading"> - <a href="#M000105" class="method-signature"> - <span class="method-name">checkout</span><span class="method-args">(branch, opts = {})</span> + <a href="#M000106" class="method-signature"> + <span class="method-name">checkout</span><span class="method-args">(branch = 'master', opts = {})</span> </a> </div> <div class="method-description"> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000105-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000105-source"> + onclick="toggleCode('M000106-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000106-source"> <pre> <span class="ruby-comment cmt"># File lib/git/base.rb, line 188</span> - <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">checkout</span>(<span class="ruby-identifier">branch</span>, <span class="ruby-identifier">opts</span> = {}) + <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> = {}) <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">lib</span>.<span class="ruby-identifier">checkout</span>(<span class="ruby-identifier">branch</span>, <span class="ruby-identifier">opts</span>) <span class="ruby-keyword kw">end</span> </pre> @@ -497,19 +498,19 @@ adds files from the working directory to the git repository </div> </div> - <div id="method-M000103" class="method-detail"> - <a name="M000103"></a> + <div id="method-M000104" class="method-detail"> + <a name="M000104"></a> <div class="method-heading"> - <a href="#M000103" class="method-signature"> + <a href="#M000104" class="method-signature"> <span class="method-name">commit</span><span class="method-args">(message, opts = {})</span> </a> </div> <div class="method-description"> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000103-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000103-source"> + onclick="toggleCode('M000104-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000104-source"> <pre> <span class="ruby-comment cmt"># File lib/git/base.rb, line 179</span> <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> = {}) @@ -520,19 +521,19 @@ adds files from the working directory to the git repository </div> </div> - <div id="method-M000104" class="method-detail"> - <a name="M000104"></a> + <div id="method-M000105" class="method-detail"> + <a name="M000105"></a> <div class="method-heading"> - <a href="#M000104" class="method-signature"> + <a href="#M000105" class="method-signature"> <span class="method-name">commit_all</span><span class="method-args">(message, opts = {})</span> </a> </div> <div class="method-description"> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000104-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000104-source"> + onclick="toggleCode('M000105-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000105-source"> <pre> <span class="ruby-comment cmt"># File lib/git/base.rb, line 183</span> <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> = {}) @@ -544,11 +545,11 @@ adds files from the working directory to the git repository </div> </div> - <div id="method-M000086" class="method-detail"> - <a name="M000086"></a> + <div id="method-M000087" class="method-detail"> + <a name="M000087"></a> <div class="method-heading"> - <a href="#M000086" class="method-signature"> + <a href="#M000087" class="method-signature"> <span class="method-name">config</span><span class="method-args">(name = nil, value = nil)</span> </a> </div> @@ -561,8 +562,8 @@ value g.config(‘user.name’) # returns ‘Scott Chacon’ g.config # returns whole config hash </p> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000086-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000086-source"> + onclick="toggleCode('M000087-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000087-source"> <pre> <span class="ruby-comment cmt"># File lib/git/base.rb, line 105</span> <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>) @@ -582,21 +583,21 @@ Chacon’ g.config # returns whole config hash </div> </div> - <div id="method-M000116" class="method-detail"> - <a name="M000116"></a> + <div id="method-M000118" class="method-detail"> + <a name="M000118"></a> <div class="method-heading"> - <a href="#M000116" class="method-signature"> + <a href="#M000118" class="method-signature"> <span class="method-name">current_branch</span><span class="method-args">()</span> </a> </div> <div class="method-description"> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000116-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000116-source"> + onclick="toggleCode('M000118-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000118-source"> <pre> -<span class="ruby-comment cmt"># File lib/git/base.rb, line 240</span> +<span class="ruby-comment cmt"># File lib/git/base.rb, line 244</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">current_branch</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">lib</span>.<span class="ruby-identifier">branch_current</span> <span class="ruby-keyword kw">end</span> @@ -605,19 +606,19 @@ Chacon’ g.config # returns whole config hash </div> </div> - <div id="method-M000098" class="method-detail"> - <a name="M000098"></a> + <div id="method-M000099" class="method-detail"> + <a name="M000099"></a> <div class="method-heading"> - <a href="#M000098" class="method-signature"> + <a href="#M000099" class="method-signature"> <span class="method-name">diff</span><span class="method-args">(objectish = 'HEAD', obj2 = nil)</span> </a> </div> <div class="method-description"> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000098-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000098-source"> + onclick="toggleCode('M000099-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000099-source"> <pre> <span class="ruby-comment cmt"># File lib/git/base.rb, line 157</span> <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>) @@ -628,19 +629,19 @@ Chacon’ g.config # returns whole config hash </div> </div> - <div id="method-M000081" class="method-detail"> - <a name="M000081"></a> + <div id="method-M000082" class="method-detail"> + <a name="M000082"></a> <div class="method-heading"> - <a href="#M000081" class="method-signature"> + <a href="#M000082" class="method-signature"> <span class="method-name">dir</span><span class="method-args">()</span> </a> </div> <div class="method-description"> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000081-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000081-source"> + onclick="toggleCode('M000082-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000082-source"> <pre> <span class="ruby-comment cmt"># File lib/git/base.rb, line 75</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">dir</span> @@ -651,19 +652,19 @@ Chacon’ g.config # returns whole config hash </div> </div> - <div id="method-M000106" class="method-detail"> - <a name="M000106"></a> + <div id="method-M000107" class="method-detail"> + <a name="M000107"></a> <div class="method-heading"> - <a href="#M000106" class="method-signature"> + <a href="#M000107" class="method-signature"> <span class="method-name">fetch</span><span class="method-args">(remote = 'origin')</span> </a> </div> <div class="method-description"> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000106-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000106-source"> + onclick="toggleCode('M000107-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000107-source"> <pre> <span class="ruby-comment cmt"># File lib/git/base.rb, line 192</span> <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>) @@ -674,8 +675,8 @@ Chacon’ g.config # returns whole config hash </div> </div> - <div id="method-M000090" class="method-detail"> - <a name="M000090"></a> + <div id="method-M000091" class="method-detail"> + <a name="M000091"></a> <div class="method-heading"> <span class="method-name">gblob</span><span class="method-args">(objectish)</span> @@ -683,13 +684,13 @@ Chacon’ g.config # returns whole config hash <div class="method-description"> <p> -Alias for <a href="Base.html#M000087">object</a> +Alias for <a href="Base.html#M000088">object</a> </p> </div> </div> - <div id="method-M000089" class="method-detail"> - <a name="M000089"></a> + <div id="method-M000090" class="method-detail"> + <a name="M000090"></a> <div class="method-heading"> <span class="method-name">gcommit</span><span class="method-args">(objectish)</span> @@ -697,24 +698,24 @@ Alias for <a href="Base.html#M000087">object</a> <div class="method-description"> <p> -Alias for <a href="Base.html#M000087">object</a> +Alias for <a href="Base.html#M000088">object</a> </p> </div> </div> - <div id="method-M000097" class="method-detail"> - <a name="M000097"></a> + <div id="method-M000098" class="method-detail"> + <a name="M000098"></a> <div class="method-heading"> - <a href="#M000097" class="method-signature"> + <a href="#M000098" class="method-signature"> <span class="method-name">grep</span><span class="method-args">(string)</span> </a> </div> <div class="method-description"> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000097-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000097-source"> + onclick="toggleCode('M000098-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000098-source"> <pre> <span class="ruby-comment cmt"># File lib/git/base.rb, line 153</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">grep</span>(<span class="ruby-identifier">string</span>) @@ -725,8 +726,8 @@ Alias for <a href="Base.html#M000087">object</a> </div> </div> - <div id="method-M000088" class="method-detail"> - <a name="M000088"></a> + <div id="method-M000089" class="method-detail"> + <a name="M000089"></a> <div class="method-heading"> <span class="method-name">gtree</span><span class="method-args">(objectish)</span> @@ -734,24 +735,24 @@ Alias for <a href="Base.html#M000087">object</a> <div class="method-description"> <p> -Alias for <a href="Base.html#M000087">object</a> +Alias for <a href="Base.html#M000088">object</a> </p> </div> </div> - <div id="method-M000083" class="method-detail"> - <a name="M000083"></a> + <div id="method-M000084" class="method-detail"> + <a name="M000084"></a> <div class="method-heading"> - <a href="#M000083" class="method-signature"> + <a href="#M000084" class="method-signature"> <span class="method-name">index</span><span class="method-args">()</span> </a> </div> <div class="method-description"> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000083-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000083-source"> + onclick="toggleCode('M000084-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000084-source"> <pre> <span class="ruby-comment cmt"># File lib/git/base.rb, line 83</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">index</span> @@ -762,19 +763,19 @@ Alias for <a href="Base.html#M000087">object</a> </div> </div> - <div id="method-M000096" class="method-detail"> - <a name="M000096"></a> + <div id="method-M000097" class="method-detail"> + <a name="M000097"></a> <div class="method-heading"> - <a href="#M000096" class="method-signature"> + <a href="#M000097" class="method-signature"> <span class="method-name">lib</span><span class="method-args">()</span> </a> </div> <div class="method-description"> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000096-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000096-source"> + onclick="toggleCode('M000097-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000097-source"> <pre> <span class="ruby-comment cmt"># File lib/git/base.rb, line 149</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">lib</span> @@ -785,19 +786,19 @@ Alias for <a href="Base.html#M000087">object</a> </div> </div> - <div id="method-M000091" class="method-detail"> - <a name="M000091"></a> + <div id="method-M000092" class="method-detail"> + <a name="M000092"></a> <div class="method-heading"> - <a href="#M000091" class="method-signature"> + <a href="#M000092" class="method-signature"> <span class="method-name">log</span><span class="method-args">(count = 30)</span> </a> </div> <div class="method-description"> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000091-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000091-source"> + onclick="toggleCode('M000092-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000092-source"> <pre> <span class="ruby-comment cmt"># File lib/git/base.rb, line 128</span> <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>) @@ -808,21 +809,21 @@ Alias for <a href="Base.html#M000087">object</a> </div> </div> - <div id="method-M000107" class="method-detail"> - <a name="M000107"></a> + <div id="method-M000109" class="method-detail"> + <a name="M000109"></a> <div class="method-heading"> - <a href="#M000107" class="method-signature"> + <a href="#M000109" class="method-signature"> <span class="method-name">merge</span><span class="method-args">(branch, message = 'merge')</span> </a> </div> <div class="method-description"> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000107-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000107-source"> + onclick="toggleCode('M000109-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000109-source"> <pre> -<span class="ruby-comment cmt"># File lib/git/base.rb, line 196</span> +<span class="ruby-comment cmt"># File lib/git/base.rb, line 200</span> <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>) <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">lib</span>.<span class="ruby-identifier">merge</span>(<span class="ruby-identifier">branch</span>, <span class="ruby-identifier">message</span>) <span class="ruby-keyword kw">end</span> @@ -831,11 +832,11 @@ Alias for <a href="Base.html#M000087">object</a> </div> </div> - <div id="method-M000087" class="method-detail"> - <a name="M000087"></a> + <div id="method-M000088" class="method-detail"> + <a name="M000088"></a> <div class="method-heading"> - <a href="#M000087" class="method-signature"> + <a href="#M000088" class="method-signature"> <span class="method-name">object</span><span class="method-args">(objectish)</span> </a> </div> @@ -845,8 +846,8 @@ Alias for <a href="Base.html#M000087">object</a> factory methods </p> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000087-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000087-source"> + onclick="toggleCode('M000088-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000088-source"> <pre> <span class="ruby-comment cmt"># File lib/git/base.rb, line 120</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">object</span>(<span class="ruby-identifier">objectish</span>) @@ -857,12 +858,36 @@ factory methods </div> </div> + <div id="method-M000110" class="method-detail"> + <a name="M000110"></a> + + <div class="method-heading"> + <a href="#M000110" class="method-signature"> + <span class="method-name">pull</span><span class="method-args">(remote = 'origin', branch = 'master', message = 'origin pull')</span> + </a> + </div> + + <div class="method-description"> + <p><a class="source-toggle" href="#" + onclick="toggleCode('M000110-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000110-source"> +<pre> +<span class="ruby-comment cmt"># File lib/git/base.rb, line 204</span> + <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>) + <span class="ruby-identifier">fetch</span>(<span class="ruby-identifier">remote</span>) + <span class="ruby-identifier">merge</span>(<span class="ruby-identifier">branch</span>, <span class="ruby-identifier">message</span>) + <span class="ruby-keyword kw">end</span> +</pre> + </div> + </div> + </div> + <div id="method-M000108" class="method-detail"> <a name="M000108"></a> <div class="method-heading"> <a href="#M000108" class="method-signature"> - <span class="method-name">pull</span><span class="method-args">(remote = 'origin', branch = 'master', message = 'origin pull')</span> + <span class="method-name">push</span><span class="method-args">(remote = 'origin', branch = 'master')</span> </a> </div> @@ -871,29 +896,28 @@ factory methods onclick="toggleCode('M000108-source');return false;">[Source]</a></p> <div class="method-source-code" id="M000108-source"> <pre> -<span class="ruby-comment cmt"># File lib/git/base.rb, line 200</span> - <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>) - <span class="ruby-identifier">fetch</span>(<span class="ruby-identifier">remote</span>) - <span class="ruby-identifier">merge</span>(<span class="ruby-identifier">branch</span>, <span class="ruby-identifier">message</span>) +<span class="ruby-comment cmt"># File lib/git/base.rb, line 196</span> + <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>) + <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">lib</span>.<span class="ruby-identifier">push</span>(<span class="ruby-identifier">remote</span>, <span class="ruby-identifier">branch</span>) <span class="ruby-keyword kw">end</span> </pre> </div> </div> </div> - <div id="method-M000095" class="method-detail"> - <a name="M000095"></a> + <div id="method-M000096" class="method-detail"> + <a name="M000096"></a> <div class="method-heading"> - <a href="#M000095" class="method-signature"> + <a href="#M000096" class="method-signature"> <span class="method-name">remote</span><span class="method-args">(remote_name = 'origin')</span> </a> </div> <div class="method-description"> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000095-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000095-source"> + onclick="toggleCode('M000096-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000096-source"> <pre> <span class="ruby-comment cmt"># File lib/git/base.rb, line 144</span> <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>) @@ -904,21 +928,21 @@ factory methods </div> </div> - <div id="method-M000109" class="method-detail"> - <a name="M000109"></a> + <div id="method-M000111" class="method-detail"> + <a name="M000111"></a> <div class="method-heading"> - <a href="#M000109" class="method-signature"> + <a href="#M000111" class="method-signature"> <span class="method-name">remotes</span><span class="method-args">()</span> </a> </div> <div class="method-description"> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000109-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000109-source"> + onclick="toggleCode('M000111-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000111-source"> <pre> -<span class="ruby-comment cmt"># File lib/git/base.rb, line 205</span> +<span class="ruby-comment cmt"># File lib/git/base.rb, line 209</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">remotes</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">lib</span>.<span class="ruby-identifier">remotes</span>.<span class="ruby-identifier">map</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">r</span><span class="ruby-operator">|</span> <span class="ruby-constant">Git</span><span class="ruby-operator">::</span><span class="ruby-constant">Remote</span>.<span class="ruby-identifier">new</span>(<span class="ruby-keyword kw">self</span>, <span class="ruby-identifier">r</span>) } <span class="ruby-keyword kw">end</span> @@ -927,19 +951,19 @@ factory methods </div> </div> - <div id="method-M000100" class="method-detail"> - <a name="M000100"></a> + <div id="method-M000101" class="method-detail"> + <a name="M000101"></a> <div class="method-heading"> - <a href="#M000100" class="method-signature"> + <a href="#M000101" class="method-signature"> <span class="method-name">remove</span><span class="method-args">(path = '.', opts = {})</span> </a> </div> <div class="method-description"> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000100-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000100-source"> + onclick="toggleCode('M000101-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000101-source"> <pre> <span class="ruby-comment cmt"># File lib/git/base.rb, line 166</span> <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> = {}) @@ -950,11 +974,11 @@ factory methods </div> </div> - <div id="method-M000114" class="method-detail"> - <a name="M000114"></a> + <div id="method-M000116" class="method-detail"> + <a name="M000116"></a> <div class="method-heading"> - <a href="#M000114" class="method-signature"> + <a href="#M000116" class="method-signature"> <span class="method-name">repack</span><span class="method-args">()</span> </a> </div> @@ -964,10 +988,10 @@ factory methods convenience methods </p> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000114-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000114-source"> + onclick="toggleCode('M000116-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000116-source"> <pre> -<span class="ruby-comment cmt"># File lib/git/base.rb, line 232</span> +<span class="ruby-comment cmt"># File lib/git/base.rb, line 236</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">repack</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">lib</span>.<span class="ruby-identifier">repack</span> <span class="ruby-keyword kw">end</span> @@ -976,19 +1000,19 @@ convenience methods </div> </div> - <div id="method-M000082" class="method-detail"> - <a name="M000082"></a> + <div id="method-M000083" class="method-detail"> + <a name="M000083"></a> <div class="method-heading"> - <a href="#M000082" class="method-signature"> + <a href="#M000083" class="method-signature"> <span class="method-name">repo</span><span class="method-args">()</span> </a> </div> <div class="method-description"> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000082-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000082-source"> + onclick="toggleCode('M000083-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000083-source"> <pre> <span class="ruby-comment cmt"># File lib/git/base.rb, line 79</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">repo</span> @@ -999,19 +1023,19 @@ convenience methods </div> </div> - <div id="method-M000085" class="method-detail"> - <a name="M000085"></a> + <div id="method-M000086" class="method-detail"> + <a name="M000086"></a> <div class="method-heading"> - <a href="#M000085" class="method-signature"> + <a href="#M000086" class="method-signature"> <span class="method-name">repo_size</span><span class="method-args">()</span> </a> </div> <div class="method-description"> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000085-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000085-source"> + onclick="toggleCode('M000086-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000086-source"> <pre> <span class="ruby-comment cmt"># File lib/git/base.rb, line 93</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">repo_size</span> @@ -1026,19 +1050,19 @@ convenience methods </div> </div> - <div id="method-M000101" class="method-detail"> - <a name="M000101"></a> + <div id="method-M000102" class="method-detail"> + <a name="M000102"></a> <div class="method-heading"> - <a href="#M000101" class="method-signature"> + <a href="#M000102" class="method-signature"> <span class="method-name">reset</span><span class="method-args">(commitish = nil, opts = {})</span> </a> </div> <div class="method-description"> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000101-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000101-source"> + onclick="toggleCode('M000102-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000102-source"> <pre> <span class="ruby-comment cmt"># File lib/git/base.rb, line 170</span> <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> = {}) @@ -1049,19 +1073,19 @@ convenience methods </div> </div> - <div id="method-M000102" class="method-detail"> - <a name="M000102"></a> + <div id="method-M000103" class="method-detail"> + <a name="M000103"></a> <div class="method-heading"> - <a href="#M000102" class="method-signature"> + <a href="#M000103" class="method-signature"> <span class="method-name">reset_hard</span><span class="method-args">(commitish = nil, opts = {})</span> </a> </div> <div class="method-description"> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000102-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000102-source"> + onclick="toggleCode('M000103-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000103-source"> <pre> <span class="ruby-comment cmt"># File lib/git/base.rb, line 174</span> <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> = {}) @@ -1073,21 +1097,21 @@ convenience methods </div> </div> - <div id="method-M000115" class="method-detail"> - <a name="M000115"></a> + <div id="method-M000117" class="method-detail"> + <a name="M000117"></a> <div class="method-heading"> - <a href="#M000115" class="method-signature"> + <a href="#M000117" class="method-signature"> <span class="method-name">revparse</span><span class="method-args">(objectish)</span> </a> </div> <div class="method-description"> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000115-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000115-source"> + onclick="toggleCode('M000117-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000117-source"> <pre> -<span class="ruby-comment cmt"># File lib/git/base.rb, line 236</span> +<span class="ruby-comment cmt"># File lib/git/base.rb, line 240</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">revparse</span>(<span class="ruby-identifier">objectish</span>) <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">lib</span>.<span class="ruby-identifier">revparse</span>(<span class="ruby-identifier">objectish</span>) <span class="ruby-keyword kw">end</span> @@ -1096,19 +1120,19 @@ convenience methods </div> </div> - <div id="method-M000092" class="method-detail"> - <a name="M000092"></a> + <div id="method-M000093" class="method-detail"> + <a name="M000093"></a> <div class="method-heading"> - <a href="#M000092" class="method-signature"> + <a href="#M000093" class="method-signature"> <span class="method-name">status</span><span class="method-args">()</span> </a> </div> <div class="method-description"> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000092-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000092-source"> + onclick="toggleCode('M000093-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000093-source"> <pre> <span class="ruby-comment cmt"># File lib/git/base.rb, line 132</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">status</span> @@ -1119,21 +1143,21 @@ convenience methods </div> </div> - <div id="method-M000112" class="method-detail"> - <a name="M000112"></a> + <div id="method-M000114" class="method-detail"> + <a name="M000114"></a> <div class="method-heading"> - <a href="#M000112" class="method-signature"> + <a href="#M000114" class="method-signature"> <span class="method-name">tag</span><span class="method-args">(tag_name)</span> </a> </div> <div class="method-description"> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000112-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000112-source"> + onclick="toggleCode('M000114-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000114-source"> <pre> -<span class="ruby-comment cmt"># File lib/git/base.rb, line 221</span> +<span class="ruby-comment cmt"># File lib/git/base.rb, line 225</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">tag</span>(<span class="ruby-identifier">tag_name</span>) <span class="ruby-constant">Git</span><span class="ruby-operator">::</span><span class="ruby-constant">Object</span>.<span class="ruby-identifier">new</span>(<span class="ruby-keyword kw">self</span>, <span class="ruby-identifier">tag_name</span>, <span class="ruby-keyword kw">true</span>) <span class="ruby-keyword kw">end</span> @@ -1142,21 +1166,21 @@ convenience methods </div> </div> - <div id="method-M000111" class="method-detail"> - <a name="M000111"></a> + <div id="method-M000113" class="method-detail"> + <a name="M000113"></a> <div class="method-heading"> - <a href="#M000111" class="method-signature"> + <a href="#M000113" class="method-signature"> <span class="method-name">tags</span><span class="method-args">()</span> </a> </div> <div class="method-description"> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000111-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000111-source"> + onclick="toggleCode('M000113-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000113-source"> <pre> -<span class="ruby-comment cmt"># File lib/git/base.rb, line 217</span> +<span class="ruby-comment cmt"># File lib/git/base.rb, line 221</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">tags</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">lib</span>.<span class="ruby-identifier">tags</span>.<span class="ruby-identifier">map</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">r</span><span class="ruby-operator">|</span> <span class="ruby-identifier">tag</span>(<span class="ruby-identifier">r</span>) } <span class="ruby-keyword kw">end</span> diff --git a/doc/classes/Git/Branch.html b/doc/classes/Git/Branch.html index aa97d6b..4fb476d 100644 --- a/doc/classes/Git/Branch.html +++ b/doc/classes/Git/Branch.html @@ -88,16 +88,16 @@ <h3 class="section-bar">Methods</h3> <div class="name-list"> - <a href="#M000068">checkout</a> - <a href="#M000070">create</a> - <a href="#M000072">current</a> - <a href="#M000071">delete</a> - <a href="#M000067">gcommit</a> - <a href="#M000069">in_branch</a> - <a href="#M000073">merge</a> - <a href="#M000066">new</a> - <a href="#M000074">to_a</a> - <a href="#M000075">to_s</a> + <a href="#M000069">checkout</a> + <a href="#M000071">create</a> + <a href="#M000073">current</a> + <a href="#M000072">delete</a> + <a href="#M000068">gcommit</a> + <a href="#M000070">in_branch</a> + <a href="#M000074">merge</a> + <a href="#M000067">new</a> + <a href="#M000075">to_a</a> + <a href="#M000076">to_s</a> </div> </div> @@ -142,19 +142,19 @@ <div id="methods"> <h3 class="section-bar">Public Class methods</h3> - <div id="method-M000066" class="method-detail"> - <a name="M000066"></a> + <div id="method-M000067" class="method-detail"> + <a name="M000067"></a> <div class="method-heading"> - <a href="#M000066" class="method-signature"> + <a href="#M000067" class="method-signature"> <span class="method-name">new</span><span class="method-args">(base, name)</span> </a> </div> <div class="method-description"> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000066-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000066-source"> + onclick="toggleCode('M000067-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000067-source"> <pre> <span class="ruby-comment cmt"># File lib/git/branch.rb, line 9</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">base</span>, <span class="ruby-identifier">name</span>) @@ -177,19 +177,19 @@ <h3 class="section-bar">Public Instance methods</h3> - <div id="method-M000068" class="method-detail"> - <a name="M000068"></a> + <div id="method-M000069" class="method-detail"> + <a name="M000069"></a> <div class="method-heading"> - <a href="#M000068" class="method-signature"> + <a href="#M000069" class="method-signature"> <span class="method-name">checkout</span><span class="method-args">()</span> </a> </div> <div class="method-description"> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000068-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000068-source"> + onclick="toggleCode('M000069-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000069-source"> <pre> <span class="ruby-comment cmt"># File lib/git/branch.rb, line 28</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">checkout</span> @@ -201,19 +201,19 @@ </div> </div> - <div id="method-M000070" class="method-detail"> - <a name="M000070"></a> + <div id="method-M000071" class="method-detail"> + <a name="M000071"></a> <div class="method-heading"> - <a href="#M000070" class="method-signature"> + <a href="#M000071" class="method-signature"> <span class="method-name">create</span><span class="method-args">()</span> </a> </div> <div class="method-description"> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000070-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000070-source"> + onclick="toggleCode('M000071-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000071-source"> <pre> <span class="ruby-comment cmt"># File lib/git/branch.rb, line 50</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">create</span> @@ -224,19 +224,19 @@ </div> </div> - <div id="method-M000072" class="method-detail"> - <a name="M000072"></a> + <div id="method-M000073" class="method-detail"> + <a name="M000073"></a> <div class="method-heading"> - <a href="#M000072" class="method-signature"> + <a href="#M000073" class="method-signature"> <span class="method-name">current</span><span class="method-args">()</span> </a> </div> <div class="method-description"> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000072-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000072-source"> + onclick="toggleCode('M000073-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000073-source"> <pre> <span class="ruby-comment cmt"># File lib/git/branch.rb, line 58</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">current</span> @@ -247,19 +247,19 @@ </div> </div> - <div id="method-M000071" class="method-detail"> - <a name="M000071"></a> + <div id="method-M000072" class="method-detail"> + <a name="M000072"></a> <div class="method-heading"> - <a href="#M000071" class="method-signature"> + <a href="#M000072" class="method-signature"> <span class="method-name">delete</span><span class="method-args">()</span> </a> </div> <div class="method-description"> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000071-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000071-source"> + onclick="toggleCode('M000072-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000072-source"> <pre> <span class="ruby-comment cmt"># File lib/git/branch.rb, line 54</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">delete</span> @@ -270,19 +270,19 @@ </div> </div> - <div id="method-M000067" class="method-detail"> - <a name="M000067"></a> + <div id="method-M000068" class="method-detail"> + <a name="M000068"></a> <div class="method-heading"> - <a href="#M000067" class="method-signature"> + <a href="#M000068" class="method-signature"> <span class="method-name">gcommit</span><span class="method-args">()</span> </a> </div> <div class="method-description"> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000067-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000067-source"> + onclick="toggleCode('M000068-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000068-source"> <pre> <span class="ruby-comment cmt"># File lib/git/branch.rb, line 23</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">gcommit</span> @@ -294,11 +294,11 @@ </div> </div> - <div id="method-M000069" class="method-detail"> - <a name="M000069"></a> + <div id="method-M000070" class="method-detail"> + <a name="M000070"></a> <div class="method-heading"> - <a href="#M000069" class="method-signature"> + <a href="#M000070" class="method-signature"> <span class="method-name">in_branch</span><span class="method-args">(message = 'in branch work') {|| ...}</span> </a> </div> @@ -306,7 +306,7 @@ <div class="method-description"> <p> g.branch(‘new_branch’).<a -href="Branch.html#M000069">in_branch</a> do +href="Branch.html#M000070">in_branch</a> do </p> <pre> # create new file @@ -317,8 +317,8 @@ href="Branch.html#M000069">in_branch</a> do end </p> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000069-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000069-source"> + onclick="toggleCode('M000070-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000070-source"> <pre> <span class="ruby-comment cmt"># File lib/git/branch.rb, line 39</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">in_branch</span> (<span class="ruby-identifier">message</span> = <span class="ruby-value str">'in branch work'</span>) @@ -336,19 +336,19 @@ end </div> </div> - <div id="method-M000073" class="method-detail"> - <a name="M000073"></a> + <div id="method-M000074" class="method-detail"> + <a name="M000074"></a> <div class="method-heading"> - <a href="#M000073" class="method-signature"> + <a href="#M000074" class="method-signature"> <span class="method-name">merge</span><span class="method-args">(branch = nil, message = nil)</span> </a> </div> <div class="method-description"> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000073-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000073-source"> + onclick="toggleCode('M000074-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000074-source"> <pre> <span class="ruby-comment cmt"># File lib/git/branch.rb, line 62</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">merge</span>(<span class="ruby-identifier">branch</span> = <span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">message</span> = <span class="ruby-keyword kw">nil</span>) @@ -368,19 +368,19 @@ end </div> </div> - <div id="method-M000074" class="method-detail"> - <a name="M000074"></a> + <div id="method-M000075" class="method-detail"> + <a name="M000075"></a> <div class="method-heading"> - <a href="#M000074" class="method-signature"> + <a href="#M000075" class="method-signature"> <span class="method-name">to_a</span><span class="method-args">()</span> </a> </div> <div class="method-description"> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000074-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000074-source"> + onclick="toggleCode('M000075-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000075-source"> <pre> <span class="ruby-comment cmt"># File lib/git/branch.rb, line 75</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_a</span> @@ -391,19 +391,19 @@ end </div> </div> - <div id="method-M000075" class="method-detail"> - <a name="M000075"></a> + <div id="method-M000076" class="method-detail"> + <a name="M000076"></a> <div class="method-heading"> - <a href="#M000075" class="method-signature"> + <a href="#M000076" class="method-signature"> <span class="method-name">to_s</span><span class="method-args">()</span> </a> </div> <div class="method-description"> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000075-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000075-source"> + onclick="toggleCode('M000076-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000076-source"> <pre> <span class="ruby-comment cmt"># File lib/git/branch.rb, line 79</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_s</span> diff --git a/doc/classes/Git/Branches.html b/doc/classes/Git/Branches.html index 1069f77..c9f9f7e 100644 --- a/doc/classes/Git/Branches.html +++ b/doc/classes/Git/Branches.html @@ -94,12 +94,12 @@ object that holds all the available branches <h3 class="section-bar">Methods</h3> <div class="name-list"> - <a href="#M000065">[]</a> - <a href="#M000064">each</a> - <a href="#M000061">local</a> - <a href="#M000060">new</a> - <a href="#M000062">remote</a> - <a href="#M000063">size</a> + <a href="#M000066">[]</a> + <a href="#M000065">each</a> + <a href="#M000062">local</a> + <a href="#M000061">new</a> + <a href="#M000063">remote</a> + <a href="#M000064">size</a> </div> </div> @@ -128,19 +128,19 @@ object that holds all the available branches <div id="methods"> <h3 class="section-bar">Public Class methods</h3> - <div id="method-M000060" class="method-detail"> - <a name="M000060"></a> + <div id="method-M000061" class="method-detail"> + <a name="M000061"></a> <div class="method-heading"> - <a href="#M000060" class="method-signature"> + <a href="#M000061" class="method-signature"> <span class="method-name">new</span><span class="method-args">(base)</span> </a> </div> <div class="method-description"> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000060-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000060-source"> + onclick="toggleCode('M000061-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000061-source"> <pre> <span class="ruby-comment cmt"># File lib/git/branches.rb, line 10</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">base</span>) @@ -159,19 +159,19 @@ object that holds all the available branches <h3 class="section-bar">Public Instance methods</h3> - <div id="method-M000065" class="method-detail"> - <a name="M000065"></a> + <div id="method-M000066" class="method-detail"> + <a name="M000066"></a> <div class="method-heading"> - <a href="#M000065" class="method-signature"> + <a href="#M000066" class="method-signature"> <span class="method-name">[]</span><span class="method-args">(symbol)</span> </a> </div> <div class="method-description"> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000065-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000065-source"> + onclick="toggleCode('M000066-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000066-source"> <pre> <span class="ruby-comment cmt"># File lib/git/branches.rb, line 40</span> <span class="ruby-keyword kw">def</span> <span class="ruby-operator">[]</span>(<span class="ruby-identifier">symbol</span>) @@ -182,19 +182,19 @@ object that holds all the available branches </div> </div> - <div id="method-M000064" class="method-detail"> - <a name="M000064"></a> + <div id="method-M000065" class="method-detail"> + <a name="M000065"></a> <div class="method-heading"> - <a href="#M000064" class="method-signature"> + <a href="#M000065" class="method-signature"> <span class="method-name">each</span><span class="method-args">() {|b| ...}</span> </a> </div> <div class="method-description"> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000064-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000064-source"> + onclick="toggleCode('M000065-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000065-source"> <pre> <span class="ruby-comment cmt"># File lib/git/branches.rb, line 34</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">each</span> @@ -207,19 +207,19 @@ object that holds all the available branches </div> </div> - <div id="method-M000061" class="method-detail"> - <a name="M000061"></a> + <div id="method-M000062" class="method-detail"> + <a name="M000062"></a> <div class="method-heading"> - <a href="#M000061" class="method-signature"> + <a href="#M000062" class="method-signature"> <span class="method-name">local</span><span class="method-args">()</span> </a> </div> <div class="method-description"> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000061-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000061-source"> + onclick="toggleCode('M000062-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000062-source"> <pre> <span class="ruby-comment cmt"># File lib/git/branches.rb, line 20</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">local</span> @@ -230,19 +230,19 @@ object that holds all the available branches </div> </div> - <div id="method-M000062" class="method-detail"> - <a name="M000062"></a> + <div id="method-M000063" class="method-detail"> + <a name="M000063"></a> <div class="method-heading"> - <a href="#M000062" class="method-signature"> + <a href="#M000063" class="method-signature"> <span class="method-name">remote</span><span class="method-args">()</span> </a> </div> <div class="method-description"> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000062-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000062-source"> + onclick="toggleCode('M000063-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000063-source"> <pre> <span class="ruby-comment cmt"># File lib/git/branches.rb, line 24</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">remote</span> @@ -253,11 +253,11 @@ object that holds all the available branches </div> </div> - <div id="method-M000063" class="method-detail"> - <a name="M000063"></a> + <div id="method-M000064" class="method-detail"> + <a name="M000064"></a> <div class="method-heading"> - <a href="#M000063" class="method-signature"> + <a href="#M000064" class="method-signature"> <span class="method-name">size</span><span class="method-args">()</span> </a> </div> @@ -267,8 +267,8 @@ object that holds all the available branches array like methods </p> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000063-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000063-source"> + onclick="toggleCode('M000064-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000064-source"> <pre> <span class="ruby-comment cmt"># File lib/git/branches.rb, line 30</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">size</span> diff --git a/doc/classes/Git/Diff.html b/doc/classes/Git/Diff.html index a1d441e..a57584c 100644 --- a/doc/classes/Git/Diff.html +++ b/doc/classes/Git/Diff.html @@ -94,17 +94,17 @@ object that holds the last X commits on given branch <h3 class="section-bar">Methods</h3> <div class="name-list"> - <a href="#M000143">[]</a> - <a href="#M000138">deletions</a> - <a href="#M000144">each</a> - <a href="#M000139">insertions</a> - <a href="#M000137">lines</a> - <a href="#M000134">new</a> - <a href="#M000141">patch</a> - <a href="#M000135">path</a> - <a href="#M000136">size</a> - <a href="#M000140">stats</a> - <a href="#M000142">to_s</a> + <a href="#M000145">[]</a> + <a href="#M000140">deletions</a> + <a href="#M000146">each</a> + <a href="#M000141">insertions</a> + <a href="#M000139">lines</a> + <a href="#M000136">new</a> + <a href="#M000143">patch</a> + <a href="#M000137">path</a> + <a href="#M000138">size</a> + <a href="#M000142">stats</a> + <a href="#M000144">to_s</a> </div> </div> @@ -139,19 +139,19 @@ object that holds the last X commits on given branch <div id="methods"> <h3 class="section-bar">Public Class methods</h3> - <div id="method-M000134" class="method-detail"> - <a name="M000134"></a> + <div id="method-M000136" class="method-detail"> + <a name="M000136"></a> <div class="method-heading"> - <a href="#M000134" class="method-signature"> + <a href="#M000136" class="method-signature"> <span class="method-name">new</span><span class="method-args">(base, from = nil, to = nil)</span> </a> </div> <div class="method-description"> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000134-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000134-source"> + onclick="toggleCode('M000136-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000136-source"> <pre> <span class="ruby-comment cmt"># File lib/git/diff.rb, line 16</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">base</span>, <span class="ruby-identifier">from</span> = <span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">to</span> = <span class="ruby-keyword kw">nil</span>) @@ -166,11 +166,11 @@ object that holds the last X commits on given branch <h3 class="section-bar">Public Instance methods</h3> - <div id="method-M000143" class="method-detail"> - <a name="M000143"></a> + <div id="method-M000145" class="method-detail"> + <a name="M000145"></a> <div class="method-heading"> - <a href="#M000143" class="method-signature"> + <a href="#M000145" class="method-signature"> <span class="method-name">[]</span><span class="method-args">(key)</span> </a> </div> @@ -180,8 +180,8 @@ object that holds the last X commits on given branch enumerable methods </p> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000143-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000143-source"> + onclick="toggleCode('M000145-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000145-source"> <pre> <span class="ruby-comment cmt"># File lib/git/diff.rb, line 61</span> <span class="ruby-keyword kw">def</span> <span class="ruby-operator">[]</span>(<span class="ruby-identifier">key</span>) @@ -193,19 +193,19 @@ enumerable methods </div> </div> - <div id="method-M000138" class="method-detail"> - <a name="M000138"></a> + <div id="method-M000140" class="method-detail"> + <a name="M000140"></a> <div class="method-heading"> - <a href="#M000138" class="method-signature"> + <a href="#M000140" class="method-signature"> <span class="method-name">deletions</span><span class="method-args">()</span> </a> </div> <div class="method-description"> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000138-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000138-source"> + onclick="toggleCode('M000140-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000140-source"> <pre> <span class="ruby-comment cmt"># File lib/git/diff.rb, line 37</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">deletions</span> @@ -217,19 +217,19 @@ enumerable methods </div> </div> - <div id="method-M000144" class="method-detail"> - <a name="M000144"></a> + <div id="method-M000146" class="method-detail"> + <a name="M000146"></a> <div class="method-heading"> - <a href="#M000144" class="method-signature"> + <a href="#M000146" class="method-signature"> <span class="method-name">each</span><span class="method-args">() {|file[1]| ...}</span> </a> </div> <div class="method-description"> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000144-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000144-source"> + onclick="toggleCode('M000146-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000146-source"> <pre> <span class="ruby-comment cmt"># File lib/git/diff.rb, line 66</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">each</span> @@ -243,19 +243,19 @@ enumerable methods </div> </div> - <div id="method-M000139" class="method-detail"> - <a name="M000139"></a> + <div id="method-M000141" class="method-detail"> + <a name="M000141"></a> <div class="method-heading"> - <a href="#M000139" class="method-signature"> + <a href="#M000141" class="method-signature"> <span class="method-name">insertions</span><span class="method-args">()</span> </a> </div> <div class="method-description"> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000139-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000139-source"> + onclick="toggleCode('M000141-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000141-source"> <pre> <span class="ruby-comment cmt"># File lib/git/diff.rb, line 42</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">insertions</span> @@ -267,19 +267,19 @@ enumerable methods </div> </div> - <div id="method-M000137" class="method-detail"> - <a name="M000137"></a> + <div id="method-M000139" class="method-detail"> + <a name="M000139"></a> <div class="method-heading"> - <a href="#M000137" class="method-signature"> + <a href="#M000139" class="method-signature"> <span class="method-name">lines</span><span class="method-args">()</span> </a> </div> <div class="method-description"> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000137-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000137-source"> + onclick="toggleCode('M000139-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000139-source"> <pre> <span class="ruby-comment cmt"># File lib/git/diff.rb, line 32</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">lines</span> @@ -291,11 +291,11 @@ enumerable methods </div> </div> - <div id="method-M000141" class="method-detail"> - <a name="M000141"></a> + <div id="method-M000143" class="method-detail"> + <a name="M000143"></a> <div class="method-heading"> - <a href="#M000141" class="method-signature"> + <a href="#M000143" class="method-signature"> <span class="method-name">patch</span><span class="method-args">(file = nil)</span> </a> </div> @@ -305,8 +305,8 @@ enumerable methods if file is provided and is writable, it will write the patch into the file </p> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000141-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000141-source"> + onclick="toggleCode('M000143-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000143-source"> <pre> <span class="ruby-comment cmt"># File lib/git/diff.rb, line 53</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">patch</span>(<span class="ruby-identifier">file</span> = <span class="ruby-keyword kw">nil</span>) @@ -318,19 +318,19 @@ if file is provided and is writable, it will write the patch into the file </div> </div> - <div id="method-M000135" class="method-detail"> - <a name="M000135"></a> + <div id="method-M000137" class="method-detail"> + <a name="M000137"></a> <div class="method-heading"> - <a href="#M000135" class="method-signature"> + <a href="#M000137" class="method-signature"> <span class="method-name">path</span><span class="method-args">(path)</span> </a> </div> <div class="method-description"> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000135-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000135-source"> + onclick="toggleCode('M000137-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000137-source"> <pre> <span class="ruby-comment cmt"># File lib/git/diff.rb, line 22</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">path</span>(<span class="ruby-identifier">path</span>) @@ -342,19 +342,19 @@ if file is provided and is writable, it will write the patch into the file </div> </div> - <div id="method-M000136" class="method-detail"> - <a name="M000136"></a> + <div id="method-M000138" class="method-detail"> + <a name="M000138"></a> <div class="method-heading"> - <a href="#M000136" class="method-signature"> + <a href="#M000138" class="method-signature"> <span class="method-name">size</span><span class="method-args">()</span> </a> </div> <div class="method-description"> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000136-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000136-source"> + onclick="toggleCode('M000138-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000138-source"> <pre> <span class="ruby-comment cmt"># File lib/git/diff.rb, line 27</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">size</span> @@ -366,19 +366,19 @@ if file is provided and is writable, it will write the patch into the file </div> </div> - <div id="method-M000140" class="method-detail"> - <a name="M000140"></a> + <div id="method-M000142" class="method-detail"> + <a name="M000142"></a> <div class="method-heading"> - <a href="#M000140" class="method-signature"> + <a href="#M000142" class="method-signature"> <span class="method-name">stats</span><span class="method-args">()</span> </a> </div> <div class="method-description"> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000140-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000140-source"> + onclick="toggleCode('M000142-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000142-source"> <pre> <span class="ruby-comment cmt"># File lib/git/diff.rb, line 47</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">stats</span> @@ -390,8 +390,8 @@ if file is provided and is writable, it will write the patch into the file </div> </div> - <div id="method-M000142" class="method-detail"> - <a name="M000142"></a> + <div id="method-M000144" class="method-detail"> + <a name="M000144"></a> <div class="method-heading"> <span class="method-name">to_s</span><span class="method-args">(file = nil)</span> @@ -399,7 +399,7 @@ if file is provided and is writable, it will write the patch into the file <div class="method-description"> <p> -Alias for <a href="Diff.html#M000141">patch</a> +Alias for <a href="Diff.html#M000143">patch</a> </p> </div> </div> diff --git a/doc/classes/Git/Diff/DiffFile.html b/doc/classes/Git/Diff/DiffFile.html index ec349f8..f13fd79 100644 --- a/doc/classes/Git/Diff/DiffFile.html +++ b/doc/classes/Git/Diff/DiffFile.html @@ -86,8 +86,8 @@ <h3 class="section-bar">Methods</h3> <div class="name-list"> - <a href="#M000146">blob</a> - <a href="#M000145">new</a> + <a href="#M000148">blob</a> + <a href="#M000147">new</a> </div> </div> @@ -147,19 +147,19 @@ <div id="methods"> <h3 class="section-bar">Public Class methods</h3> - <div id="method-M000145" class="method-detail"> - <a name="M000145"></a> + <div id="method-M000147" class="method-detail"> + <a name="M000147"></a> <div class="method-heading"> - <a href="#M000145" class="method-signature"> + <a href="#M000147" class="method-signature"> <span class="method-name">new</span><span class="method-args">(base, hash)</span> </a> </div> <div class="method-description"> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000145-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000145-source"> + onclick="toggleCode('M000147-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000147-source"> <pre> <span class="ruby-comment cmt"># File lib/git/diff.rb, line 77</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">base</span>, <span class="ruby-identifier">hash</span>) @@ -178,19 +178,19 @@ <h3 class="section-bar">Public Instance methods</h3> - <div id="method-M000146" class="method-detail"> - <a name="M000146"></a> + <div id="method-M000148" class="method-detail"> + <a name="M000148"></a> <div class="method-heading"> - <a href="#M000146" class="method-signature"> + <a href="#M000148" class="method-signature"> <span class="method-name">blob</span><span class="method-args">(type = :dst)</span> </a> </div> <div class="method-description"> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000146-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000146-source"> + onclick="toggleCode('M000148-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000148-source"> <pre> <span class="ruby-comment cmt"># File lib/git/diff.rb, line 87</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">blob</span>(<span class="ruby-identifier">type</span> = <span class="ruby-identifier">:dst</span>) diff --git a/doc/classes/Git/Lib.html b/doc/classes/Git/Lib.html index fd3c7b0..bb507b4 100644 --- a/doc/classes/Git/Lib.html +++ b/doc/classes/Git/Lib.html @@ -114,15 +114,16 @@ <a href="#M000031">object_contents</a> <a href="#M000030">object_size</a> <a href="#M000029">object_type</a> + <a href="#M000058">push</a> <a href="#M000052">remote_add</a> <a href="#M000053">remote_remove</a> <a href="#M000054">remotes</a> <a href="#M000045">remove</a> - <a href="#M000059">repack</a> + <a href="#M000060">repack</a> <a href="#M000047">reset</a> <a href="#M000028">revparse</a> <a href="#M000056">tag</a> - <a href="#M000058">tag_sha</a> + <a href="#M000059">tag_sha</a> <a href="#M000055">tags</a> </div> </div> @@ -895,6 +896,29 @@ READ COMMANDS ## </div> </div> + <div id="method-M000058" class="method-detail"> + <a name="M000058"></a> + + <div class="method-heading"> + <a href="#M000058" class="method-signature"> + <span class="method-name">push</span><span class="method-args">(remote, branch = 'master')</span> + </a> + </div> + + <div class="method-description"> + <p><a class="source-toggle" href="#" + onclick="toggleCode('M000058-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000058-source"> +<pre> +<span class="ruby-comment cmt"># File lib/git/lib.rb, line 299</span> + <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">push</span>(<span class="ruby-identifier">remote</span>, <span class="ruby-identifier">branch</span> = <span class="ruby-value str">'master'</span>) + <span class="ruby-identifier">command</span>(<span class="ruby-value str">'push'</span>, [<span class="ruby-identifier">remote</span>.<span class="ruby-identifier">to_s</span>, <span class="ruby-identifier">branch</span>.<span class="ruby-identifier">to_s</span>]) + <span class="ruby-keyword kw">end</span> +</pre> + </div> + </div> + </div> + <div id="method-M000052" class="method-detail"> <a name="M000052"></a> @@ -1002,21 +1026,21 @@ to get around it some other way later </div> </div> - <div id="method-M000059" class="method-detail"> - <a name="M000059"></a> + <div id="method-M000060" class="method-detail"> + <a name="M000060"></a> <div class="method-heading"> - <a href="#M000059" class="method-signature"> + <a href="#M000060" class="method-signature"> <span class="method-name">repack</span><span class="method-args">()</span> </a> </div> <div class="method-description"> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000059-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000059-source"> + onclick="toggleCode('M000060-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000060-source"> <pre> -<span class="ruby-comment cmt"># File lib/git/lib.rb, line 303</span> +<span class="ruby-comment cmt"># File lib/git/lib.rb, line 307</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">repack</span> <span class="ruby-identifier">command</span>(<span class="ruby-value str">'repack'</span>, [<span class="ruby-value str">'-a'</span>, <span class="ruby-value str">'-d'</span>]) <span class="ruby-keyword kw">end</span> @@ -1097,21 +1121,21 @@ to get around it some other way later </div> </div> - <div id="method-M000058" class="method-detail"> - <a name="M000058"></a> + <div id="method-M000059" class="method-detail"> + <a name="M000059"></a> <div class="method-heading"> - <a href="#M000058" class="method-signature"> + <a href="#M000059" class="method-signature"> <span class="method-name">tag_sha</span><span class="method-args">(tag_name)</span> </a> </div> <div class="method-description"> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000058-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000058-source"> + onclick="toggleCode('M000059-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000059-source"> <pre> -<span class="ruby-comment cmt"># File lib/git/lib.rb, line 299</span> +<span class="ruby-comment cmt"># File lib/git/lib.rb, line 303</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">tag_sha</span>(<span class="ruby-identifier">tag_name</span>) <span class="ruby-identifier">command</span>(<span class="ruby-value str">'show-ref'</span>, [<span class="ruby-value str">'--tags'</span>, <span class="ruby-value str">'-s'</span>, <span class="ruby-identifier">tag_name</span>]) <span class="ruby-keyword kw">end</span> diff --git a/doc/classes/Git/Object.html b/doc/classes/Git/Object.html index 499a044..d6d12f1 100644 --- a/doc/classes/Git/Object.html +++ b/doc/classes/Git/Object.html @@ -88,7 +88,7 @@ <h3 class="section-bar">Methods</h3> <div class="name-list"> - <a href="#M000120">new</a> + <a href="#M000122">new</a> </div> </div> @@ -120,11 +120,11 @@ Class <a href="Object/Tree.html" class="link">Git::Object::Tree</a><br /> <div id="methods"> <h3 class="section-bar">Public Class methods</h3> - <div id="method-M000120" class="method-detail"> - <a name="M000120"></a> + <div id="method-M000122" class="method-detail"> + <a name="M000122"></a> <div class="method-heading"> - <a href="#M000120" class="method-signature"> + <a href="#M000122" class="method-signature"> <span class="method-name">new</span><span class="method-args">(base, objectish, is_tag = false)</span> </a> </div> @@ -135,8 +135,8 @@ if we’re calling this, we don’t know what type it is yet so this is our little factory method </p> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000120-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000120-source"> + onclick="toggleCode('M000122-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000122-source"> <pre> <span class="ruby-comment cmt"># File lib/git/object.rb, line 87</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">new</span>(<span class="ruby-identifier">base</span>, <span class="ruby-identifier">objectish</span>, <span class="ruby-identifier">is_tag</span> = <span class="ruby-keyword kw">false</span>) diff --git a/doc/classes/Git/Object/AbstractObject.html b/doc/classes/Git/Object/AbstractObject.html index e2569c4..10d0080 100644 --- a/doc/classes/Git/Object/AbstractObject.html +++ b/doc/classes/Git/Object/AbstractObject.html @@ -86,14 +86,14 @@ <h3 class="section-bar">Methods</h3> <div class="name-list"> - <a href="#M000123">contents</a> - <a href="#M000124">contents_array</a> - <a href="#M000128">diff</a> - <a href="#M000127">grep</a> - <a href="#M000129">log</a> - <a href="#M000122">new</a> - <a href="#M000125">setup</a> - <a href="#M000126">to_s</a> + <a href="#M000125">contents</a> + <a href="#M000126">contents_array</a> + <a href="#M000130">diff</a> + <a href="#M000129">grep</a> + <a href="#M000131">log</a> + <a href="#M000124">new</a> + <a href="#M000127">setup</a> + <a href="#M000128">to_s</a> </div> </div> @@ -143,19 +143,19 @@ <div id="methods"> <h3 class="section-bar">Public Class methods</h3> - <div id="method-M000122" class="method-detail"> - <a name="M000122"></a> + <div id="method-M000124" class="method-detail"> + <a name="M000124"></a> <div class="method-heading"> - <a href="#M000122" class="method-signature"> + <a href="#M000124" class="method-signature"> <span class="method-name">new</span><span class="method-args">(base, sha)</span> </a> </div> <div class="method-description"> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000122-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000122-source"> + onclick="toggleCode('M000124-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000124-source"> <pre> <span class="ruby-comment cmt"># File lib/git/object.rb, line 13</span> <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>) @@ -171,19 +171,19 @@ <h3 class="section-bar">Public Instance methods</h3> - <div id="method-M000123" class="method-detail"> - <a name="M000123"></a> + <div id="method-M000125" class="method-detail"> + <a name="M000125"></a> <div class="method-heading"> - <a href="#M000123" class="method-signature"> + <a href="#M000125" class="method-signature"> <span class="method-name">contents</span><span class="method-args">()</span> </a> </div> <div class="method-description"> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000123-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000123-source"> + onclick="toggleCode('M000125-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000125-source"> <pre> <span class="ruby-comment cmt"># File lib/git/object.rb, line 20</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">contents</span> @@ -194,19 +194,19 @@ </div> </div> - <div id="method-M000124" class="method-detail"> - <a name="M000124"></a> + <div id="method-M000126" class="method-detail"> + <a name="M000126"></a> <div class="method-heading"> - <a href="#M000124" class="method-signature"> + <a href="#M000126" class="method-signature"> <span class="method-name">contents_array</span><span class="method-args">()</span> </a> </div> <div class="method-description"> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000124-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000124-source"> + onclick="toggleCode('M000126-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000126-source"> <pre> <span class="ruby-comment cmt"># File lib/git/object.rb, line 24</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">contents_array</span> @@ -217,19 +217,19 @@ </div> </div> - <div id="method-M000128" class="method-detail"> - <a name="M000128"></a> + <div id="method-M000130" class="method-detail"> + <a name="M000130"></a> <div class="method-heading"> - <a href="#M000128" class="method-signature"> + <a href="#M000130" class="method-signature"> <span class="method-name">diff</span><span class="method-args">(objectish)</span> </a> </div> <div class="method-description"> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000128-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000128-source"> + onclick="toggleCode('M000130-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000130-source"> <pre> <span class="ruby-comment cmt"># File lib/git/object.rb, line 42</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">diff</span>(<span class="ruby-identifier">objectish</span>) @@ -240,19 +240,19 @@ </div> </div> - <div id="method-M000127" class="method-detail"> - <a name="M000127"></a> + <div id="method-M000129" class="method-detail"> + <a name="M000129"></a> <div class="method-heading"> - <a href="#M000127" class="method-signature"> + <a href="#M000129" class="method-signature"> <span class="method-name">grep</span><span class="method-args">(string, path_limiter = nil, opts = {})</span> </a> </div> <div class="method-description"> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000127-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000127-source"> + onclick="toggleCode('M000129-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000129-source"> <pre> <span class="ruby-comment cmt"># File lib/git/object.rb, line 36</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">grep</span>(<span class="ruby-identifier">string</span>, <span class="ruby-identifier">path_limiter</span> = <span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">opts</span> = {}) @@ -265,19 +265,19 @@ </div> </div> - <div id="method-M000129" class="method-detail"> - <a name="M000129"></a> + <div id="method-M000131" class="method-detail"> + <a name="M000131"></a> <div class="method-heading"> - <a href="#M000129" class="method-signature"> + <a href="#M000131" class="method-signature"> <span class="method-name">log</span><span class="method-args">(count = 30)</span> </a> </div> <div class="method-description"> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000129-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000129-source"> + onclick="toggleCode('M000131-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000131-source"> <pre> <span class="ruby-comment cmt"># File lib/git/object.rb, line 46</span> <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>) @@ -288,19 +288,19 @@ </div> </div> - <div id="method-M000125" class="method-detail"> - <a name="M000125"></a> + <div id="method-M000127" class="method-detail"> + <a name="M000127"></a> <div class="method-heading"> - <a href="#M000125" class="method-signature"> + <a href="#M000127" class="method-signature"> <span class="method-name">setup</span><span class="method-args">()</span> </a> </div> <div class="method-description"> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000125-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000125-source"> + onclick="toggleCode('M000127-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000127-source"> <pre> <span class="ruby-comment cmt"># File lib/git/object.rb, line 28</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">setup</span> @@ -311,19 +311,19 @@ </div> </div> - <div id="method-M000126" class="method-detail"> - <a name="M000126"></a> + <div id="method-M000128" class="method-detail"> + <a name="M000128"></a> <div class="method-heading"> - <a href="#M000126" class="method-signature"> + <a href="#M000128" class="method-signature"> <span class="method-name">to_s</span><span class="method-args">()</span> </a> </div> <div class="method-description"> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000126-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000126-source"> + onclick="toggleCode('M000128-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000128-source"> <pre> <span class="ruby-comment cmt"># File lib/git/object.rb, line 32</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_s</span> diff --git a/doc/classes/Git/Object/Blob.html b/doc/classes/Git/Object/Blob.html index dd3048d..a3fcb39 100644 --- a/doc/classes/Git/Object/Blob.html +++ b/doc/classes/Git/Object/Blob.html @@ -88,7 +88,7 @@ <h3 class="section-bar">Methods</h3> <div class="name-list"> - <a href="#M000132">setup</a> + <a href="#M000134">setup</a> </div> </div> @@ -110,19 +110,19 @@ <div id="methods"> <h3 class="section-bar">Public Instance methods</h3> - <div id="method-M000132" class="method-detail"> - <a name="M000132"></a> + <div id="method-M000134" class="method-detail"> + <a name="M000134"></a> <div class="method-heading"> - <a href="#M000132" class="method-signature"> + <a href="#M000134" class="method-signature"> <span class="method-name">setup</span><span class="method-args">()</span> </a> </div> <div class="method-description"> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000132-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000132-source"> + onclick="toggleCode('M000134-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000134-source"> <pre> <span class="ruby-comment cmt"># File lib/git/object.rb, line 54</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">setup</span> diff --git a/doc/classes/Git/Object/Commit.html b/doc/classes/Git/Object/Commit.html index 18d4e1b..2f1e595 100644 --- a/doc/classes/Git/Object/Commit.html +++ b/doc/classes/Git/Object/Commit.html @@ -88,7 +88,7 @@ <h3 class="section-bar">Methods</h3> <div class="name-list"> - <a href="#M000121">setup</a> + <a href="#M000123">setup</a> </div> </div> @@ -110,19 +110,19 @@ <div id="methods"> <h3 class="section-bar">Public Instance methods</h3> - <div id="method-M000121" class="method-detail"> - <a name="M000121"></a> + <div id="method-M000123" class="method-detail"> + <a name="M000123"></a> <div class="method-heading"> - <a href="#M000121" class="method-signature"> + <a href="#M000123" class="method-signature"> <span class="method-name">setup</span><span class="method-args">()</span> </a> </div> <div class="method-description"> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000121-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000121-source"> + onclick="toggleCode('M000123-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000123-source"> <pre> <span class="ruby-comment cmt"># File lib/git/object.rb, line 66</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">setup</span> diff --git a/doc/classes/Git/Object/Tag.html b/doc/classes/Git/Object/Tag.html index 9055eff..260b4c4 100644 --- a/doc/classes/Git/Object/Tag.html +++ b/doc/classes/Git/Object/Tag.html @@ -88,8 +88,8 @@ <h3 class="section-bar">Methods</h3> <div class="name-list"> - <a href="#M000130">new</a> - <a href="#M000131">setup</a> + <a href="#M000132">new</a> + <a href="#M000133">setup</a> </div> </div> @@ -124,19 +124,19 @@ <div id="methods"> <h3 class="section-bar">Public Class methods</h3> - <div id="method-M000130" class="method-detail"> - <a name="M000130"></a> + <div id="method-M000132" class="method-detail"> + <a name="M000132"></a> <div class="method-heading"> - <a href="#M000130" class="method-signature"> + <a href="#M000132" class="method-signature"> <span class="method-name">new</span><span class="method-args">(base, sha, name)</span> </a> </div> <div class="method-description"> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000130-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000130-source"> + onclick="toggleCode('M000132-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000132-source"> <pre> <span class="ruby-comment cmt"># File lib/git/object.rb, line 74</span> <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>) @@ -150,19 +150,19 @@ <h3 class="section-bar">Public Instance methods</h3> - <div id="method-M000131" class="method-detail"> - <a name="M000131"></a> + <div id="method-M000133" class="method-detail"> + <a name="M000133"></a> <div class="method-heading"> - <a href="#M000131" class="method-signature"> + <a href="#M000133" class="method-signature"> <span class="method-name">setup</span><span class="method-args">()</span> </a> </div> <div class="method-description"> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000131-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000131-source"> + onclick="toggleCode('M000133-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000133-source"> <pre> <span class="ruby-comment cmt"># File lib/git/object.rb, line 79</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">setup</span> diff --git a/doc/classes/Git/Object/Tree.html b/doc/classes/Git/Object/Tree.html index 9204e5f..4d681e8 100644 --- a/doc/classes/Git/Object/Tree.html +++ b/doc/classes/Git/Object/Tree.html @@ -88,7 +88,7 @@ <h3 class="section-bar">Methods</h3> <div class="name-list"> - <a href="#M000133">setup</a> + <a href="#M000135">setup</a> </div> </div> @@ -110,19 +110,19 @@ <div id="methods"> <h3 class="section-bar">Public Instance methods</h3> - <div id="method-M000133" class="method-detail"> - <a name="M000133"></a> + <div id="method-M000135" class="method-detail"> + <a name="M000135"></a> <div class="method-heading"> - <a href="#M000133" class="method-signature"> + <a href="#M000135" class="method-signature"> <span class="method-name">setup</span><span class="method-args">()</span> </a> </div> <div class="method-description"> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000133-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000133-source"> + onclick="toggleCode('M000135-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000135-source"> <pre> <span class="ruby-comment cmt"># File lib/git/object.rb, line 60</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">setup</span> diff --git a/doc/classes/Git/Path.html b/doc/classes/Git/Path.html index 0b1f892..16f02af 100644 --- a/doc/classes/Git/Path.html +++ b/doc/classes/Git/Path.html @@ -88,9 +88,9 @@ <h3 class="section-bar">Methods</h3> <div class="name-list"> - <a href="#M000117">new</a> - <a href="#M000118">readable?</a> - <a href="#M000119">writable?</a> + <a href="#M000119">new</a> + <a href="#M000120">readable?</a> + <a href="#M000121">writable?</a> </div> </div> @@ -125,19 +125,19 @@ <div id="methods"> <h3 class="section-bar">Public Class methods</h3> - <div id="method-M000117" class="method-detail"> - <a name="M000117"></a> + <div id="method-M000119" class="method-detail"> + <a name="M000119"></a> <div class="method-heading"> - <a href="#M000117" class="method-signature"> + <a href="#M000119" class="method-signature"> <span class="method-name">new</span><span class="method-args">(path, check_path = true)</span> </a> </div> <div class="method-description"> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000117-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000117-source"> + onclick="toggleCode('M000119-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000119-source"> <pre> <span class="ruby-comment cmt"># File lib/git/path.rb, line 6</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">path</span>, <span class="ruby-identifier">check_path</span> = <span class="ruby-keyword kw">true</span>) @@ -154,19 +154,19 @@ <h3 class="section-bar">Public Instance methods</h3> - <div id="method-M000118" class="method-detail"> - <a name="M000118"></a> + <div id="method-M000120" class="method-detail"> + <a name="M000120"></a> <div class="method-heading"> - <a href="#M000118" class="method-signature"> + <a href="#M000120" class="method-signature"> <span class="method-name">readable?</span><span class="method-args">()</span> </a> </div> <div class="method-description"> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000118-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000118-source"> + onclick="toggleCode('M000120-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000120-source"> <pre> <span class="ruby-comment cmt"># File lib/git/path.rb, line 14</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">readable?</span> @@ -177,19 +177,19 @@ </div> </div> - <div id="method-M000119" class="method-detail"> - <a name="M000119"></a> + <div id="method-M000121" class="method-detail"> + <a name="M000121"></a> <div class="method-heading"> - <a href="#M000119" class="method-signature"> + <a href="#M000121" class="method-signature"> <span class="method-name">writable?</span><span class="method-args">()</span> </a> </div> <div class="method-description"> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000119-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000119-source"> + onclick="toggleCode('M000121-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000121-source"> <pre> <span class="ruby-comment cmt"># File lib/git/path.rb, line 18</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">writable?</span> diff --git a/doc/classes/Git/Remote.html b/doc/classes/Git/Remote.html index fbef922..bf59b38 100644 --- a/doc/classes/Git/Remote.html +++ b/doc/classes/Git/Remote.html @@ -88,13 +88,13 @@ <h3 class="section-bar">Methods</h3> <div class="name-list"> - <a href="#M000151">branch</a> - <a href="#M000149">fetch</a> - <a href="#M000150">merge</a> - <a href="#M000147">new</a> - <a href="#M000148">remove</a> - <a href="#M000152">remove</a> - <a href="#M000153">to_s</a> + <a href="#M000153">branch</a> + <a href="#M000151">fetch</a> + <a href="#M000152">merge</a> + <a href="#M000149">new</a> + <a href="#M000150">remove</a> + <a href="#M000154">remove</a> + <a href="#M000155">to_s</a> </div> </div> @@ -139,19 +139,19 @@ <div id="methods"> <h3 class="section-bar">Public Class methods</h3> - <div id="method-M000147" class="method-detail"> - <a name="M000147"></a> + <div id="method-M000149" class="method-detail"> + <a name="M000149"></a> <div class="method-heading"> - <a href="#M000147" class="method-signature"> + <a href="#M000149" class="method-signature"> <span class="method-name">new</span><span class="method-args">(base, name)</span> </a> </div> <div class="method-description"> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000147-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000147-source"> + onclick="toggleCode('M000149-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000149-source"> <pre> <span class="ruby-comment cmt"># File lib/git/remote.rb, line 8</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">base</span>, <span class="ruby-identifier">name</span>) @@ -168,19 +168,19 @@ <h3 class="section-bar">Public Instance methods</h3> - <div id="method-M000151" class="method-detail"> - <a name="M000151"></a> + <div id="method-M000153" class="method-detail"> + <a name="M000153"></a> <div class="method-heading"> - <a href="#M000151" class="method-signature"> + <a href="#M000153" class="method-signature"> <span class="method-name">branch</span><span class="method-args">(branch = 'master')</span> </a> </div> <div class="method-description"> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000151-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000151-source"> + onclick="toggleCode('M000153-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000153-source"> <pre> <span class="ruby-comment cmt"># File lib/git/remote.rb, line 29</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">branch</span>(<span class="ruby-identifier">branch</span> = <span class="ruby-value str">'master'</span>) @@ -191,19 +191,19 @@ </div> </div> - <div id="method-M000149" class="method-detail"> - <a name="M000149"></a> + <div id="method-M000151" class="method-detail"> + <a name="M000151"></a> <div class="method-heading"> - <a href="#M000149" class="method-signature"> + <a href="#M000151" class="method-signature"> <span class="method-name">fetch</span><span class="method-args">()</span> </a> </div> <div class="method-description"> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000149-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000149-source"> + onclick="toggleCode('M000151-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000151-source"> <pre> <span class="ruby-comment cmt"># File lib/git/remote.rb, line 20</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">fetch</span> @@ -214,11 +214,11 @@ </div> </div> - <div id="method-M000150" class="method-detail"> - <a name="M000150"></a> + <div id="method-M000152" class="method-detail"> + <a name="M000152"></a> <div class="method-heading"> - <a href="#M000150" class="method-signature"> + <a href="#M000152" class="method-signature"> <span class="method-name">merge</span><span class="method-args">(branch = 'master')</span> </a> </div> @@ -228,8 +228,8 @@ merge this remote locally </p> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000150-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000150-source"> + onclick="toggleCode('M000152-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000152-source"> <pre> <span class="ruby-comment cmt"># File lib/git/remote.rb, line 25</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">merge</span>(<span class="ruby-identifier">branch</span> = <span class="ruby-value str">'master'</span>) @@ -240,19 +240,19 @@ merge this remote locally </div> </div> - <div id="method-M000148" class="method-detail"> - <a name="M000148"></a> + <div id="method-M000150" class="method-detail"> + <a name="M000150"></a> <div class="method-heading"> - <a href="#M000148" class="method-signature"> + <a href="#M000150" class="method-signature"> <span class="method-name">remove</span><span class="method-args">()</span> </a> </div> <div class="method-description"> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000148-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000148-source"> + onclick="toggleCode('M000150-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000150-source"> <pre> <span class="ruby-comment cmt"># File lib/git/remote.rb, line 16</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">remove</span> @@ -263,19 +263,19 @@ merge this remote locally </div> </div> - <div id="method-M000152" class="method-detail"> - <a name="M000152"></a> + <div id="method-M000154" class="method-detail"> + <a name="M000154"></a> <div class="method-heading"> - <a href="#M000152" class="method-signature"> + <a href="#M000154" class="method-signature"> <span class="method-name">remove</span><span class="method-args">()</span> </a> </div> <div class="method-description"> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000152-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000152-source"> + onclick="toggleCode('M000154-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000154-source"> <pre> <span class="ruby-comment cmt"># File lib/git/remote.rb, line 33</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">remove</span> @@ -286,19 +286,19 @@ merge this remote locally </div> </div> - <div id="method-M000153" class="method-detail"> - <a name="M000153"></a> + <div id="method-M000155" class="method-detail"> + <a name="M000155"></a> <div class="method-heading"> - <a href="#M000153" class="method-signature"> + <a href="#M000155" class="method-signature"> <span class="method-name">to_s</span><span class="method-args">()</span> </a> </div> <div class="method-description"> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000153-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000153-source"> + onclick="toggleCode('M000155-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000155-source"> <pre> <span class="ruby-comment cmt"># File lib/git/remote.rb, line 37</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_s</span> diff --git a/doc/created.rid b/doc/created.rid index e14a536..3226198 100644 --- a/doc/created.rid +++ b/doc/created.rid @@ -1 +1 @@ -Sun Nov 11 17:55:02 PST 2007 +Mon Nov 12 10:52:42 PST 2007 diff --git a/doc/files/EXAMPLES.html b/doc/files/EXAMPLES.html index ef92243..63163ef 100644 --- a/doc/files/EXAMPLES.html +++ b/doc/files/EXAMPLES.html @@ -56,7 +56,7 @@ </tr> <tr class="top-aligned-row"> <td><strong>Last Update:</strong></td> - <td>Sun Nov 11 17:51:57 PST 2007</td> + <td>Mon Nov 12 10:27:43 PST 2007</td> </tr> </table> </div> @@ -70,169 +70,148 @@ <div id="description"> <p> -require ‘git’ +Here are a bunch of examples of how to use the Ruby/<a +href="../classes/Git.html">Git</a> package. </p> <p> -# needs read permission only -</p> -<p> -g = <a href="../classes/Git.html#M000002">Git.open</a> (working_dir = -’.’) -</p> -<pre> - (git_dir, index_file) -</pre> -<p> -g.index g.index.readable? g.index.writable? g.repo g.dir -</p> -<p> -g.log # returns array of Git::Commit objects g.log.since(‘2 weeks -ago’) g.log.between(‘v2.5’, ‘v2.6’) -g.log.each {|l| puts l.sha } -g.gblob(‘v2.5:Makefile’).log.since(‘2 weeks ago’) -</p> -<p> -g.object(‘HEAD^’).to_s # git show / git rev-parse -g.object(‘HEAD^’).contents -g.object(‘v2.5:Makefile’).size -g.object(‘v2.5:Makefile’).sha -</p> -<p> -g.gtree(treeish) g.gblob(treeish) g.gcommit(treeish) -</p> -<p> -g.revparse(‘v2.5:Makefile’) -</p> -<p> -g.branches # returns <a href="../classes/Git/Branch.html">Git::Branch</a> -objects g.branches.local g.branches.remote g.branches[:master].gcommit -g.branches[‘origin/master’].gcommit -</p> -<p> -g.grep(‘hello’) # implies HEAD -g.blob(‘v2.5:Makefile’).grep(‘hello’) -g.tag(‘v2.5’).grep(‘hello’, ‘docs/’) -</p> -<p> -g.diff(commit1, commit2).size g.diff(commit1, commit2).stats -g.gtree(‘v2.5’).diff(‘v2.6’).insertions -g.diff(‘gitsearch1’, -‘v2.5’).path(‘lib/’) -g.diff(‘gitsearch1’, @git.gtree(‘v2.5’)) -g.diff(‘gitsearch1’, -‘v2.5’).path(‘docs/’).patch -g.gtree(‘v2.5’).diff(‘v2.6’).patch -</p> -<p> -g.gtree(‘v2.5’).diff(‘v2.6’).each do |file_diff| +First you have to remember to require rubygems if it’s not. Then +include the ‘git’ gem. </p> <pre> - puts file_diff.path - puts file_diff.patch - puts file_diff.blob(:src).contents + require 'rubygems' + gem 'git' </pre> <p> -end -</p> -<p> -g.config(‘user.name’) # returns ‘Scott Chacon’ -g.config # returns whole config hash -</p> -<p> -g.tag # returns array of Git::Tag objects -</p> -<p> -# needs write permission -</p> -<p> -g = <a href="../classes/Git.html#M000003">Git.init</a> +Here are the operations that need read permission only. </p> <pre> - Git.init('project') - Git.init('/home/schacon/proj', - { :git_dir => '/opt/git/proj.git', - :index_file => '/tmp/index'} ) + g = Git.open (working_dir = '.') + (git_dir, index_file) + + g.index + g.index.readable? + g.index.writable? + g.repo + g.dir + + g.log # returns array of Git::Commit objects + g.log.since('2 weeks ago') + g.log.between('v2.5', 'v2.6') + g.log.each {|l| puts l.sha } + g.gblob('v2.5:Makefile').log.since('2 weeks ago') + + g.object('HEAD^').to_s # git show / git rev-parse + g.object('HEAD^').contents + g.object('v2.5:Makefile').size + g.object('v2.5:Makefile').sha + + g.gtree(treeish) + g.gblob(treeish) + g.gcommit(treeish) + + g.revparse('v2.5:Makefile') + + g.branches # returns Git::Branch objects + g.branches.local + g.branches.remote + g.branches[:master].gcommit + g.branches['origin/master'].gcommit + + g.grep('hello') # implies HEAD + g.blob('v2.5:Makefile').grep('hello') + g.tag('v2.5').grep('hello', 'docs/') + + g.diff(commit1, commit2).size + g.diff(commit1, commit2).stats + g.gtree('v2.5').diff('v2.6').insertions + g.diff('gitsearch1', 'v2.5').path('lib/') + g.diff('gitsearch1', @git.gtree('v2.5')) + g.diff('gitsearch1', 'v2.5').path('docs/').patch + g.gtree('v2.5').diff('v2.6').patch + + g.gtree('v2.5').diff('v2.6').each do |file_diff| + puts file_diff.path + puts file_diff.patch + puts file_diff.blob(:src).contents + end + + g.config('user.name') # returns 'Scott Chacon' + g.config # returns whole config hash + + g.tag # returns array of Git::Tag objects </pre> <p> -g = <a href="../classes/Git.html#M000004">Git.clone</a>(URI, :name => -‘name’, :path => ’/tmp/checkout‘ -</p> -<pre> - (git_dir, index_file) -</pre> -<p> -g.config(‘user.name’, ‘Scott Chacon’) -g.config(‘user.email’, ‘email@email.com’) -</p> -<p> -g.add(’.’) g.add([file1, file2]) -</p> -<p> -g.remove(‘file.txt’) g.remove([‘file.txt’, -‘file2.txt’]) -</p> -<p> -g.commit(‘message’) g.commit_all(‘message’) -</p> -<p> -g = <a href="../classes/Git.html#M000004">Git.clone</a>(repo, -‘myrepo’) Dir.chdir(‘myrepo’) do +And here are the operations that will need to write to your git repository. </p> <pre> - new_file('test-file', 'blahblahblah') - g.status.untracked.each do |file| - puts file.blob(:index).contents - end + g = Git.init + Git.init('project') + Git.init('/home/schacon/proj', + { :git_dir => '/opt/git/proj.git', + :index_file => '/tmp/index'} ) + + g = Git.clone(URI, :name => 'name', :path => '/tmp/checkout' + (git_dir, index_file) + + g.config('user.name', 'Scott Chacon') + g.config('user.email', 'email@email.com') + + g.add('.') + g.add([file1, file2]) + + g.remove('file.txt') + g.remove(['file.txt', 'file2.txt']) + + g.commit('message') + g.commit_all('message') + + g = Git.clone(repo, 'myrepo') + Dir.chdir('myrepo') do + new_file('test-file', 'blahblahblah') + g.status.changed.each do |file| + puts file.blob(:index).contents + end + end + + g.reset # defaults to HEAD + g.reset_hard(Git::Commit) + + g.branch('new_branch') # creates new or fetches existing + g.branch('new_branch').checkout + g.branch('new_branch').delete + g.branch('existing_branch').checkout + + g.checkout('new_branch') + g.checkout(g.branch('new_branch')) + + g.branch(name).merge(branch2) + g.branch(branch2).merge # merges HEAD with branch2 + + g.branch(name).in_branch(message) { # add files } # auto-commits + g.merge('new_branch') + g.merge('origin/remote_branch') + g.merge(b.branch('master')) + g.merge([branch1, branch2]) + + r = g.add_remote(name, uri) # Git::Remote + r = g.add_remote(name, Git::Base) # Git::Remote + + g.remotes # array of Git::Remotes + g.remote(name).fetch + g.remote(name).remove + g.remote(name).merge + g.remote(name).merge(branch) + + g.fetch + g.fetch(g.remotes.first) + + g.pull + g.pull(Git::Repo, Git::Branch) # fetch and a merge + + g.add_tag('tag_name') # returns Git::Tag + + g.repack </pre> -<p> -end -</p> -<p> -g.reset # defaults to HEAD g.reset_hard(Git::Commit) -</p> -<p> -g.branch(‘new_branch’) # creates new or fetches existing -g.branch(‘new_branch’).checkout -g.branch(‘new_branch’).delete -g.branch(‘existing_branch’).checkout -</p> -<p> -g.checkout(‘new_branch’) -g.checkout(g.branch(‘new_branch’)) -</p> -<p> -g.branch(name).merge(branch2) g.branch(branch2).merge # merges HEAD with -branch2 -</p> -<p> -g.branch(name).in_branch(message) { # add files } # auto-commits -g.merge(‘new_branch’) -g.merge(‘origin/remote_branch’) -g.merge(b.branch(‘master’)) g.merge([branch1, branch2]) -</p> -<p> -r = g.add_remote(name, uri) # <a -href="../classes/Git/Remote.html">Git::Remote</a> r = g.add_remote(name, <a -href="../classes/Git/Base.html">Git::Base</a>) # <a -href="../classes/Git/Remote.html">Git::Remote</a> -</p> -<p> -g.remotes # array of Git::Remotes g.remote(name).fetch -g.remote(name).remove g.remote(name).merge g.remote(name).merge(branch) -</p> -<p> -g.fetch g.fetch(g.remotes.first) -</p> -<p> -g.pull g.pull(Git::Repo, <a -href="../classes/Git/Branch.html">Git::Branch</a>) # fetch and a merge -</p> -<p> -g.add_tag(‘tag_name’) # returns Git::Tag -</p> -<p> -g.repack -</p> </div> diff --git a/doc/files/README.html b/doc/files/README.html index 3179ce1..12a94d5 100644 --- a/doc/files/README.html +++ b/doc/files/README.html @@ -56,7 +56,7 @@ </tr> <tr class="top-aligned-row"> <td><strong>Last Update:</strong></td> - <td>Sun Nov 11 17:55:00 PST 2007</td> + <td>Mon Nov 12 10:51:20 PST 2007</td> </tr> </table> </div> @@ -70,7 +70,6 @@ <div id="description"> <h2><a href="../classes/Git.html">Git</a> Library for Ruby</h2> -<h1>What it is</h1> <p> Library for using <a href="../classes/Git.html">Git</a> in Ruby. </p> @@ -81,9 +80,151 @@ eventually I’ll replace that with either C bindings to libgit or libgit-thin, or I’ll write pure ruby handlers for at least some of the <a href="../classes/Git.html">Git</a> stuff. </p> +<h1>Examples</h1> <p> -See EXAMPLES file for, well, examples. +Here are a bunch of examples of how to use the Ruby/<a +href="../classes/Git.html">Git</a> package. </p> +<p> +First you have to remember to require rubygems if it’s not. Then +include the ‘git’ gem. +</p> +<pre> + require 'rubygems' + require 'git' +</pre> +<p> +Here are the operations that need read permission only. +</p> +<pre> + g = Git.open (working_dir = '.') + (git_dir, index_file) + + g.index + g.index.readable? + g.index.writable? + g.repo + g.dir + + g.log # returns array of Git::Commit objects + g.log.since('2 weeks ago') + g.log.between('v2.5', 'v2.6') + g.log.each {|l| puts l.sha } + g.gblob('v2.5:Makefile').log.since('2 weeks ago') + + g.object('HEAD^').to_s # git show / git rev-parse + g.object('HEAD^').contents + g.object('v2.5:Makefile').size + g.object('v2.5:Makefile').sha + + g.gtree(treeish) + g.gblob(treeish) + g.gcommit(treeish) + + g.revparse('v2.5:Makefile') + + g.branches # returns Git::Branch objects + g.branches.local + g.branches.remote + g.branches[:master].gcommit + g.branches['origin/master'].gcommit + + g.grep('hello') # implies HEAD + g.blob('v2.5:Makefile').grep('hello') + g.tag('v2.5').grep('hello', 'docs/') + + g.diff(commit1, commit2).size + g.diff(commit1, commit2).stats + g.gtree('v2.5').diff('v2.6').insertions + g.diff('gitsearch1', 'v2.5').path('lib/') + g.diff('gitsearch1', @git.gtree('v2.5')) + g.diff('gitsearch1', 'v2.5').path('docs/').patch + g.gtree('v2.5').diff('v2.6').patch + + g.gtree('v2.5').diff('v2.6').each do |file_diff| + puts file_diff.path + puts file_diff.patch + puts file_diff.blob(:src).contents + end + + g.config('user.name') # returns 'Scott Chacon' + g.config # returns whole config hash + + g.tag # returns array of Git::Tag objects +</pre> +<p> +And here are the operations that will need to write to your git repository. +</p> +<pre> + g = Git.init + Git.init('project') + Git.init('/home/schacon/proj', + { :git_dir => '/opt/git/proj.git', + :index_file => '/tmp/index'} ) + + g = Git.clone(URI, :name => 'name', :path => '/tmp/checkout') + g.config('user.name', 'Scott Chacon') + g.config('user.email', 'email@email.com') + + g.add('.') + g.add([file1, file2]) + + g.remove('file.txt') + g.remove(['file.txt', 'file2.txt']) + + g.commit('message') + g.commit_all('message') + + g = Git.clone(repo, 'myrepo') + g.chdir do + new_file('test-file', 'blahblahblah') + g.status.changed.each do |file| + puts file.blob(:index).contents + end + end + + g.reset # defaults to HEAD + g.reset_hard(Git::Commit) + + g.branch('new_branch') # creates new or fetches existing + g.branch('new_branch').checkout + g.branch('new_branch').delete + g.branch('existing_branch').checkout + + g.checkout('new_branch') + g.checkout(g.branch('new_branch')) + + g.branch(name).merge(branch2) + g.branch(branch2).merge # merges HEAD with branch2 + + g.branch(name).in_branch(message) { # add files } # auto-commits + g.merge('new_branch') + g.merge('origin/remote_branch') + g.merge(b.branch('master')) + g.merge([branch1, branch2]) + + r = g.add_remote(name, uri) # Git::Remote + r = g.add_remote(name, Git::Base) # Git::Remote + + g.remotes # array of Git::Remotes + g.remote(name).fetch + g.remote(name).remove + g.remote(name).merge + g.remote(name).merge(branch) + + g.fetch + g.fetch(g.remotes.first) + + g.pull + g.pull(Git::Repo, Git::Branch) # fetch and a merge + + g.add_tag('tag_name') # returns Git::Tag + + g.repack + + g.push + g.push(g.remote('name')) +</pre> </div> diff --git a/doc/files/lib/git/base_rb.html b/doc/files/lib/git/base_rb.html index 4e8dfee..980bf39 100644 --- a/doc/files/lib/git/base_rb.html +++ b/doc/files/lib/git/base_rb.html @@ -56,7 +56,7 @@ </tr> <tr class="top-aligned-row"> <td><strong>Last Update:</strong></td> - <td>Sun Nov 11 16:46:30 PST 2007</td> + <td>Mon Nov 12 10:49:59 PST 2007</td> </tr> </table> </div> diff --git a/doc/files/lib/git/lib_rb.html b/doc/files/lib/git/lib_rb.html index 7bbabc2..ff92663 100644 --- a/doc/files/lib/git/lib_rb.html +++ b/doc/files/lib/git/lib_rb.html @@ -56,7 +56,7 @@ </tr> <tr class="top-aligned-row"> <td><strong>Last Update:</strong></td> - <td>Sun Nov 11 17:17:50 PST 2007</td> + <td>Mon Nov 12 10:50:14 PST 2007</td> </tr> </table> </div> diff --git a/doc/fr_file_index.html b/doc/fr_file_index.html index 83c920c..c0e6c49 100644 --- a/doc/fr_file_index.html +++ b/doc/fr_file_index.html @@ -20,7 +20,6 @@ <div id="index"> <h1 class="section-bar">Files</h1> <div id="index-entries"> - <a href="files/EXAMPLES.html">EXAMPLES</a><br /> <a href="files/README.html">README</a><br /> <a href="files/lib/git_rb.html">lib/git.rb</a><br /> <a href="files/lib/git/base_rb.html">lib/git/base.rb</a><br /> diff --git a/doc/fr_method_index.html b/doc/fr_method_index.html index 4a3b21f..9cb8879 100644 --- a/doc/fr_method_index.html +++ b/doc/fr_method_index.html @@ -20,159 +20,161 @@ <div id="index"> <h1 class="section-bar">Methods</h1> <div id="index-entries"> - <a href="classes/Git/Branches.html#M000065">[] (Git::Branches)</a><br /> + <a href="classes/Git/Branches.html#M000066">[] (Git::Branches)</a><br /> <a href="classes/Git/Status.html#M000011">[] (Git::Status)</a><br /> - <a href="classes/Git/Diff.html#M000143">[] (Git::Diff)</a><br /> - <a href="classes/Git/Base.html#M000099">add (Git::Base)</a><br /> + <a href="classes/Git/Diff.html#M000145">[] (Git::Diff)</a><br /> + <a href="classes/Git/Base.html#M000100">add (Git::Base)</a><br /> <a href="classes/Git/Lib.html#M000044">add (Git::Lib)</a><br /> - <a href="classes/Git/Base.html#M000110">add_remote (Git::Base)</a><br /> - <a href="classes/Git/Base.html#M000113">add_tag (Git::Base)</a><br /> + <a href="classes/Git/Base.html#M000112">add_remote (Git::Base)</a><br /> + <a href="classes/Git/Base.html#M000115">add_tag (Git::Base)</a><br /> <a href="classes/Git/Status.html#M000007">added (Git::Status)</a><br /> + <a href="classes/Git/Base.html#M000077">bare (Git::Base)</a><br /> <a href="classes/Git.html#M000001">bare (Git)</a><br /> - <a href="classes/Git/Base.html#M000076">bare (Git::Base)</a><br /> <a href="classes/Git/Log.html#M000019">between (Git::Log)</a><br /> - <a href="classes/Git/Diff/DiffFile.html#M000146">blob (Git::Diff::DiffFile)</a><br /> + <a href="classes/Git/Diff/DiffFile.html#M000148">blob (Git::Diff::DiffFile)</a><br /> <a href="classes/Git/Status/StatusFile.html#M000014">blob (Git::Status::StatusFile)</a><br /> - <a href="classes/Git/Remote.html#M000151">branch (Git::Remote)</a><br /> - <a href="classes/Git/Base.html#M000094">branch (Git::Base)</a><br /> + <a href="classes/Git/Remote.html#M000153">branch (Git::Remote)</a><br /> + <a href="classes/Git/Base.html#M000095">branch (Git::Base)</a><br /> <a href="classes/Git/Lib.html#M000033">branch_current (Git::Lib)</a><br /> <a href="classes/Git/Lib.html#M000049">branch_delete (Git::Lib)</a><br /> <a href="classes/Git/Lib.html#M000048">branch_new (Git::Lib)</a><br /> - <a href="classes/Git/Base.html#M000093">branches (Git::Base)</a><br /> + <a href="classes/Git/Base.html#M000094">branches (Git::Base)</a><br /> <a href="classes/Git/Lib.html#M000032">branches_all (Git::Lib)</a><br /> <a href="classes/Git/Status.html#M000006">changed (Git::Status)</a><br /> - <a href="classes/Git/Base.html#M000084">chdir (Git::Base)</a><br /> + <a href="classes/Git/Base.html#M000085">chdir (Git::Base)</a><br /> + <a href="classes/Git/Branch.html#M000069">checkout (Git::Branch)</a><br /> <a href="classes/Git/Lib.html#M000050">checkout (Git::Lib)</a><br /> - <a href="classes/Git/Base.html#M000105">checkout (Git::Base)</a><br /> - <a href="classes/Git/Branch.html#M000068">checkout (Git::Branch)</a><br /> - <a href="classes/Git/Lib.html#M000026">clone (Git::Lib)</a><br /> + <a href="classes/Git/Base.html#M000106">checkout (Git::Base)</a><br /> + <a href="classes/Git/Base.html#M000080">clone (Git::Base)</a><br /> <a href="classes/Git.html#M000004">clone (Git)</a><br /> - <a href="classes/Git/Base.html#M000079">clone (Git::Base)</a><br /> + <a href="classes/Git/Lib.html#M000026">clone (Git::Lib)</a><br /> <a href="classes/Git/Lib.html#M000046">commit (Git::Lib)</a><br /> - <a href="classes/Git/Base.html#M000103">commit (Git::Base)</a><br /> - <a href="classes/Git/Base.html#M000104">commit_all (Git::Base)</a><br /> - <a href="classes/Git/Base.html#M000086">config (Git::Base)</a><br /> + <a href="classes/Git/Base.html#M000104">commit (Git::Base)</a><br /> + <a href="classes/Git/Base.html#M000105">commit_all (Git::Base)</a><br /> + <a href="classes/Git/Base.html#M000087">config (Git::Base)</a><br /> <a href="classes/Git/Lib.html#M000041">config_get (Git::Lib)</a><br /> <a href="classes/Git/Lib.html#M000042">config_list (Git::Lib)</a><br /> <a href="classes/Git/Lib.html#M000040">config_remote (Git::Lib)</a><br /> <a href="classes/Git/Lib.html#M000043">config_set (Git::Lib)</a><br /> - <a href="classes/Git/Object/AbstractObject.html#M000123">contents (Git::Object::AbstractObject)</a><br /> - <a href="classes/Git/Object/AbstractObject.html#M000124">contents_array (Git::Object::AbstractObject)</a><br /> - <a href="classes/Git/Branch.html#M000070">create (Git::Branch)</a><br /> - <a href="classes/Git/Branch.html#M000072">current (Git::Branch)</a><br /> - <a href="classes/Git/Base.html#M000116">current_branch (Git::Base)</a><br /> - <a href="classes/Git/Branch.html#M000071">delete (Git::Branch)</a><br /> + <a href="classes/Git/Object/AbstractObject.html#M000125">contents (Git::Object::AbstractObject)</a><br /> + <a href="classes/Git/Object/AbstractObject.html#M000126">contents_array (Git::Object::AbstractObject)</a><br /> + <a href="classes/Git/Branch.html#M000071">create (Git::Branch)</a><br /> + <a href="classes/Git/Branch.html#M000073">current (Git::Branch)</a><br /> + <a href="classes/Git/Base.html#M000118">current_branch (Git::Base)</a><br /> + <a href="classes/Git/Branch.html#M000072">delete (Git::Branch)</a><br /> <a href="classes/Git/Status.html#M000008">deleted (Git::Status)</a><br /> - <a href="classes/Git/Diff.html#M000138">deletions (Git::Diff)</a><br /> - <a href="classes/Git/Base.html#M000098">diff (Git::Base)</a><br /> - <a href="classes/Git/Object/AbstractObject.html#M000128">diff (Git::Object::AbstractObject)</a><br /> + <a href="classes/Git/Diff.html#M000140">deletions (Git::Diff)</a><br /> + <a href="classes/Git/Base.html#M000099">diff (Git::Base)</a><br /> + <a href="classes/Git/Object/AbstractObject.html#M000130">diff (Git::Object::AbstractObject)</a><br /> <a href="classes/Git/Lib.html#M000037">diff_files (Git::Lib)</a><br /> <a href="classes/Git/Lib.html#M000035">diff_full (Git::Lib)</a><br /> <a href="classes/Git/Lib.html#M000038">diff_index (Git::Lib)</a><br /> <a href="classes/Git/Lib.html#M000036">diff_stats (Git::Lib)</a><br /> - <a href="classes/Git/Base.html#M000081">dir (Git::Base)</a><br /> - <a href="classes/Git/Log.html#M000022">each (Git::Log)</a><br /> + <a href="classes/Git/Base.html#M000082">dir (Git::Base)</a><br /> + <a href="classes/Git/Diff.html#M000146">each (Git::Diff)</a><br /> + <a href="classes/Git/Branches.html#M000065">each (Git::Branches)</a><br /> <a href="classes/Git/Status.html#M000012">each (Git::Status)</a><br /> - <a href="classes/Git/Diff.html#M000144">each (Git::Diff)</a><br /> - <a href="classes/Git/Branches.html#M000064">each (Git::Branches)</a><br /> - <a href="classes/Git/Remote.html#M000149">fetch (Git::Remote)</a><br /> + <a href="classes/Git/Log.html#M000022">each (Git::Log)</a><br /> + <a href="classes/Git/Remote.html#M000151">fetch (Git::Remote)</a><br /> <a href="classes/Git/Lib.html#M000057">fetch (Git::Lib)</a><br /> - <a href="classes/Git/Base.html#M000106">fetch (Git::Base)</a><br /> + <a href="classes/Git/Base.html#M000107">fetch (Git::Base)</a><br /> <a href="classes/Git/Log.html#M000023">first (Git::Log)</a><br /> - <a href="classes/Git/Base.html#M000090">gblob (Git::Base)</a><br /> - <a href="classes/Git/Branch.html#M000067">gcommit (Git::Branch)</a><br /> - <a href="classes/Git/Base.html#M000089">gcommit (Git::Base)</a><br /> - <a href="classes/Git/Object/AbstractObject.html#M000127">grep (Git::Object::AbstractObject)</a><br /> + <a href="classes/Git/Base.html#M000091">gblob (Git::Base)</a><br /> + <a href="classes/Git/Branch.html#M000068">gcommit (Git::Branch)</a><br /> + <a href="classes/Git/Base.html#M000090">gcommit (Git::Base)</a><br /> <a href="classes/Git/Lib.html#M000034">grep (Git::Lib)</a><br /> - <a href="classes/Git/Base.html#M000097">grep (Git::Base)</a><br /> - <a href="classes/Git/Base.html#M000088">gtree (Git::Base)</a><br /> - <a href="classes/Git/Branch.html#M000069">in_branch (Git::Branch)</a><br /> - <a href="classes/Git/Base.html#M000083">index (Git::Base)</a><br /> + <a href="classes/Git/Object/AbstractObject.html#M000129">grep (Git::Object::AbstractObject)</a><br /> + <a href="classes/Git/Base.html#M000098">grep (Git::Base)</a><br /> + <a href="classes/Git/Base.html#M000089">gtree (Git::Base)</a><br /> + <a href="classes/Git/Branch.html#M000070">in_branch (Git::Branch)</a><br /> + <a href="classes/Git/Base.html#M000084">index (Git::Base)</a><br /> <a href="classes/Git/Lib.html#M000025">init (Git::Lib)</a><br /> - <a href="classes/Git/Base.html#M000078">init (Git::Base)</a><br /> <a href="classes/Git.html#M000003">init (Git)</a><br /> - <a href="classes/Git/Diff.html#M000139">insertions (Git::Diff)</a><br /> - <a href="classes/Git/Base.html#M000096">lib (Git::Base)</a><br /> - <a href="classes/Git/Diff.html#M000137">lines (Git::Diff)</a><br /> - <a href="classes/Git/Branches.html#M000061">local (Git::Branches)</a><br /> - <a href="classes/Git/Base.html#M000091">log (Git::Base)</a><br /> - <a href="classes/Git/Object/AbstractObject.html#M000129">log (Git::Object::AbstractObject)</a><br /> + <a href="classes/Git/Base.html#M000079">init (Git::Base)</a><br /> + <a href="classes/Git/Diff.html#M000141">insertions (Git::Diff)</a><br /> + <a href="classes/Git/Base.html#M000097">lib (Git::Base)</a><br /> + <a href="classes/Git/Diff.html#M000139">lines (Git::Diff)</a><br /> + <a href="classes/Git/Branches.html#M000062">local (Git::Branches)</a><br /> + <a href="classes/Git/Object/AbstractObject.html#M000131">log (Git::Object::AbstractObject)</a><br /> + <a href="classes/Git/Base.html#M000092">log (Git::Base)</a><br /> <a href="classes/Git/Lib.html#M000027">log_commits (Git::Lib)</a><br /> <a href="classes/Git/Lib.html#M000039">ls_files (Git::Lib)</a><br /> + <a href="classes/Git/Base.html#M000109">merge (Git::Base)</a><br /> <a href="classes/Git/Lib.html#M000051">merge (Git::Lib)</a><br /> - <a href="classes/Git/Branch.html#M000073">merge (Git::Branch)</a><br /> - <a href="classes/Git/Remote.html#M000150">merge (Git::Remote)</a><br /> - <a href="classes/Git/Base.html#M000107">merge (Git::Base)</a><br /> - <a href="classes/Git/Remote.html#M000147">new (Git::Remote)</a><br /> + <a href="classes/Git/Branch.html#M000074">merge (Git::Branch)</a><br /> + <a href="classes/Git/Remote.html#M000152">merge (Git::Remote)</a><br /> + <a href="classes/Git/Object/Tag.html#M000132">new (Git::Object::Tag)</a><br /> <a href="classes/Git/Status/StatusFile.html#M000013">new (Git::Status::StatusFile)</a><br /> - <a href="classes/Git/Diff.html#M000134">new (Git::Diff)</a><br /> - <a href="classes/Git/Branch.html#M000066">new (Git::Branch)</a><br /> - <a href="classes/Git/Diff/DiffFile.html#M000145">new (Git::Diff::DiffFile)</a><br /> - <a href="classes/Git/Object/Tag.html#M000130">new (Git::Object::Tag)</a><br /> - <a href="classes/Git/Base.html#M000080">new (Git::Base)</a><br /> + <a href="classes/Git/Branches.html#M000061">new (Git::Branches)</a><br /> + <a href="classes/Git/Diff.html#M000136">new (Git::Diff)</a><br /> + <a href="classes/Git/Base.html#M000081">new (Git::Base)</a><br /> <a href="classes/Git/Log.html#M000015">new (Git::Log)</a><br /> - <a href="classes/Git/Object/AbstractObject.html#M000122">new (Git::Object::AbstractObject)</a><br /> + <a href="classes/Git/Object/AbstractObject.html#M000124">new (Git::Object::AbstractObject)</a><br /> + <a href="classes/Git/Diff/DiffFile.html#M000147">new (Git::Diff::DiffFile)</a><br /> + <a href="classes/Git/Object.html#M000122">new (Git::Object)</a><br /> + <a href="classes/Git/Branch.html#M000067">new (Git::Branch)</a><br /> <a href="classes/Git/Lib.html#M000024">new (Git::Lib)</a><br /> - <a href="classes/Git/Object.html#M000120">new (Git::Object)</a><br /> <a href="classes/Git/Status.html#M000005">new (Git::Status)</a><br /> - <a href="classes/Git/Branches.html#M000060">new (Git::Branches)</a><br /> - <a href="classes/Git/Path.html#M000117">new (Git::Path)</a><br /> + <a href="classes/Git/Path.html#M000119">new (Git::Path)</a><br /> + <a href="classes/Git/Remote.html#M000149">new (Git::Remote)</a><br /> <a href="classes/Git/Log.html#M000016">object (Git::Log)</a><br /> - <a href="classes/Git/Base.html#M000087">object (Git::Base)</a><br /> + <a href="classes/Git/Base.html#M000088">object (Git::Base)</a><br /> <a href="classes/Git/Lib.html#M000031">object_contents (Git::Lib)</a><br /> <a href="classes/Git/Lib.html#M000030">object_size (Git::Lib)</a><br /> <a href="classes/Git/Lib.html#M000029">object_type (Git::Lib)</a><br /> <a href="classes/Git.html#M000002">open (Git)</a><br /> - <a href="classes/Git/Base.html#M000077">open (Git::Base)</a><br /> - <a href="classes/Git/Diff.html#M000141">patch (Git::Diff)</a><br /> - <a href="classes/Git/Diff.html#M000135">path (Git::Diff)</a><br /> + <a href="classes/Git/Base.html#M000078">open (Git::Base)</a><br /> + <a href="classes/Git/Diff.html#M000143">patch (Git::Diff)</a><br /> + <a href="classes/Git/Diff.html#M000137">path (Git::Diff)</a><br /> <a href="classes/Git/Log.html#M000017">path (Git::Log)</a><br /> <a href="classes/Git/Status.html#M000010">pretty (Git::Status)</a><br /> - <a href="classes/Git/Base.html#M000108">pull (Git::Base)</a><br /> - <a href="classes/Git/Path.html#M000118">readable? (Git::Path)</a><br /> - <a href="classes/Git/Branches.html#M000062">remote (Git::Branches)</a><br /> - <a href="classes/Git/Base.html#M000095">remote (Git::Base)</a><br /> + <a href="classes/Git/Base.html#M000110">pull (Git::Base)</a><br /> + <a href="classes/Git/Base.html#M000108">push (Git::Base)</a><br /> + <a href="classes/Git/Lib.html#M000058">push (Git::Lib)</a><br /> + <a href="classes/Git/Path.html#M000120">readable? (Git::Path)</a><br /> + <a href="classes/Git/Branches.html#M000063">remote (Git::Branches)</a><br /> + <a href="classes/Git/Base.html#M000096">remote (Git::Base)</a><br /> <a href="classes/Git/Lib.html#M000052">remote_add (Git::Lib)</a><br /> <a href="classes/Git/Lib.html#M000053">remote_remove (Git::Lib)</a><br /> + <a href="classes/Git/Base.html#M000111">remotes (Git::Base)</a><br /> <a href="classes/Git/Lib.html#M000054">remotes (Git::Lib)</a><br /> - <a href="classes/Git/Base.html#M000109">remotes (Git::Base)</a><br /> - <a href="classes/Git/Base.html#M000100">remove (Git::Base)</a><br /> - <a href="classes/Git/Remote.html#M000152">remove (Git::Remote)</a><br /> - <a href="classes/Git/Remote.html#M000148">remove (Git::Remote)</a><br /> <a href="classes/Git/Lib.html#M000045">remove (Git::Lib)</a><br /> - <a href="classes/Git/Lib.html#M000059">repack (Git::Lib)</a><br /> - <a href="classes/Git/Base.html#M000114">repack (Git::Base)</a><br /> - <a href="classes/Git/Base.html#M000082">repo (Git::Base)</a><br /> - <a href="classes/Git/Base.html#M000085">repo_size (Git::Base)</a><br /> - <a href="classes/Git/Base.html#M000101">reset (Git::Base)</a><br /> + <a href="classes/Git/Remote.html#M000150">remove (Git::Remote)</a><br /> + <a href="classes/Git/Base.html#M000101">remove (Git::Base)</a><br /> + <a href="classes/Git/Remote.html#M000154">remove (Git::Remote)</a><br /> + <a href="classes/Git/Lib.html#M000060">repack (Git::Lib)</a><br /> + <a href="classes/Git/Base.html#M000116">repack (Git::Base)</a><br /> + <a href="classes/Git/Base.html#M000083">repo (Git::Base)</a><br /> + <a href="classes/Git/Base.html#M000086">repo_size (Git::Base)</a><br /> + <a href="classes/Git/Base.html#M000102">reset (Git::Base)</a><br /> <a href="classes/Git/Lib.html#M000047">reset (Git::Lib)</a><br /> - <a href="classes/Git/Base.html#M000102">reset_hard (Git::Base)</a><br /> - <a href="classes/Git/Base.html#M000115">revparse (Git::Base)</a><br /> + <a href="classes/Git/Base.html#M000103">reset_hard (Git::Base)</a><br /> <a href="classes/Git/Lib.html#M000028">revparse (Git::Lib)</a><br /> - <a href="classes/Git/Object/Blob.html#M000132">setup (Git::Object::Blob)</a><br /> - <a href="classes/Git/Object/Tag.html#M000131">setup (Git::Object::Tag)</a><br /> - <a href="classes/Git/Object/Commit.html#M000121">setup (Git::Object::Commit)</a><br /> - <a href="classes/Git/Object/AbstractObject.html#M000125">setup (Git::Object::AbstractObject)</a><br /> - <a href="classes/Git/Object/Tree.html#M000133">setup (Git::Object::Tree)</a><br /> + <a href="classes/Git/Base.html#M000117">revparse (Git::Base)</a><br /> + <a href="classes/Git/Object/Tag.html#M000133">setup (Git::Object::Tag)</a><br /> + <a href="classes/Git/Object/Commit.html#M000123">setup (Git::Object::Commit)</a><br /> + <a href="classes/Git/Object/Blob.html#M000134">setup (Git::Object::Blob)</a><br /> + <a href="classes/Git/Object/AbstractObject.html#M000127">setup (Git::Object::AbstractObject)</a><br /> + <a href="classes/Git/Object/Tree.html#M000135">setup (Git::Object::Tree)</a><br /> <a href="classes/Git/Log.html#M000018">since (Git::Log)</a><br /> <a href="classes/Git/Log.html#M000021">size (Git::Log)</a><br /> - <a href="classes/Git/Diff.html#M000136">size (Git::Diff)</a><br /> - <a href="classes/Git/Branches.html#M000063">size (Git::Branches)</a><br /> - <a href="classes/Git/Diff.html#M000140">stats (Git::Diff)</a><br /> - <a href="classes/Git/Base.html#M000092">status (Git::Base)</a><br /> - <a href="classes/Git/Base.html#M000112">tag (Git::Base)</a><br /> + <a href="classes/Git/Branches.html#M000064">size (Git::Branches)</a><br /> + <a href="classes/Git/Diff.html#M000138">size (Git::Diff)</a><br /> + <a href="classes/Git/Diff.html#M000142">stats (Git::Diff)</a><br /> + <a href="classes/Git/Base.html#M000093">status (Git::Base)</a><br /> + <a href="classes/Git/Base.html#M000114">tag (Git::Base)</a><br /> <a href="classes/Git/Lib.html#M000056">tag (Git::Lib)</a><br /> - <a href="classes/Git/Lib.html#M000058">tag_sha (Git::Lib)</a><br /> + <a href="classes/Git/Lib.html#M000059">tag_sha (Git::Lib)</a><br /> <a href="classes/Git/Lib.html#M000055">tags (Git::Lib)</a><br /> - <a href="classes/Git/Base.html#M000111">tags (Git::Base)</a><br /> - <a href="classes/Git/Branch.html#M000074">to_a (Git::Branch)</a><br /> - <a href="classes/Git/Diff.html#M000142">to_s (Git::Diff)</a><br /> - <a href="classes/Git/Object/AbstractObject.html#M000126">to_s (Git::Object::AbstractObject)</a><br /> - <a href="classes/Git/Branch.html#M000075">to_s (Git::Branch)</a><br /> + <a href="classes/Git/Base.html#M000113">tags (Git::Base)</a><br /> + <a href="classes/Git/Branch.html#M000075">to_a (Git::Branch)</a><br /> + <a href="classes/Git/Diff.html#M000144">to_s (Git::Diff)</a><br /> + <a href="classes/Git/Branch.html#M000076">to_s (Git::Branch)</a><br /> + <a href="classes/Git/Object/AbstractObject.html#M000128">to_s (Git::Object::AbstractObject)</a><br /> <a href="classes/Git/Log.html#M000020">to_s (Git::Log)</a><br /> - <a href="classes/Git/Remote.html#M000153">to_s (Git::Remote)</a><br /> + <a href="classes/Git/Remote.html#M000155">to_s (Git::Remote)</a><br /> <a href="classes/Git/Status.html#M000009">untracked (Git::Status)</a><br /> - <a href="classes/Git/Path.html#M000119">writable? (Git::Path)</a><br /> + <a href="classes/Git/Path.html#M000121">writable? (Git::Path)</a><br /> </div> </div> </body> |