diff options
author | scott Chacon <schacon@agadorsparticus.(none)> | 2007-11-13 07:36:50 -0800 |
---|---|---|
committer | scott Chacon <schacon@agadorsparticus.(none)> | 2007-11-13 07:36:50 -0800 |
commit | 38f009d6d0aa35b13d19575611db1c724a9d1a5b (patch) | |
tree | 207d2ab90604cdd70870ea361aee635cc7ac4654 /doc | |
parent | b045fa6be8a299b114c89e25242118748ed3e6c6 (diff) | |
download | third_party-ruby-git-38f009d6d0aa35b13d19575611db1c724a9d1a5b.tar.gz third_party-ruby-git-38f009d6d0aa35b13d19575611db1c724a9d1a5b.tar.xz third_party-ruby-git-38f009d6d0aa35b13d19575611db1c724a9d1a5b.zip |
updated a bunch of the documentation
Diffstat (limited to 'doc')
26 files changed, 2038 insertions, 1040 deletions
diff --git a/doc/classes/Git.html b/doc/classes/Git.html index 2fdebb8..523491f 100644 --- a/doc/classes/Git.html +++ b/doc/classes/Git.html @@ -55,6 +55,10 @@ <tr class="top-aligned-row"> <td><strong>In:</strong></td> <td> + <a href="../files/lib/git/author_rb.html"> + lib/git/author.rb + </a> + <br /> <a href="../files/lib/git/base_rb.html"> lib/git/base.rb </a> @@ -124,6 +128,31 @@ <div id="contextContent"> + <div id="description"> + <p> +<a href="Git.html">Git</a>/Ruby Library +</p> +<p> +This provides bindings for working with git in complex interactions, +including branching and merging, object inspection and manipulation, +history, patch generation and more. You should be able to do most +fundamental git operations with this library. +</p> +<p> +This module provides the basic functions to open a git reference to work +with. You can open a working directory, open a bare repository, initialize +a new repo or clone an existing remote repository. +</p> +<table> +<tr><td valign="top"><a href="Git/Author.html">Author</a>:</td><td>Scott Chacon (<a href="mailto:schacon@gmail.com">schacon@gmail.com</a>) + +</td></tr> +<tr><td valign="top">License:</td><td>MIT License + +</td></tr> +</table> + + </div> </div> @@ -149,7 +178,8 @@ <div id="class-list"> <h3 class="section-bar">Classes and Modules</h3> - Class <a href="Git/Base.html" class="link">Git::Base</a><br /> + Class <a href="Git/Author.html" class="link">Git::Author</a><br /> +Class <a href="Git/Base.html" class="link">Git::Base</a><br /> Class <a href="Git/Branch.html" class="link">Git::Branch</a><br /> Class <a href="Git/Branches.html" class="link">Git::Branches</a><br /> Class <a href="Git/Diff.html" class="link">Git::Diff</a><br /> @@ -175,7 +205,7 @@ Class <a href="Git/WorkingDirectory.html" class="link">Git::WorkingDirectory</a> <tr class="top-aligned-row context-row"> <td class="context-item-name">VERSION</td> <td>=</td> - <td class="context-item-value">'1.0.1'</td> + <td class="context-item-value">'1.0.2'</td> </tr> </table> </div> @@ -200,11 +230,19 @@ Class <a href="Git/WorkingDirectory.html" class="link">Git::WorkingDirectory</a> </div> <div class="method-description"> + <p> +open a bare repository +</p> +<p> +this takes the path to a bare git repo it expects not to be able to use a +working directory so you can’t checkout stuff, commit things, etc. +but you can do most read operations +</p> <p><a class="source-toggle" href="#" onclick="toggleCode('M000001-source');return false;">[Source]</a></p> <div class="method-source-code" id="M000001-source"> <pre> -<span class="ruby-comment cmt"># File lib/git.rb, line 36</span> +<span class="ruby-comment cmt"># File lib/git.rb, line 51</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>) <span class="ruby-constant">Base</span>.<span class="ruby-identifier">bare</span>(<span class="ruby-identifier">git_dir</span>) <span class="ruby-keyword kw">end</span> @@ -223,11 +261,28 @@ Class <a href="Git/WorkingDirectory.html" class="link">Git::WorkingDirectory</a> </div> <div class="method-description"> + <p> +clones a remote repository +</p> +<p> +options +</p> +<pre> + :bare => true (does a bare clone) + :repository => '/path/to/alt_git_dir' + :index => '/path/to/alt_index_file' +</pre> +<p> +example +</p> +<pre> + Git.clone('git://repo.or.cz/rubygit.git', 'clone.git', :bare => true) +</pre> <p><a class="source-toggle" href="#" onclick="toggleCode('M000004-source');return false;">[Source]</a></p> <div class="method-source-code" id="M000004-source"> <pre> -<span class="ruby-comment cmt"># File lib/git.rb, line 48</span> +<span class="ruby-comment cmt"># File lib/git.rb, line 88</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">options</span> = {}) <span class="ruby-constant">Base</span>.<span class="ruby-identifier">clone</span>(<span class="ruby-identifier">repository</span>, <span class="ruby-identifier">name</span>, <span class="ruby-identifier">options</span>) <span class="ruby-keyword kw">end</span> @@ -246,11 +301,21 @@ Class <a href="Git/WorkingDirectory.html" class="link">Git::WorkingDirectory</a> </div> <div class="method-description"> + <p> +initialize a new git repository, defaults to the current working directory +</p> +<p> +options +</p> +<pre> + :repository => '/path/to/alt_git_dir' + :index => '/path/to/alt_index_file' +</pre> <p><a class="source-toggle" href="#" onclick="toggleCode('M000003-source');return false;">[Source]</a></p> <div class="method-source-code" id="M000003-source"> <pre> -<span class="ruby-comment cmt"># File lib/git.rb, line 44</span> +<span class="ruby-comment cmt"># File lib/git.rb, line 74</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-value str">'.'</span>, <span class="ruby-identifier">options</span> = {}) <span class="ruby-constant">Base</span>.<span class="ruby-identifier">init</span>(<span class="ruby-identifier">working_dir</span>, <span class="ruby-identifier">options</span>) <span class="ruby-keyword kw">end</span> @@ -269,11 +334,27 @@ Class <a href="Git/WorkingDirectory.html" class="link">Git::WorkingDirectory</a> </div> <div class="method-description"> + <p> +open an existing git working directory +</p> +<p> +this will most likely be the most common way to create a git reference, +referring to a working directory. if not provided in the options, the +library will assume your git_dir and index are in the default place (.git/, +.git/index) +</p> +<p> +options +</p> +<pre> + :repository => '/path/to/alt_git_dir' + :index => '/path/to/alt_index_file' +</pre> <p><a class="source-toggle" href="#" onclick="toggleCode('M000002-source');return false;">[Source]</a></p> <div class="method-source-code" id="M000002-source"> <pre> -<span class="ruby-comment cmt"># File lib/git.rb, line 40</span> +<span class="ruby-comment cmt"># File lib/git.rb, line 65</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">options</span> = {}) <span class="ruby-constant">Base</span>.<span class="ruby-identifier">open</span>(<span class="ruby-identifier">working_dir</span>, <span class="ruby-identifier">options</span>) <span class="ruby-keyword kw">end</span> diff --git a/doc/classes/Git/Author.html b/doc/classes/Git/Author.html new file mode 100644 index 0000000..85441f9 --- /dev/null +++ b/doc/classes/Git/Author.html @@ -0,0 +1,175 @@ +<?xml version="1.0" encoding="iso-8859-1"?> +<!DOCTYPE html + PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> + +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head> + <title>Class: Git::Author</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> + <meta http-equiv="Content-Script-Type" content="text/javascript" /> + <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" /> + <script type="text/javascript"> + // <![CDATA[ + + function popupCode( url ) { + window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400") + } + + function toggleCode( id ) { + if ( document.getElementById ) + elem = document.getElementById( id ); + else if ( document.all ) + elem = eval( "document.all." + id ); + else + return false; + + elemStyle = elem.style; + + if ( elemStyle.display != "block" ) { + elemStyle.display = "block" + } else { + elemStyle.display = "none" + } + + return true; + } + + // Make codeblocks hidden by default + document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" ) + + // ]]> + </script> + +</head> +<body> + + + + <div id="classHeader"> + <table class="header-table"> + <tr class="top-aligned-row"> + <td><strong>Class</strong></td> + <td class="class-name-in-header">Git::Author</td> + </tr> + <tr class="top-aligned-row"> + <td><strong>In:</strong></td> + <td> + <a href="../../files/lib/git/author_rb.html"> + lib/git/author.rb + </a> + <br /> + </td> + </tr> + + <tr class="top-aligned-row"> + <td><strong>Parent:</strong></td> + <td> + <a href="Object.html"> + Object + </a> + </td> + </tr> + </table> + </div> + <!-- banner header --> + + <div id="bodyContent"> + + + + <div id="contextContent"> + + + + </div> + + <div id="method-list"> + <h3 class="section-bar">Methods</h3> + + <div class="name-list"> + <a href="#M000024">new</a> + </div> + </div> + + </div> + + + <!-- if includes --> + + <div id="section"> + + + + + + <div id="attribute-list"> + <h3 class="section-bar">Attributes</h3> + + <div class="name-list"> + <table> + <tr class="top-aligned-row context-row"> + <td class="context-item-name">date</td> + <td class="context-item-value"> [RW] </td> + <td class="context-item-desc"></td> + </tr> + <tr class="top-aligned-row context-row"> + <td class="context-item-name">email</td> + <td class="context-item-value"> [RW] </td> + <td class="context-item-desc"></td> + </tr> + <tr class="top-aligned-row context-row"> + <td class="context-item-name">name</td> + <td class="context-item-value"> [RW] </td> + <td class="context-item-desc"></td> + </tr> + </table> + </div> + </div> + + + + <!-- if method_list --> + <div id="methods"> + <h3 class="section-bar">Public Class methods</h3> + + <div id="method-M000024" class="method-detail"> + <a name="M000024"></a> + + <div class="method-heading"> + <a href="#M000024" class="method-signature"> + <span class="method-name">new</span><span class="method-args">(author_string)</span> + </a> + </div> + + <div class="method-description"> + <p><a class="source-toggle" href="#" + onclick="toggleCode('M000024-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000024-source"> +<pre> +<span class="ruby-comment cmt"># File lib/git/author.rb, line 5</span> + <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">author_string</span>) + <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">m</span> = <span class="ruby-regexp re">/(.*?) <(.*?)> (\d+) (.*)/</span>.<span class="ruby-identifier">match</span>(<span class="ruby-identifier">author_string</span>) + <span class="ruby-ivar">@name</span> = <span class="ruby-identifier">m</span>[<span class="ruby-value">1</span>] + <span class="ruby-ivar">@email</span> = <span class="ruby-identifier">m</span>[<span class="ruby-value">2</span>] + <span class="ruby-ivar">@date</span> = <span class="ruby-constant">Time</span>.<span class="ruby-identifier">at</span>(<span class="ruby-identifier">m</span>[<span class="ruby-value">3</span>].<span class="ruby-identifier">to_i</span>) + <span class="ruby-keyword kw">end</span> + <span class="ruby-keyword kw">end</span> +</pre> + </div> + </div> + </div> + + + </div> + + + </div> + + +<div id="validator-badges"> + <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p> +</div> + +</body> +</html>
\ No newline at end of file diff --git a/doc/classes/Git/Base.html b/doc/classes/Git/Base.html index 2a7fbce..9c994c6 100644 --- a/doc/classes/Git/Base.html +++ b/doc/classes/Git/Base.html @@ -88,48 +88,48 @@ <h3 class="section-bar">Methods</h3> <div class="name-list"> - <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> + <a href="#M000103">add</a> + <a href="#M000115">add_remote</a> + <a href="#M000118">add_tag</a> + <a href="#M000080">bare</a> + <a href="#M000098">branch</a> + <a href="#M000097">branches</a> + <a href="#M000088">chdir</a> + <a href="#M000109">checkout</a> + <a href="#M000083">clone</a> + <a href="#M000107">commit</a> + <a href="#M000108">commit_all</a> + <a href="#M000090">config</a> + <a href="#M000121">current_branch</a> + <a href="#M000102">diff</a> + <a href="#M000085">dir</a> + <a href="#M000110">fetch</a> + <a href="#M000094">gblob</a> + <a href="#M000093">gcommit</a> + <a href="#M000101">grep</a> + <a href="#M000092">gtree</a> + <a href="#M000087">index</a> + <a href="#M000082">init</a> + <a href="#M000100">lib</a> + <a href="#M000095">log</a> + <a href="#M000112">merge</a> + <a href="#M000084">new</a> + <a href="#M000091">object</a> + <a href="#M000081">open</a> + <a href="#M000113">pull</a> + <a href="#M000111">push</a> + <a href="#M000099">remote</a> + <a href="#M000114">remotes</a> + <a href="#M000104">remove</a> + <a href="#M000119">repack</a> + <a href="#M000086">repo</a> + <a href="#M000089">repo_size</a> + <a href="#M000105">reset</a> + <a href="#M000106">reset_hard</a> + <a href="#M000120">revparse</a> + <a href="#M000096">status</a> + <a href="#M000117">tag</a> + <a href="#M000116">tags</a> </div> </div> @@ -151,11 +151,11 @@ <div id="methods"> <h3 class="section-bar">Public Class methods</h3> - <div id="method-M000077" class="method-detail"> - <a name="M000077"></a> + <div id="method-M000080" class="method-detail"> + <a name="M000080"></a> <div class="method-heading"> - <a href="#M000077" class="method-signature"> + <a href="#M000080" class="method-signature"> <span class="method-name">bare</span><span class="method-args">(git_dir)</span> </a> </div> @@ -166,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('M000077-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000077-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 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>) @@ -178,11 +178,11 @@ href="Repository.html">Repository</a> - no working directory options </div> </div> - <div id="method-M000080" class="method-detail"> - <a name="M000080"></a> + <div id="method-M000083" class="method-detail"> + <a name="M000083"></a> <div class="method-heading"> - <a href="#M000080" class="method-signature"> + <a href="#M000083" class="method-signature"> <span class="method-name">clone</span><span class="method-args">(repository, name, opts = {})</span> </a> </div> @@ -207,8 +207,8 @@ options: :index_file </pre> <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('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 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> = {}) @@ -220,11 +220,11 @@ options: </div> </div> - <div id="method-M000079" class="method-detail"> - <a name="M000079"></a> + <div id="method-M000082" class="method-detail"> + <a name="M000082"></a> <div class="method-heading"> - <a href="#M000079" class="method-signature"> + <a href="#M000082" class="method-signature"> <span class="method-name">init</span><span class="method-args">(working_dir, opts = {})</span> </a> </div> @@ -241,8 +241,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('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 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> = {}) @@ -265,19 +265,19 @@ options: </div> </div> - <div id="method-M000081" class="method-detail"> - <a name="M000081"></a> + <div id="method-M000084" class="method-detail"> + <a name="M000084"></a> <div class="method-heading"> - <a href="#M000081" class="method-signature"> + <a href="#M000084" 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('M000081-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000081-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 63</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">options</span> = {}) @@ -295,11 +295,11 @@ options: </div> </div> - <div id="method-M000078" class="method-detail"> - <a name="M000078"></a> + <div id="method-M000081" class="method-detail"> + <a name="M000081"></a> <div class="method-heading"> - <a href="#M000078" class="method-signature"> + <a href="#M000081" class="method-signature"> <span class="method-name">open</span><span class="method-args">(working_dir, opts={})</span> </a> </div> @@ -310,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('M000078-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000078-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 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>={}) @@ -327,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-M000100" class="method-detail"> - <a name="M000100"></a> + <div id="method-M000103" class="method-detail"> + <a name="M000103"></a> <div class="method-heading"> - <a href="#M000100" class="method-signature"> + <a href="#M000103" class="method-signature"> <span class="method-name">add</span><span class="method-args">(path = '.')</span> </a> </div> @@ -341,10 +341,10 @@ 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('M000100-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000100-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 162</span> +<span class="ruby-comment cmt"># File lib/git/base.rb, line 212</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>) <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">lib</span>.<span class="ruby-identifier">add</span>(<span class="ruby-identifier">path</span>) <span class="ruby-keyword kw">end</span> @@ -353,21 +353,30 @@ adds files from the working directory to the git repository </div> </div> - <div id="method-M000112" class="method-detail"> - <a name="M000112"></a> + <div id="method-M000115" class="method-detail"> + <a name="M000115"></a> <div class="method-heading"> - <a href="#M000112" class="method-signature"> + <a href="#M000115" 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> +adds a new remote to this repository url can be a git url or a <a +href="Base.html">Git::Base</a> object if it’s a local reference +</p> +<pre> + @git.add_remote('scotts_git', 'git://repo.or.cz/rubygit.git') + @git.fetch('scotts_git') + @git.merge('scotts_git/master') +</pre> <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('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 213</span> +<span class="ruby-comment cmt"># File lib/git/base.rb, line 290</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> @@ -380,21 +389,24 @@ adds files from the working directory to the git repository </div> </div> - <div id="method-M000115" class="method-detail"> - <a name="M000115"></a> + <div id="method-M000118" class="method-detail"> + <a name="M000118"></a> <div class="method-heading"> - <a href="#M000115" class="method-signature"> + <a href="#M000118" class="method-signature"> <span class="method-name">add_tag</span><span class="method-args">(tag_name)</span> </a> </div> <div class="method-description"> + <p> +creates a new git tag (Git::Tag) +</p> <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('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 229</span> +<span class="ruby-comment cmt"># File lib/git/base.rb, line 309</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>) @@ -404,21 +416,24 @@ adds files from the working directory to the git repository </div> </div> - <div id="method-M000095" class="method-detail"> - <a name="M000095"></a> + <div id="method-M000098" class="method-detail"> + <a name="M000098"></a> <div class="method-heading"> - <a href="#M000095" class="method-signature"> + <a href="#M000098" class="method-signature"> <span class="method-name">branch</span><span class="method-args">(branch_name = 'master')</span> </a> </div> <div class="method-description"> + <p> +returns a <a href="Branch.html">Git::Branch</a> object for branch_name +</p> <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('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 140</span> +<span class="ruby-comment cmt"># File lib/git/base.rb, line 167</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>) <span class="ruby-constant">Git</span><span class="ruby-operator">::</span><span class="ruby-constant">Branch</span>.<span class="ruby-identifier">new</span>(<span class="ruby-keyword kw">self</span>, <span class="ruby-identifier">branch_name</span>) <span class="ruby-keyword kw">end</span> @@ -427,21 +442,25 @@ 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-M000097" class="method-detail"> + <a name="M000097"></a> <div class="method-heading"> - <a href="#M000094" class="method-signature"> + <a href="#M000097" class="method-signature"> <span class="method-name">branches</span><span class="method-args">()</span> </a> </div> <div class="method-description"> + <p> +returns a <a href="Branches.html">Git::Branches</a> object of all the <a +href="Branch.html">Git::Branch</a> objects for this repo +</p> <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('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 136</span> +<span class="ruby-comment cmt"># File lib/git/base.rb, line 162</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">branches</span> <span class="ruby-constant">Git</span><span class="ruby-operator">::</span><span class="ruby-constant">Branches</span>.<span class="ruby-identifier">new</span>(<span class="ruby-keyword kw">self</span>) <span class="ruby-keyword kw">end</span> @@ -450,21 +469,34 @@ adds files from the working directory to the git repository </div> </div> - <div id="method-M000085" class="method-detail"> - <a name="M000085"></a> + <div id="method-M000088" class="method-detail"> + <a name="M000088"></a> <div class="method-heading"> - <a href="#M000085" class="method-signature"> + <a href="#M000088" class="method-signature"> <span class="method-name">chdir</span><span class="method-args">() {|dir.path| ...}</span> </a> </div> <div class="method-description"> + <p> +changes current working directory for a block to the git working directory +</p> +<p> +example +</p> +<pre> + @git.chdir do + # write files + @git.add + @git.commit('message') + end +</pre> <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('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 87</span> +<span class="ruby-comment cmt"># File lib/git/base.rb, line 102</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">chdir</span> <span class="ruby-constant">Dir</span>.<span class="ruby-identifier">chdir</span>(<span class="ruby-identifier">dir</span>.<span class="ruby-identifier">path</span>) <span class="ruby-keyword kw">do</span> <span class="ruby-keyword kw">yield</span> <span class="ruby-identifier">dir</span>.<span class="ruby-identifier">path</span> @@ -475,21 +507,24 @@ adds files from the working directory to the git repository </div> </div> - <div id="method-M000106" class="method-detail"> - <a name="M000106"></a> + <div id="method-M000109" class="method-detail"> + <a name="M000109"></a> <div class="method-heading"> - <a href="#M000106" class="method-signature"> + <a href="#M000109" class="method-signature"> <span class="method-name">checkout</span><span class="method-args">(branch = 'master', opts = {})</span> </a> </div> <div class="method-description"> + <p> +checks out a branch as the new git working directory +</p> <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('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 188</span> +<span class="ruby-comment cmt"># File lib/git/base.rb, line 246</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> @@ -498,21 +533,24 @@ 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-M000107" class="method-detail"> + <a name="M000107"></a> <div class="method-heading"> - <a href="#M000104" class="method-signature"> + <a href="#M000107" class="method-signature"> <span class="method-name">commit</span><span class="method-args">(message, opts = {})</span> </a> </div> <div class="method-description"> + <p> +commits all pending changes in the index file to the git repository +</p> <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('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 179</span> +<span class="ruby-comment cmt"># File lib/git/base.rb, line 233</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> = {}) <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">lib</span>.<span class="ruby-identifier">commit</span>(<span class="ruby-identifier">message</span>, <span class="ruby-identifier">opts</span>) <span class="ruby-keyword kw">end</span> @@ -521,21 +559,26 @@ 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-M000108" class="method-detail"> + <a name="M000108"></a> <div class="method-heading"> - <a href="#M000105" class="method-signature"> + <a href="#M000108" class="method-signature"> <span class="method-name">commit_all</span><span class="method-args">(message, opts = {})</span> </a> </div> <div class="method-description"> + <p> +commits all pending changes in the index file to the git repository, but +automatically adds all modified files without having to explicitly calling +@git.add() on them. +</p> <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('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 183</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">commit_all</span>(<span class="ruby-identifier">message</span>, <span class="ruby-identifier">opts</span> = {}) <span class="ruby-identifier">opts</span> = {<span class="ruby-identifier">:add_all</span> =<span class="ruby-operator">></span> <span class="ruby-keyword kw">true</span>}.<span class="ruby-identifier">merge</span>(<span class="ruby-identifier">opts</span>) <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">lib</span>.<span class="ruby-identifier">commit</span>(<span class="ruby-identifier">message</span>, <span class="ruby-identifier">opts</span>) @@ -545,11 +588,11 @@ adds files from the working directory to the git repository </div> </div> - <div id="method-M000087" class="method-detail"> - <a name="M000087"></a> + <div id="method-M000090" class="method-detail"> + <a name="M000090"></a> <div class="method-heading"> - <a href="#M000087" class="method-signature"> + <a href="#M000090" class="method-signature"> <span class="method-name">config</span><span class="method-args">(name = nil, value = nil)</span> </a> </div> @@ -562,10 +605,10 @@ value g.config(‘user.name’) # returns ‘Scott Chacon’ g.config # returns whole config hash </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('M000090-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000090-source"> <pre> -<span class="ruby-comment cmt"># File lib/git/base.rb, line 105</span> +<span class="ruby-comment cmt"># File lib/git/base.rb, line 121</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>) <span class="ruby-keyword kw">if</span>(<span class="ruby-identifier">name</span> <span class="ruby-operator">&&</span> <span class="ruby-identifier">value</span>) <span class="ruby-comment cmt"># set value</span> @@ -583,21 +626,24 @@ Chacon’ g.config # returns whole config hash </div> </div> - <div id="method-M000118" class="method-detail"> - <a name="M000118"></a> + <div id="method-M000121" class="method-detail"> + <a name="M000121"></a> <div class="method-heading"> - <a href="#M000118" class="method-signature"> + <a href="#M000121" class="method-signature"> <span class="method-name">current_branch</span><span class="method-args">()</span> </a> </div> <div class="method-description"> + <p> +returns the name of the branch the working directory is currently on +</p> <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('M000121-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000121-source"> <pre> -<span class="ruby-comment cmt"># File lib/git/base.rb, line 244</span> +<span class="ruby-comment cmt"># File lib/git/base.rb, line 330</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> @@ -606,21 +652,24 @@ Chacon’ g.config # returns whole config hash </div> </div> - <div id="method-M000099" class="method-detail"> - <a name="M000099"></a> + <div id="method-M000102" class="method-detail"> + <a name="M000102"></a> <div class="method-heading"> - <a href="#M000099" class="method-signature"> + <a href="#M000102" 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> +returns a <a href="Diff.html">Git::Diff</a> object +</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('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 157</span> +<span class="ruby-comment cmt"># File lib/git/base.rb, line 207</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>) <span class="ruby-constant">Git</span><span class="ruby-operator">::</span><span class="ruby-constant">Diff</span>.<span class="ruby-identifier">new</span>(<span class="ruby-keyword kw">self</span>, <span class="ruby-identifier">objectish</span>, <span class="ruby-identifier">obj2</span>) <span class="ruby-keyword kw">end</span> @@ -629,21 +678,28 @@ Chacon’ g.config # returns whole config hash </div> </div> - <div id="method-M000082" class="method-detail"> - <a name="M000082"></a> + <div id="method-M000085" class="method-detail"> + <a name="M000085"></a> <div class="method-heading"> - <a href="#M000082" class="method-signature"> + <a href="#M000085" class="method-signature"> <span class="method-name">dir</span><span class="method-args">()</span> </a> </div> <div class="method-description"> + <p> +returns a reference to the working directory +</p> +<pre> + @git.dir.path + @git.dir.writeable? +</pre> <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('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 75</span> +<span class="ruby-comment cmt"># File lib/git/base.rb, line 78</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">dir</span> <span class="ruby-ivar">@working_directory</span> <span class="ruby-keyword kw">end</span> @@ -652,21 +708,25 @@ Chacon’ g.config # returns whole config hash </div> </div> - <div id="method-M000107" class="method-detail"> - <a name="M000107"></a> + <div id="method-M000110" class="method-detail"> + <a name="M000110"></a> <div class="method-heading"> - <a href="#M000107" class="method-signature"> + <a href="#M000110" class="method-signature"> <span class="method-name">fetch</span><span class="method-args">(remote = 'origin')</span> </a> </div> <div class="method-description"> + <p> +fetches changes from a remote branch - this does not modify the working +directory, it just gets the changes from the remote if there are any +</p> <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('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 192</span> +<span class="ruby-comment cmt"># File lib/git/base.rb, line 252</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>) <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">lib</span>.<span class="ruby-identifier">fetch</span>(<span class="ruby-identifier">remote</span>) <span class="ruby-keyword kw">end</span> @@ -675,8 +735,8 @@ Chacon’ g.config # returns whole config hash </div> </div> - <div id="method-M000091" class="method-detail"> - <a name="M000091"></a> + <div id="method-M000094" class="method-detail"> + <a name="M000094"></a> <div class="method-heading"> <span class="method-name">gblob</span><span class="method-args">(objectish)</span> @@ -684,13 +744,13 @@ Chacon’ g.config # returns whole config hash <div class="method-description"> <p> -Alias for <a href="Base.html#M000088">object</a> +Alias for <a href="Base.html#M000091">object</a> </p> </div> </div> - <div id="method-M000090" class="method-detail"> - <a name="M000090"></a> + <div id="method-M000093" class="method-detail"> + <a name="M000093"></a> <div class="method-heading"> <span class="method-name">gcommit</span><span class="method-args">(objectish)</span> @@ -698,26 +758,54 @@ Alias for <a href="Base.html#M000088">object</a> <div class="method-description"> <p> -Alias for <a href="Base.html#M000088">object</a> +Alias for <a href="Base.html#M000091">object</a> </p> </div> </div> - <div id="method-M000098" class="method-detail"> - <a name="M000098"></a> + <div id="method-M000101" class="method-detail"> + <a name="M000101"></a> <div class="method-heading"> - <a href="#M000098" class="method-signature"> + <a href="#M000101" class="method-signature"> <span class="method-name">grep</span><span class="method-args">(string)</span> </a> </div> <div class="method-description"> + <p> +will run a grep for ‘string’ on the HEAD of the git repository +</p> +<p> +to be more surgical in your grep, you can call grep() off a specific git +object. for example: +</p> +<pre> + @git.object("v2.3").grep('TODO') +</pre> +<p> +in any case, it returns a hash of arrays of the type: +</p> +<pre> + hsh[tree-ish] = [[line_no, match], [line_no, match2]] + hsh[tree-ish] = [[line_no, match], [line_no, match2]] +</pre> +<p> +so you might use it like this: +</p> +<pre> + @git.grep("TODO").each do |sha, arr| + puts "in blob #{sha}:" + arr.each do |match| + puts "\t line #{match[0]}: '#{match[1]}'" + end + end +</pre> <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('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 153</span> +<span class="ruby-comment cmt"># File lib/git/base.rb, line 202</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">grep</span>(<span class="ruby-identifier">string</span>) <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">object</span>(<span class="ruby-value str">'HEAD'</span>).<span class="ruby-identifier">grep</span>(<span class="ruby-identifier">string</span>) <span class="ruby-keyword kw">end</span> @@ -726,8 +814,8 @@ Alias for <a href="Base.html#M000088">object</a> </div> </div> - <div id="method-M000089" class="method-detail"> - <a name="M000089"></a> + <div id="method-M000092" class="method-detail"> + <a name="M000092"></a> <div class="method-heading"> <span class="method-name">gtree</span><span class="method-args">(objectish)</span> @@ -735,26 +823,29 @@ Alias for <a href="Base.html#M000088">object</a> <div class="method-description"> <p> -Alias for <a href="Base.html#M000088">object</a> +Alias for <a href="Base.html#M000091">object</a> </p> </div> </div> - <div id="method-M000084" class="method-detail"> - <a name="M000084"></a> + <div id="method-M000087" class="method-detail"> + <a name="M000087"></a> <div class="method-heading"> - <a href="#M000084" class="method-signature"> + <a href="#M000087" class="method-signature"> <span class="method-name">index</span><span class="method-args">()</span> </a> </div> <div class="method-description"> + <p> +returns reference to the git index file +</p> <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('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 83</span> +<span class="ruby-comment cmt"># File lib/git/base.rb, line 89</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">index</span> <span class="ruby-ivar">@index</span> <span class="ruby-keyword kw">end</span> @@ -763,21 +854,27 @@ Alias for <a href="Base.html#M000088">object</a> </div> </div> - <div id="method-M000097" class="method-detail"> - <a name="M000097"></a> + <div id="method-M000100" class="method-detail"> + <a name="M000100"></a> <div class="method-heading"> - <a href="#M000097" class="method-signature"> + <a href="#M000100" class="method-signature"> <span class="method-name">lib</span><span class="method-args">()</span> </a> </div> <div class="method-description"> + <p> +this is a convenience method for accessing the class that wraps all the +actual ‘git’ forked system calls. At some point I hope to +replace the <a href="Lib.html">Git::Lib</a> class with one that uses native +methods or libgit C bindings +</p> <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('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 149</span> +<span class="ruby-comment cmt"># File lib/git/base.rb, line 179</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">lib</span> <span class="ruby-constant">Git</span><span class="ruby-operator">::</span><span class="ruby-constant">Lib</span>.<span class="ruby-identifier">new</span>(<span class="ruby-keyword kw">self</span>) <span class="ruby-keyword kw">end</span> @@ -786,21 +883,24 @@ Alias for <a href="Base.html#M000088">object</a> </div> </div> - <div id="method-M000092" class="method-detail"> - <a name="M000092"></a> + <div id="method-M000095" class="method-detail"> + <a name="M000095"></a> <div class="method-heading"> - <a href="#M000092" class="method-signature"> + <a href="#M000095" class="method-signature"> <span class="method-name">log</span><span class="method-args">(count = 30)</span> </a> </div> <div class="method-description"> + <p> +returns a <a href="Log.html">Git::Log</a> object with count commits +</p> <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('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 128</span> +<span class="ruby-comment cmt"># File lib/git/base.rb, line 152</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>) <span class="ruby-constant">Git</span><span class="ruby-operator">::</span><span class="ruby-constant">Log</span>.<span class="ruby-identifier">new</span>(<span class="ruby-keyword kw">self</span>, <span class="ruby-identifier">count</span>) <span class="ruby-keyword kw">end</span> @@ -809,21 +909,28 @@ Alias for <a href="Base.html#M000088">object</a> </div> </div> - <div id="method-M000109" class="method-detail"> - <a name="M000109"></a> + <div id="method-M000112" class="method-detail"> + <a name="M000112"></a> <div class="method-heading"> - <a href="#M000109" class="method-signature"> + <a href="#M000112" class="method-signature"> <span class="method-name">merge</span><span class="method-args">(branch, message = 'merge')</span> </a> </div> <div class="method-description"> + <p> +merges one or more branches into the current working branch +</p> +<p> +you can specify more than one branch to merge by passing an array of +branches +</p> <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('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 200</span> +<span class="ruby-comment cmt"># File lib/git/base.rb, line 268</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> @@ -832,24 +939,32 @@ Alias for <a href="Base.html#M000088">object</a> </div> </div> - <div id="method-M000088" class="method-detail"> - <a name="M000088"></a> + <div id="method-M000091" class="method-detail"> + <a name="M000091"></a> <div class="method-heading"> - <a href="#M000088" class="method-signature"> + <a href="#M000091" class="method-signature"> <span class="method-name">object</span><span class="method-args">(objectish)</span> </a> </div> <div class="method-description"> <p> -factory methods +returns a <a href="Object.html">Git::Object</a> of the appropriate type you +can also call @git.gtree(‘tree’), but that’s just for +readability. If you call @git.gtree(‘HEAD’) it will still +return a <a href="Object/Commit.html">Git::Object::Commit</a> object. +</p> +<p> +@git.object calls a factory method that will run a rev-parse on the +objectish and determine the type of the object and return an appropriate +object for that type </p> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000088-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000088-source"> + onclick="toggleCode('M000091-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000091-source"> <pre> -<span class="ruby-comment cmt"># File lib/git/base.rb, line 120</span> +<span class="ruby-comment cmt"># File lib/git/base.rb, line 144</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">object</span>(<span class="ruby-identifier">objectish</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">objectish</span>) <span class="ruby-keyword kw">end</span> @@ -858,21 +973,25 @@ factory methods </div> </div> - <div id="method-M000110" class="method-detail"> - <a name="M000110"></a> + <div id="method-M000113" class="method-detail"> + <a name="M000113"></a> <div class="method-heading"> - <a href="#M000110" class="method-signature"> + <a href="#M000113" 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> +fetches a branch from a remote and merges it into the current working +branch +</p> <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('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 204</span> +<span class="ruby-comment cmt"># File lib/git/base.rb, line 273</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>) @@ -882,21 +1001,29 @@ factory methods </div> </div> - <div id="method-M000108" class="method-detail"> - <a name="M000108"></a> + <div id="method-M000111" class="method-detail"> + <a name="M000111"></a> <div class="method-heading"> - <a href="#M000108" class="method-signature"> + <a href="#M000111" class="method-signature"> <span class="method-name">push</span><span class="method-args">(remote = 'origin', branch = 'master')</span> </a> </div> <div class="method-description"> + <p> +pushes changes to a remote repository - easiest if this is a cloned +repository, otherwise you may have to run something like this first to +setup the push parameters: +</p> +<pre> + @git.config('remote.remote-name.push', 'refs/heads/master:refs/heads/master') +</pre> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000108-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000108-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 196</span> +<span class="ruby-comment cmt"># File lib/git/base.rb, line 261</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> @@ -905,21 +1032,24 @@ factory methods </div> </div> - <div id="method-M000096" class="method-detail"> - <a name="M000096"></a> + <div id="method-M000099" class="method-detail"> + <a name="M000099"></a> <div class="method-heading"> - <a href="#M000096" class="method-signature"> + <a href="#M000099" class="method-signature"> <span class="method-name">remote</span><span class="method-args">(remote_name = 'origin')</span> </a> </div> <div class="method-description"> + <p> +returns a <a href="Remote.html">Git::Remote</a> object +</p> <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('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 144</span> +<span class="ruby-comment cmt"># File lib/git/base.rb, line 172</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>) <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">remote_name</span>) <span class="ruby-keyword kw">end</span> @@ -928,21 +1058,25 @@ factory methods </div> </div> - <div id="method-M000111" class="method-detail"> - <a name="M000111"></a> + <div id="method-M000114" class="method-detail"> + <a name="M000114"></a> <div class="method-heading"> - <a href="#M000111" class="method-signature"> + <a href="#M000114" class="method-signature"> <span class="method-name">remotes</span><span class="method-args">()</span> </a> </div> <div class="method-description"> + <p> +returns an array of <a href="../Git.html">Git</a>:<a +href="Remote.html">Remote</a> objects +</p> <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('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 209</span> +<span class="ruby-comment cmt"># File lib/git/base.rb, line 279</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> @@ -951,21 +1085,24 @@ factory methods </div> </div> - <div id="method-M000101" class="method-detail"> - <a name="M000101"></a> + <div id="method-M000104" class="method-detail"> + <a name="M000104"></a> <div class="method-heading"> - <a href="#M000101" class="method-signature"> + <a href="#M000104" class="method-signature"> <span class="method-name">remove</span><span class="method-args">(path = '.', opts = {})</span> </a> </div> <div class="method-description"> + <p> +removes file(s) from the git repository +</p> <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('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 166</span> +<span class="ruby-comment cmt"># File lib/git/base.rb, line 217</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> = {}) <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">lib</span>.<span class="ruby-identifier">remove</span>(<span class="ruby-identifier">path</span>, <span class="ruby-identifier">opts</span>) <span class="ruby-keyword kw">end</span> @@ -974,24 +1111,24 @@ factory methods </div> </div> - <div id="method-M000116" class="method-detail"> - <a name="M000116"></a> + <div id="method-M000119" class="method-detail"> + <a name="M000119"></a> <div class="method-heading"> - <a href="#M000116" class="method-signature"> + <a href="#M000119" class="method-signature"> <span class="method-name">repack</span><span class="method-args">()</span> </a> </div> <div class="method-description"> <p> -convenience methods +repacks the repository </p> <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('M000119-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000119-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 315</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> @@ -1000,21 +1137,27 @@ convenience methods </div> </div> - <div id="method-M000083" class="method-detail"> - <a name="M000083"></a> + <div id="method-M000086" class="method-detail"> + <a name="M000086"></a> <div class="method-heading"> - <a href="#M000083" class="method-signature"> + <a href="#M000086" class="method-signature"> <span class="method-name">repo</span><span class="method-args">()</span> </a> </div> <div class="method-description"> + <p> +returns reference to the git repository directory +</p> +<pre> + @git.dir.path +</pre> <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('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 79</span> +<span class="ruby-comment cmt"># File lib/git/base.rb, line 84</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">repo</span> <span class="ruby-ivar">@repository</span> <span class="ruby-keyword kw">end</span> @@ -1023,21 +1166,24 @@ convenience methods </div> </div> - <div id="method-M000086" class="method-detail"> - <a name="M000086"></a> + <div id="method-M000089" class="method-detail"> + <a name="M000089"></a> <div class="method-heading"> - <a href="#M000086" class="method-signature"> + <a href="#M000089" class="method-signature"> <span class="method-name">repo_size</span><span class="method-args">()</span> </a> </div> <div class="method-description"> + <p> +returns the repository size in bytes +</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('M000089-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000089-source"> <pre> -<span class="ruby-comment cmt"># File lib/git/base.rb, line 93</span> +<span class="ruby-comment cmt"># File lib/git/base.rb, line 109</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">repo_size</span> <span class="ruby-identifier">size</span> = <span class="ruby-value">0</span> <span class="ruby-constant">Dir</span>.<span class="ruby-identifier">chdir</span>(<span class="ruby-identifier">repo</span>.<span class="ruby-identifier">path</span>) <span class="ruby-keyword kw">do</span> @@ -1050,21 +1196,24 @@ convenience methods </div> </div> - <div id="method-M000102" class="method-detail"> - <a name="M000102"></a> + <div id="method-M000105" class="method-detail"> + <a name="M000105"></a> <div class="method-heading"> - <a href="#M000102" class="method-signature"> + <a href="#M000105" class="method-signature"> <span class="method-name">reset</span><span class="method-args">(commitish = nil, opts = {})</span> </a> </div> <div class="method-description"> + <p> +resets the working directory to the provided commitish +</p> <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('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 170</span> +<span class="ruby-comment cmt"># File lib/git/base.rb, line 222</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> = {}) <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">lib</span>.<span class="ruby-identifier">reset</span>(<span class="ruby-identifier">commitish</span>, <span class="ruby-identifier">opts</span>) <span class="ruby-keyword kw">end</span> @@ -1073,21 +1222,25 @@ convenience methods </div> </div> - <div id="method-M000103" class="method-detail"> - <a name="M000103"></a> + <div id="method-M000106" class="method-detail"> + <a name="M000106"></a> <div class="method-heading"> - <a href="#M000103" class="method-signature"> + <a href="#M000106" 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> +resets the working directory to the commitish with +’—hard’ +</p> <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('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 174</span> +<span class="ruby-comment cmt"># File lib/git/base.rb, line 227</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> = {}) <span class="ruby-identifier">opts</span> = {<span class="ruby-identifier">:hard</span> =<span class="ruby-operator">></span> <span class="ruby-keyword kw">true</span>}.<span class="ruby-identifier">merge</span>(<span class="ruby-identifier">opts</span>) <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">lib</span>.<span class="ruby-identifier">reset</span>(<span class="ruby-identifier">commitish</span>, <span class="ruby-identifier">opts</span>) @@ -1097,21 +1250,29 @@ convenience methods </div> </div> - <div id="method-M000117" class="method-detail"> - <a name="M000117"></a> + <div id="method-M000120" class="method-detail"> + <a name="M000120"></a> <div class="method-heading"> - <a href="#M000117" class="method-signature"> + <a href="#M000120" class="method-signature"> <span class="method-name">revparse</span><span class="method-args">(objectish)</span> </a> </div> <div class="method-description"> + <p> +runs git rev-parse to convert the objectish to a full sha +</p> +<pre> + @git.revparse("HEAD^^") + @git.revparse('v2.4^{tree}') + @git.revparse('v2.4:/doc/index.html') +</pre> <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('M000120-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000120-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 325</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> @@ -1120,21 +1281,24 @@ convenience methods </div> </div> - <div id="method-M000093" class="method-detail"> - <a name="M000093"></a> + <div id="method-M000096" class="method-detail"> + <a name="M000096"></a> <div class="method-heading"> - <a href="#M000093" class="method-signature"> + <a href="#M000096" class="method-signature"> <span class="method-name">status</span><span class="method-args">()</span> </a> </div> <div class="method-description"> + <p> +returns a <a href="Status.html">Git::Status</a> object +</p> <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('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 132</span> +<span class="ruby-comment cmt"># File lib/git/base.rb, line 157</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">status</span> <span class="ruby-constant">Git</span><span class="ruby-operator">::</span><span class="ruby-constant">Status</span>.<span class="ruby-identifier">new</span>(<span class="ruby-keyword kw">self</span>) <span class="ruby-keyword kw">end</span> @@ -1143,21 +1307,24 @@ convenience methods </div> </div> - <div id="method-M000114" class="method-detail"> - <a name="M000114"></a> + <div id="method-M000117" class="method-detail"> + <a name="M000117"></a> <div class="method-heading"> - <a href="#M000114" class="method-signature"> + <a href="#M000117" class="method-signature"> <span class="method-name">tag</span><span class="method-args">(tag_name)</span> </a> </div> <div class="method-description"> + <p> +returns a Git::Tag object +</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('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 225</span> +<span class="ruby-comment cmt"># File lib/git/base.rb, line 304</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> @@ -1166,21 +1333,24 @@ convenience methods </div> </div> - <div id="method-M000113" class="method-detail"> - <a name="M000113"></a> + <div id="method-M000116" class="method-detail"> + <a name="M000116"></a> <div class="method-heading"> - <a href="#M000113" class="method-signature"> + <a href="#M000116" class="method-signature"> <span class="method-name">tags</span><span class="method-args">()</span> </a> </div> <div class="method-description"> + <p> +returns an array of all Git::Tag objects for this repository +</p> <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('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 221</span> +<span class="ruby-comment cmt"># File lib/git/base.rb, line 299</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 4fb476d..9b392fd 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="#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> + <a href="#M000072">checkout</a> + <a href="#M000074">create</a> + <a href="#M000076">current</a> + <a href="#M000075">delete</a> + <a href="#M000071">gcommit</a> + <a href="#M000073">in_branch</a> + <a href="#M000077">merge</a> + <a href="#M000070">new</a> + <a href="#M000078">to_a</a> + <a href="#M000079">to_s</a> </div> </div> @@ -142,19 +142,19 @@ <div id="methods"> <h3 class="section-bar">Public Class methods</h3> - <div id="method-M000067" class="method-detail"> - <a name="M000067"></a> + <div id="method-M000070" class="method-detail"> + <a name="M000070"></a> <div class="method-heading"> - <a href="#M000067" class="method-signature"> + <a href="#M000070" 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('M000067-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000067-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 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-M000069" class="method-detail"> - <a name="M000069"></a> + <div id="method-M000072" class="method-detail"> + <a name="M000072"></a> <div class="method-heading"> - <a href="#M000069" class="method-signature"> + <a href="#M000072" 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('M000069-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000069-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 28</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">checkout</span> @@ -201,19 +201,19 @@ </div> </div> - <div id="method-M000071" class="method-detail"> - <a name="M000071"></a> + <div id="method-M000074" class="method-detail"> + <a name="M000074"></a> <div class="method-heading"> - <a href="#M000071" class="method-signature"> + <a href="#M000074" 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('M000071-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000071-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 50</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">create</span> @@ -224,19 +224,19 @@ </div> </div> - <div id="method-M000073" class="method-detail"> - <a name="M000073"></a> + <div id="method-M000076" class="method-detail"> + <a name="M000076"></a> <div class="method-heading"> - <a href="#M000073" class="method-signature"> + <a href="#M000076" 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('M000073-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000073-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 58</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">current</span> @@ -247,19 +247,19 @@ </div> </div> - <div id="method-M000072" class="method-detail"> - <a name="M000072"></a> + <div id="method-M000075" class="method-detail"> + <a name="M000075"></a> <div class="method-heading"> - <a href="#M000072" class="method-signature"> + <a href="#M000075" 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('M000072-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000072-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 54</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">delete</span> @@ -270,19 +270,19 @@ </div> </div> - <div id="method-M000068" class="method-detail"> - <a name="M000068"></a> + <div id="method-M000071" class="method-detail"> + <a name="M000071"></a> <div class="method-heading"> - <a href="#M000068" class="method-signature"> + <a href="#M000071" 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('M000068-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000068-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 23</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">gcommit</span> @@ -294,11 +294,11 @@ </div> </div> - <div id="method-M000070" class="method-detail"> - <a name="M000070"></a> + <div id="method-M000073" class="method-detail"> + <a name="M000073"></a> <div class="method-heading"> - <a href="#M000070" class="method-signature"> + <a href="#M000073" 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#M000070">in_branch</a> do +href="Branch.html#M000073">in_branch</a> do </p> <pre> # create new file @@ -317,8 +317,8 @@ href="Branch.html#M000070">in_branch</a> do end </p> <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('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 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-M000074" class="method-detail"> - <a name="M000074"></a> + <div id="method-M000077" class="method-detail"> + <a name="M000077"></a> <div class="method-heading"> - <a href="#M000074" class="method-signature"> + <a href="#M000077" 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('M000074-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000074-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/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-M000075" class="method-detail"> - <a name="M000075"></a> + <div id="method-M000078" class="method-detail"> + <a name="M000078"></a> <div class="method-heading"> - <a href="#M000075" class="method-signature"> + <a href="#M000078" 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('M000075-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000075-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/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-M000076" class="method-detail"> - <a name="M000076"></a> + <div id="method-M000079" class="method-detail"> + <a name="M000079"></a> <div class="method-heading"> - <a href="#M000076" class="method-signature"> + <a href="#M000079" 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('M000076-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000076-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/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 c9f9f7e..e812dd6 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="#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> + <a href="#M000069">[]</a> + <a href="#M000068">each</a> + <a href="#M000065">local</a> + <a href="#M000064">new</a> + <a href="#M000066">remote</a> + <a href="#M000067">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-M000061" class="method-detail"> - <a name="M000061"></a> + <div id="method-M000064" class="method-detail"> + <a name="M000064"></a> <div class="method-heading"> - <a href="#M000061" class="method-signature"> + <a href="#M000064" 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('M000061-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000061-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 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-M000066" class="method-detail"> - <a name="M000066"></a> + <div id="method-M000069" class="method-detail"> + <a name="M000069"></a> <div class="method-heading"> - <a href="#M000066" class="method-signature"> + <a href="#M000069" 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('M000066-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000066-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/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-M000065" class="method-detail"> - <a name="M000065"></a> + <div id="method-M000068" class="method-detail"> + <a name="M000068"></a> <div class="method-heading"> - <a href="#M000065" class="method-signature"> + <a href="#M000068" 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('M000065-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000065-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/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-M000062" class="method-detail"> - <a name="M000062"></a> + <div id="method-M000065" class="method-detail"> + <a name="M000065"></a> <div class="method-heading"> - <a href="#M000062" class="method-signature"> + <a href="#M000065" 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('M000062-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000062-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 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-M000063" class="method-detail"> - <a name="M000063"></a> + <div id="method-M000066" class="method-detail"> + <a name="M000066"></a> <div class="method-heading"> - <a href="#M000063" class="method-signature"> + <a href="#M000066" 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('M000063-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000063-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 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-M000064" class="method-detail"> - <a name="M000064"></a> + <div id="method-M000067" class="method-detail"> + <a name="M000067"></a> <div class="method-heading"> - <a href="#M000064" class="method-signature"> + <a href="#M000067" 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('M000064-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000064-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/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 a57584c..63ebee2 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="#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> + <a href="#M000162">[]</a> + <a href="#M000157">deletions</a> + <a href="#M000163">each</a> + <a href="#M000158">insertions</a> + <a href="#M000156">lines</a> + <a href="#M000153">new</a> + <a href="#M000160">patch</a> + <a href="#M000154">path</a> + <a href="#M000155">size</a> + <a href="#M000159">stats</a> + <a href="#M000161">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-M000136" class="method-detail"> - <a name="M000136"></a> + <div id="method-M000153" class="method-detail"> + <a name="M000153"></a> <div class="method-heading"> - <a href="#M000136" class="method-signature"> + <a href="#M000153" 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('M000136-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000136-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/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-M000145" class="method-detail"> - <a name="M000145"></a> + <div id="method-M000162" class="method-detail"> + <a name="M000162"></a> <div class="method-heading"> - <a href="#M000145" class="method-signature"> + <a href="#M000162" 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('M000145-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000145-source"> + onclick="toggleCode('M000162-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000162-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-M000140" class="method-detail"> - <a name="M000140"></a> + <div id="method-M000157" class="method-detail"> + <a name="M000157"></a> <div class="method-heading"> - <a href="#M000140" class="method-signature"> + <a href="#M000157" 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('M000140-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000140-source"> + onclick="toggleCode('M000157-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000157-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-M000146" class="method-detail"> - <a name="M000146"></a> + <div id="method-M000163" class="method-detail"> + <a name="M000163"></a> <div class="method-heading"> - <a href="#M000146" class="method-signature"> + <a href="#M000163" 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('M000146-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000146-source"> + onclick="toggleCode('M000163-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000163-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-M000141" class="method-detail"> - <a name="M000141"></a> + <div id="method-M000158" class="method-detail"> + <a name="M000158"></a> <div class="method-heading"> - <a href="#M000141" class="method-signature"> + <a href="#M000158" 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('M000141-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000141-source"> + onclick="toggleCode('M000158-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000158-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-M000139" class="method-detail"> - <a name="M000139"></a> + <div id="method-M000156" class="method-detail"> + <a name="M000156"></a> <div class="method-heading"> - <a href="#M000139" class="method-signature"> + <a href="#M000156" 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('M000139-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000139-source"> + onclick="toggleCode('M000156-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000156-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-M000143" class="method-detail"> - <a name="M000143"></a> + <div id="method-M000160" class="method-detail"> + <a name="M000160"></a> <div class="method-heading"> - <a href="#M000143" class="method-signature"> + <a href="#M000160" 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('M000143-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000143-source"> + onclick="toggleCode('M000160-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000160-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-M000137" class="method-detail"> - <a name="M000137"></a> + <div id="method-M000154" class="method-detail"> + <a name="M000154"></a> <div class="method-heading"> - <a href="#M000137" class="method-signature"> + <a href="#M000154" 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('M000137-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000137-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/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-M000138" class="method-detail"> - <a name="M000138"></a> + <div id="method-M000155" class="method-detail"> + <a name="M000155"></a> <div class="method-heading"> - <a href="#M000138" class="method-signature"> + <a href="#M000155" 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('M000138-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000138-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/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-M000142" class="method-detail"> - <a name="M000142"></a> + <div id="method-M000159" class="method-detail"> + <a name="M000159"></a> <div class="method-heading"> - <a href="#M000142" class="method-signature"> + <a href="#M000159" 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('M000142-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000142-source"> + onclick="toggleCode('M000159-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000159-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-M000144" class="method-detail"> - <a name="M000144"></a> + <div id="method-M000161" class="method-detail"> + <a name="M000161"></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#M000143">patch</a> +Alias for <a href="Diff.html#M000160">patch</a> </p> </div> </div> diff --git a/doc/classes/Git/Diff/DiffFile.html b/doc/classes/Git/Diff/DiffFile.html index f13fd79..39139e5 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="#M000148">blob</a> - <a href="#M000147">new</a> + <a href="#M000165">blob</a> + <a href="#M000164">new</a> </div> </div> @@ -147,19 +147,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-M000164" class="method-detail"> + <a name="M000164"></a> <div class="method-heading"> - <a href="#M000147" class="method-signature"> + <a href="#M000164" 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('M000147-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000147-source"> + onclick="toggleCode('M000164-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000164-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-M000148" class="method-detail"> - <a name="M000148"></a> + <div id="method-M000165" class="method-detail"> + <a name="M000165"></a> <div class="method-heading"> - <a href="#M000148" class="method-signature"> + <a href="#M000165" 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('M000148-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000148-source"> + onclick="toggleCode('M000165-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000165-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 bb507b4..9c4992e 100644 --- a/doc/classes/Git/Lib.html +++ b/doc/classes/Git/Lib.html @@ -88,43 +88,45 @@ <h3 class="section-bar">Methods</h3> <div class="name-list"> - <a href="#M000044">add</a> - <a href="#M000033">branch_current</a> - <a href="#M000049">branch_delete</a> - <a href="#M000048">branch_new</a> - <a href="#M000032">branches_all</a> - <a href="#M000050">checkout</a> - <a href="#M000026">clone</a> - <a href="#M000046">commit</a> - <a href="#M000041">config_get</a> - <a href="#M000042">config_list</a> - <a href="#M000040">config_remote</a> - <a href="#M000043">config_set</a> - <a href="#M000037">diff_files</a> - <a href="#M000035">diff_full</a> - <a href="#M000038">diff_index</a> - <a href="#M000036">diff_stats</a> - <a href="#M000057">fetch</a> - <a href="#M000034">grep</a> - <a href="#M000025">init</a> - <a href="#M000027">log_commits</a> - <a href="#M000039">ls_files</a> - <a href="#M000051">merge</a> - <a href="#M000024">new</a> - <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="#M000060">repack</a> - <a href="#M000047">reset</a> - <a href="#M000028">revparse</a> - <a href="#M000056">tag</a> - <a href="#M000059">tag_sha</a> - <a href="#M000055">tags</a> + <a href="#M000047">add</a> + <a href="#M000036">branch_current</a> + <a href="#M000052">branch_delete</a> + <a href="#M000051">branch_new</a> + <a href="#M000035">branches_all</a> + <a href="#M000053">checkout</a> + <a href="#M000027">clone</a> + <a href="#M000049">commit</a> + <a href="#M000032">commit_data</a> + <a href="#M000044">config_get</a> + <a href="#M000045">config_list</a> + <a href="#M000043">config_remote</a> + <a href="#M000046">config_set</a> + <a href="#M000040">diff_files</a> + <a href="#M000038">diff_full</a> + <a href="#M000041">diff_index</a> + <a href="#M000039">diff_stats</a> + <a href="#M000060">fetch</a> + <a href="#M000037">grep</a> + <a href="#M000026">init</a> + <a href="#M000028">log_commits</a> + <a href="#M000042">ls_files</a> + <a href="#M000034">ls_tree</a> + <a href="#M000054">merge</a> + <a href="#M000025">new</a> + <a href="#M000033">object_contents</a> + <a href="#M000031">object_size</a> + <a href="#M000030">object_type</a> + <a href="#M000061">push</a> + <a href="#M000055">remote_add</a> + <a href="#M000056">remote_remove</a> + <a href="#M000057">remotes</a> + <a href="#M000048">remove</a> + <a href="#M000063">repack</a> + <a href="#M000050">reset</a> + <a href="#M000029">revparse</a> + <a href="#M000059">tag</a> + <a href="#M000062">tag_sha</a> + <a href="#M000058">tags</a> </div> </div> @@ -146,19 +148,19 @@ <div id="methods"> <h3 class="section-bar">Public Class methods</h3> - <div id="method-M000024" class="method-detail"> - <a name="M000024"></a> + <div id="method-M000025" class="method-detail"> + <a name="M000025"></a> <div class="method-heading"> - <a href="#M000024" class="method-signature"> + <a href="#M000025" class="method-signature"> <span class="method-name">new</span><span class="method-args">(base = nil)</span> </a> </div> <div class="method-description"> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000024-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000024-source"> + onclick="toggleCode('M000025-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000025-source"> <pre> <span class="ruby-comment cmt"># File lib/git/lib.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-keyword kw">nil</span>) @@ -179,21 +181,21 @@ <h3 class="section-bar">Public Instance methods</h3> - <div id="method-M000044" class="method-detail"> - <a name="M000044"></a> + <div id="method-M000047" class="method-detail"> + <a name="M000047"></a> <div class="method-heading"> - <a href="#M000044" class="method-signature"> + <a href="#M000047" class="method-signature"> <span class="method-name">add</span><span class="method-args">(path = '.')</span> </a> </div> <div class="method-description"> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000044-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000044-source"> + onclick="toggleCode('M000047-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000047-source"> <pre> -<span class="ruby-comment cmt"># File lib/git/lib.rb, line 215</span> +<span class="ruby-comment cmt"># File lib/git/lib.rb, line 251</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>) <span class="ruby-identifier">path</span> = <span class="ruby-identifier">path</span>.<span class="ruby-identifier">join</span>(<span class="ruby-value str">' '</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">path</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">Array</span>) <span class="ruby-identifier">command</span>(<span class="ruby-value str">'add'</span>, <span class="ruby-identifier">path</span>) @@ -203,21 +205,21 @@ </div> </div> - <div id="method-M000033" class="method-detail"> - <a name="M000033"></a> + <div id="method-M000036" class="method-detail"> + <a name="M000036"></a> <div class="method-heading"> - <a href="#M000033" class="method-signature"> + <a href="#M000036" class="method-signature"> <span class="method-name">branch_current</span><span class="method-args">()</span> </a> </div> <div class="method-description"> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000033-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000033-source"> + onclick="toggleCode('M000036-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000036-source"> <pre> -<span class="ruby-comment cmt"># File lib/git/lib.rb, line 96</span> +<span class="ruby-comment cmt"># File lib/git/lib.rb, line 132</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">branch_current</span> <span class="ruby-identifier">branches_all</span>.<span class="ruby-identifier">select</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">b</span><span class="ruby-operator">|</span> <span class="ruby-identifier">b</span>[<span class="ruby-value">1</span>] }.<span class="ruby-identifier">first</span>[<span class="ruby-value">0</span>] <span class="ruby-keyword kw">rescue</span> <span class="ruby-keyword kw">nil</span> <span class="ruby-keyword kw">end</span> @@ -226,21 +228,21 @@ </div> </div> - <div id="method-M000049" class="method-detail"> - <a name="M000049"></a> + <div id="method-M000052" class="method-detail"> + <a name="M000052"></a> <div class="method-heading"> - <a href="#M000049" class="method-signature"> + <a href="#M000052" class="method-signature"> <span class="method-name">branch_delete</span><span class="method-args">(branch)</span> </a> </div> <div class="method-description"> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000049-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000049-source"> + onclick="toggleCode('M000052-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000052-source"> <pre> -<span class="ruby-comment cmt"># File lib/git/lib.rb, line 248</span> +<span class="ruby-comment cmt"># File lib/git/lib.rb, line 284</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">branch_delete</span>(<span class="ruby-identifier">branch</span>) <span class="ruby-identifier">command</span>(<span class="ruby-value str">'branch'</span>, [<span class="ruby-value str">'-d'</span>, <span class="ruby-identifier">branch</span>]) <span class="ruby-keyword kw">end</span> @@ -249,21 +251,21 @@ </div> </div> - <div id="method-M000048" class="method-detail"> - <a name="M000048"></a> + <div id="method-M000051" class="method-detail"> + <a name="M000051"></a> <div class="method-heading"> - <a href="#M000048" class="method-signature"> + <a href="#M000051" class="method-signature"> <span class="method-name">branch_new</span><span class="method-args">(branch)</span> </a> </div> <div class="method-description"> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000048-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000048-source"> + onclick="toggleCode('M000051-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000051-source"> <pre> -<span class="ruby-comment cmt"># File lib/git/lib.rb, line 244</span> +<span class="ruby-comment cmt"># File lib/git/lib.rb, line 280</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">branch_new</span>(<span class="ruby-identifier">branch</span>) <span class="ruby-identifier">command</span>(<span class="ruby-value str">'branch'</span>, <span class="ruby-identifier">branch</span>) <span class="ruby-keyword kw">end</span> @@ -272,21 +274,21 @@ </div> </div> - <div id="method-M000032" class="method-detail"> - <a name="M000032"></a> + <div id="method-M000035" class="method-detail"> + <a name="M000035"></a> <div class="method-heading"> - <a href="#M000032" class="method-signature"> + <a href="#M000035" class="method-signature"> <span class="method-name">branches_all</span><span class="method-args">()</span> </a> </div> <div class="method-description"> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000032-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000032-source"> + onclick="toggleCode('M000035-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000035-source"> <pre> -<span class="ruby-comment cmt"># File lib/git/lib.rb, line 86</span> +<span class="ruby-comment cmt"># File lib/git/lib.rb, line 122</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">branches_all</span> <span class="ruby-identifier">arr</span> = [] <span class="ruby-identifier">command_lines</span>(<span class="ruby-value str">'branch'</span>, <span class="ruby-value str">'-a'</span>).<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">b</span><span class="ruby-operator">|</span> @@ -301,21 +303,21 @@ </div> </div> - <div id="method-M000050" class="method-detail"> - <a name="M000050"></a> + <div id="method-M000053" class="method-detail"> + <a name="M000053"></a> <div class="method-heading"> - <a href="#M000050" class="method-signature"> + <a href="#M000053" class="method-signature"> <span class="method-name">checkout</span><span class="method-args">(branch, opts = {})</span> </a> </div> <div class="method-description"> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000050-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000050-source"> + onclick="toggleCode('M000053-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000053-source"> <pre> -<span class="ruby-comment cmt"># File lib/git/lib.rb, line 252</span> +<span class="ruby-comment cmt"># File lib/git/lib.rb, line 288</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-identifier">arr_opts</span> = [] <span class="ruby-identifier">arr_opts</span> <span class="ruby-operator"><<</span> <span class="ruby-value str">'-f'</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">opts</span>[<span class="ruby-identifier">:force</span>] @@ -328,11 +330,11 @@ </div> </div> - <div id="method-M000026" class="method-detail"> - <a name="M000026"></a> + <div id="method-M000027" class="method-detail"> + <a name="M000027"></a> <div class="method-heading"> - <a href="#M000026" class="method-signature"> + <a href="#M000027" class="method-signature"> <span class="method-name">clone</span><span class="method-args">(repository, name, opts = {})</span> </a> </div> @@ -358,8 +360,8 @@ accepts options: TODO - make this work with SSH password or auth_key </p> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000026-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000026-source"> + onclick="toggleCode('M000027-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000027-source"> <pre> <span class="ruby-comment cmt"># File lib/git/lib.rb, line 40</span> <span class="ruby-keyword kw">def</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> = {}) @@ -381,21 +383,21 @@ TODO - make this work with SSH password or auth_key </div> </div> - <div id="method-M000046" class="method-detail"> - <a name="M000046"></a> + <div id="method-M000049" class="method-detail"> + <a name="M000049"></a> <div class="method-heading"> - <a href="#M000046" class="method-signature"> + <a href="#M000049" 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('M000046-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000046-source"> + onclick="toggleCode('M000049-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000049-source"> <pre> -<span class="ruby-comment cmt"># File lib/git/lib.rb, line 230</span> +<span class="ruby-comment cmt"># File lib/git/lib.rb, line 266</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> = {}) <span class="ruby-identifier">arr_opts</span> = [<span class="ruby-node">"-m '#{message}'"</span>] <span class="ruby-identifier">arr_opts</span> <span class="ruby-operator"><<</span> <span class="ruby-value str">'-a'</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">opts</span>[<span class="ruby-identifier">:add_all</span>] @@ -406,21 +408,68 @@ TODO - make this work with SSH password or auth_key </div> </div> - <div id="method-M000041" class="method-detail"> - <a name="M000041"></a> + <div id="method-M000032" class="method-detail"> + <a name="M000032"></a> <div class="method-heading"> - <a href="#M000041" class="method-signature"> + <a href="#M000032" class="method-signature"> + <span class="method-name">commit_data</span><span class="method-args">(sha)</span> + </a> + </div> + + <div class="method-description"> + <p> +returns useful array of raw commit object data +</p> + <p><a class="source-toggle" href="#" + onclick="toggleCode('M000032-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000032-source"> +<pre> +<span class="ruby-comment cmt"># File lib/git/lib.rb, line 83</span> + <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">commit_data</span>(<span class="ruby-identifier">sha</span>) + <span class="ruby-identifier">in_message</span> = <span class="ruby-keyword kw">false</span> + + <span class="ruby-identifier">hsh</span> = {<span class="ruby-value str">'message'</span> =<span class="ruby-operator">></span> <span class="ruby-value str">''</span>, <span class="ruby-value str">'parent'</span> =<span class="ruby-operator">></span> []} + <span class="ruby-identifier">command_lines</span>(<span class="ruby-value str">'cat-file'</span>, [<span class="ruby-value str">'commit'</span>, <span class="ruby-identifier">sha</span>.<span class="ruby-identifier">to_s</span>]).<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">line</span><span class="ruby-operator">|</span> + <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">in_message</span> + <span class="ruby-identifier">hsh</span>[<span class="ruby-value str">'message'</span>] <span class="ruby-operator">+=</span> <span class="ruby-identifier">line</span> <span class="ruby-operator">+</span> <span class="ruby-value str">"\n"</span> + <span class="ruby-keyword kw">end</span> + + <span class="ruby-keyword kw">if</span> (<span class="ruby-identifier">line</span> <span class="ruby-operator">!=</span> <span class="ruby-value str">''</span>) <span class="ruby-operator">&&</span> <span class="ruby-operator">!</span><span class="ruby-identifier">in_message</span> + <span class="ruby-identifier">data</span> = <span class="ruby-identifier">line</span>.<span class="ruby-identifier">split</span> + <span class="ruby-identifier">key</span> = <span class="ruby-identifier">data</span>.<span class="ruby-identifier">shift</span> + <span class="ruby-identifier">value</span> = <span class="ruby-identifier">data</span>.<span class="ruby-identifier">join</span>(<span class="ruby-value str">' '</span>) + <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">key</span> <span class="ruby-operator">==</span> <span class="ruby-value str">'parent'</span> + <span class="ruby-identifier">hsh</span>[<span class="ruby-identifier">key</span>] <span class="ruby-operator"><<</span> <span class="ruby-identifier">value</span> + <span class="ruby-keyword kw">else</span> + <span class="ruby-identifier">hsh</span>[<span class="ruby-identifier">key</span>] = <span class="ruby-identifier">value</span> + <span class="ruby-keyword kw">end</span> + <span class="ruby-keyword kw">else</span> + <span class="ruby-identifier">in_message</span> = <span class="ruby-keyword kw">true</span> + <span class="ruby-keyword kw">end</span> + <span class="ruby-keyword kw">end</span> + <span class="ruby-identifier">hsh</span> + <span class="ruby-keyword kw">end</span> +</pre> + </div> + </div> + </div> + + <div id="method-M000044" class="method-detail"> + <a name="M000044"></a> + + <div class="method-heading"> + <a href="#M000044" class="method-signature"> <span class="method-name">config_get</span><span class="method-args">(name)</span> </a> </div> <div class="method-description"> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000041-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000041-source"> + onclick="toggleCode('M000044-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000044-source"> <pre> -<span class="ruby-comment cmt"># File lib/git/lib.rb, line 196</span> +<span class="ruby-comment cmt"># File lib/git/lib.rb, line 232</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">config_get</span>(<span class="ruby-identifier">name</span>) <span class="ruby-identifier">command</span>(<span class="ruby-value str">'config'</span>, [<span class="ruby-value str">'--get'</span>, <span class="ruby-identifier">name</span>]) <span class="ruby-keyword kw">end</span> @@ -429,21 +478,21 @@ TODO - make this work with SSH password or auth_key </div> </div> - <div id="method-M000042" class="method-detail"> - <a name="M000042"></a> + <div id="method-M000045" class="method-detail"> + <a name="M000045"></a> <div class="method-heading"> - <a href="#M000042" class="method-signature"> + <a href="#M000045" class="method-signature"> <span class="method-name">config_list</span><span class="method-args">()</span> </a> </div> <div class="method-description"> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000042-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000042-source"> + onclick="toggleCode('M000045-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000045-source"> <pre> -<span class="ruby-comment cmt"># File lib/git/lib.rb, line 200</span> +<span class="ruby-comment cmt"># File lib/git/lib.rb, line 236</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">config_list</span> <span class="ruby-identifier">hsh</span> = {} <span class="ruby-identifier">command_lines</span>(<span class="ruby-value str">'config'</span>, [<span class="ruby-value str">'--list'</span>]).<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">line</span><span class="ruby-operator">|</span> @@ -457,21 +506,21 @@ TODO - make this work with SSH password or auth_key </div> </div> - <div id="method-M000040" class="method-detail"> - <a name="M000040"></a> + <div id="method-M000043" class="method-detail"> + <a name="M000043"></a> <div class="method-heading"> - <a href="#M000040" class="method-signature"> + <a href="#M000043" class="method-signature"> <span class="method-name">config_remote</span><span class="method-args">(name)</span> </a> </div> <div class="method-description"> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000040-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000040-source"> + onclick="toggleCode('M000043-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000043-source"> <pre> -<span class="ruby-comment cmt"># File lib/git/lib.rb, line 187</span> +<span class="ruby-comment cmt"># File lib/git/lib.rb, line 223</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">config_remote</span>(<span class="ruby-identifier">name</span>) <span class="ruby-identifier">hsh</span> = {} <span class="ruby-identifier">command_lines</span>(<span class="ruby-value str">'config'</span>, [<span class="ruby-value str">'--get-regexp'</span>, <span class="ruby-node">"remote.#{name}"</span>]).<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">line</span><span class="ruby-operator">|</span> @@ -485,11 +534,11 @@ TODO - make this work with SSH password or auth_key </div> </div> - <div id="method-M000043" class="method-detail"> - <a name="M000043"></a> + <div id="method-M000046" class="method-detail"> + <a name="M000046"></a> <div class="method-heading"> - <a href="#M000043" class="method-signature"> + <a href="#M000046" class="method-signature"> <span class="method-name">config_set</span><span class="method-args">(name, value)</span> </a> </div> @@ -499,10 +548,10 @@ TODO - make this work with SSH password or auth_key WRITE COMMANDS ## </p> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000043-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000043-source"> + onclick="toggleCode('M000046-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000046-source"> <pre> -<span class="ruby-comment cmt"># File lib/git/lib.rb, line 211</span> +<span class="ruby-comment cmt"># File lib/git/lib.rb, line 247</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">config_set</span>(<span class="ruby-identifier">name</span>, <span class="ruby-identifier">value</span>) <span class="ruby-identifier">command</span>(<span class="ruby-value str">'config'</span>, [<span class="ruby-identifier">name</span>, <span class="ruby-node">"'#{value}'"</span>]) <span class="ruby-keyword kw">end</span> @@ -511,11 +560,11 @@ WRITE COMMANDS ## </div> </div> - <div id="method-M000037" class="method-detail"> - <a name="M000037"></a> + <div id="method-M000040" class="method-detail"> + <a name="M000040"></a> <div class="method-heading"> - <a href="#M000037" class="method-signature"> + <a href="#M000040" class="method-signature"> <span class="method-name">diff_files</span><span class="method-args">()</span> </a> </div> @@ -525,10 +574,10 @@ WRITE COMMANDS ## compares the index and the working directory </p> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000037-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000037-source"> + onclick="toggleCode('M000040-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000040-source"> <pre> -<span class="ruby-comment cmt"># File lib/git/lib.rb, line 153</span> +<span class="ruby-comment cmt"># File lib/git/lib.rb, line 189</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">diff_files</span> <span class="ruby-identifier">hsh</span> = {} <span class="ruby-identifier">command_lines</span>(<span class="ruby-value str">'diff-files'</span>).<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">line</span><span class="ruby-operator">|</span> @@ -544,21 +593,21 @@ compares the index and the working directory </div> </div> - <div id="method-M000035" class="method-detail"> - <a name="M000035"></a> + <div id="method-M000038" class="method-detail"> + <a name="M000038"></a> <div class="method-heading"> - <a href="#M000035" class="method-signature"> + <a href="#M000038" class="method-signature"> <span class="method-name">diff_full</span><span class="method-args">(obj1 = 'HEAD', obj2 = nil, opts = {})</span> </a> </div> <div class="method-description"> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000035-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000035-source"> + onclick="toggleCode('M000038-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000038-source"> <pre> -<span class="ruby-comment cmt"># File lib/git/lib.rb, line 123</span> +<span class="ruby-comment cmt"># File lib/git/lib.rb, line 159</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">diff_full</span>(<span class="ruby-identifier">obj1</span> = <span class="ruby-value str">'HEAD'</span>, <span class="ruby-identifier">obj2</span> = <span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">opts</span> = {}) <span class="ruby-identifier">diff_opts</span> = [<span class="ruby-value str">'-p'</span>] <span class="ruby-identifier">diff_opts</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">obj1</span> @@ -572,11 +621,11 @@ compares the index and the working directory </div> </div> - <div id="method-M000038" class="method-detail"> - <a name="M000038"></a> + <div id="method-M000041" class="method-detail"> + <a name="M000041"></a> <div class="method-heading"> - <a href="#M000038" class="method-signature"> + <a href="#M000041" class="method-signature"> <span class="method-name">diff_index</span><span class="method-args">(treeish)</span> </a> </div> @@ -586,10 +635,10 @@ compares the index and the working directory compares the index and the repository </p> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000038-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000038-source"> + onclick="toggleCode('M000041-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000041-source"> <pre> -<span class="ruby-comment cmt"># File lib/git/lib.rb, line 165</span> +<span class="ruby-comment cmt"># File lib/git/lib.rb, line 201</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">diff_index</span>(<span class="ruby-identifier">treeish</span>) <span class="ruby-identifier">hsh</span> = {} <span class="ruby-identifier">command_lines</span>(<span class="ruby-value str">'diff-index'</span>, <span class="ruby-identifier">treeish</span>).<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">line</span><span class="ruby-operator">|</span> @@ -605,21 +654,21 @@ compares the index and the repository </div> </div> - <div id="method-M000036" class="method-detail"> - <a name="M000036"></a> + <div id="method-M000039" class="method-detail"> + <a name="M000039"></a> <div class="method-heading"> - <a href="#M000036" class="method-signature"> + <a href="#M000039" class="method-signature"> <span class="method-name">diff_stats</span><span class="method-args">(obj1 = 'HEAD', obj2 = nil, opts = {})</span> </a> </div> <div class="method-description"> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000036-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000036-source"> + onclick="toggleCode('M000039-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000039-source"> <pre> -<span class="ruby-comment cmt"># File lib/git/lib.rb, line 132</span> +<span class="ruby-comment cmt"># File lib/git/lib.rb, line 168</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">diff_stats</span>(<span class="ruby-identifier">obj1</span> = <span class="ruby-value str">'HEAD'</span>, <span class="ruby-identifier">obj2</span> = <span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">opts</span> = {}) <span class="ruby-identifier">diff_opts</span> = [<span class="ruby-value str">'--numstat'</span>] <span class="ruby-identifier">diff_opts</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">obj1</span> @@ -644,21 +693,21 @@ compares the index and the repository </div> </div> - <div id="method-M000057" class="method-detail"> - <a name="M000057"></a> + <div id="method-M000060" class="method-detail"> + <a name="M000060"></a> <div class="method-heading"> - <a href="#M000057" class="method-signature"> + <a href="#M000060" class="method-signature"> <span class="method-name">fetch</span><span class="method-args">(remote)</span> </a> </div> <div class="method-description"> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000057-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000057-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 295</span> +<span class="ruby-comment cmt"># File lib/git/lib.rb, line 331</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">fetch</span>(<span class="ruby-identifier">remote</span>) <span class="ruby-identifier">command</span>(<span class="ruby-value str">'fetch'</span>, <span class="ruby-identifier">remote</span>.<span class="ruby-identifier">to_s</span>) <span class="ruby-keyword kw">end</span> @@ -667,11 +716,11 @@ compares the index and the repository </div> </div> - <div id="method-M000034" class="method-detail"> - <a name="M000034"></a> + <div id="method-M000037" class="method-detail"> + <a name="M000037"></a> <div class="method-heading"> - <a href="#M000034" class="method-signature"> + <a href="#M000037" class="method-signature"> <span class="method-name">grep</span><span class="method-args">(string, opts = {})</span> </a> </div> @@ -689,10 +738,10 @@ returns hash </dd> </dl> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000034-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000034-source"> + onclick="toggleCode('M000037-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000037-source"> <pre> -<span class="ruby-comment cmt"># File lib/git/lib.rb, line 104</span> +<span class="ruby-comment cmt"># File lib/git/lib.rb, line 140</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">grep</span>(<span class="ruby-identifier">string</span>, <span class="ruby-identifier">opts</span> = {}) <span class="ruby-identifier">opts</span>[<span class="ruby-identifier">:object</span>] = <span class="ruby-value str">'HEAD'</span> <span class="ruby-keyword kw">if</span> <span class="ruby-operator">!</span><span class="ruby-identifier">opts</span>[<span class="ruby-identifier">:object</span>] @@ -716,19 +765,19 @@ returns hash </div> </div> - <div id="method-M000025" class="method-detail"> - <a name="M000025"></a> + <div id="method-M000026" class="method-detail"> + <a name="M000026"></a> <div class="method-heading"> - <a href="#M000025" class="method-signature"> + <a href="#M000026" class="method-signature"> <span class="method-name">init</span><span class="method-args">()</span> </a> </div> <div class="method-description"> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000025-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000025-source"> + onclick="toggleCode('M000026-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000026-source"> <pre> <span class="ruby-comment cmt"># File lib/git/lib.rb, line 25</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">init</span> @@ -739,11 +788,11 @@ returns hash </div> </div> - <div id="method-M000027" class="method-detail"> - <a name="M000027"></a> + <div id="method-M000028" class="method-detail"> + <a name="M000028"></a> <div class="method-heading"> - <a href="#M000027" class="method-signature"> + <a href="#M000028" class="method-signature"> <span class="method-name">log_commits</span><span class="method-args">(opts = {})</span> </a> </div> @@ -753,8 +802,8 @@ returns hash READ COMMANDS ## </p> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000027-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000027-source"> + onclick="toggleCode('M000028-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000028-source"> <pre> <span class="ruby-comment cmt"># File lib/git/lib.rb, line 59</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">log_commits</span>(<span class="ruby-identifier">opts</span> = {}) @@ -772,21 +821,21 @@ READ COMMANDS ## </div> </div> - <div id="method-M000039" class="method-detail"> - <a name="M000039"></a> + <div id="method-M000042" class="method-detail"> + <a name="M000042"></a> <div class="method-heading"> - <a href="#M000039" class="method-signature"> + <a href="#M000042" class="method-signature"> <span class="method-name">ls_files</span><span class="method-args">()</span> </a> </div> <div class="method-description"> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000039-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000039-source"> + onclick="toggleCode('M000042-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000042-source"> <pre> -<span class="ruby-comment cmt"># File lib/git/lib.rb, line 176</span> +<span class="ruby-comment cmt"># File lib/git/lib.rb, line 212</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">ls_files</span> <span class="ruby-identifier">hsh</span> = {} <span class="ruby-identifier">command_lines</span>(<span class="ruby-value str">'ls-files'</span>, <span class="ruby-value str">'--stage'</span>).<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">line</span><span class="ruby-operator">|</span> @@ -801,21 +850,50 @@ READ COMMANDS ## </div> </div> - <div id="method-M000051" class="method-detail"> - <a name="M000051"></a> + <div id="method-M000034" class="method-detail"> + <a name="M000034"></a> <div class="method-heading"> - <a href="#M000051" class="method-signature"> + <a href="#M000034" class="method-signature"> + <span class="method-name">ls_tree</span><span class="method-args">(sha)</span> + </a> + </div> + + <div class="method-description"> + <p><a class="source-toggle" href="#" + onclick="toggleCode('M000034-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000034-source"> +<pre> +<span class="ruby-comment cmt"># File lib/git/lib.rb, line 112</span> + <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">ls_tree</span>(<span class="ruby-identifier">sha</span>) + <span class="ruby-identifier">data</span> = {<span class="ruby-value str">'blob'</span> =<span class="ruby-operator">></span> {}, <span class="ruby-value str">'tree'</span> =<span class="ruby-operator">></span> {}} + <span class="ruby-identifier">command_lines</span>(<span class="ruby-value str">'ls-tree'</span>, <span class="ruby-identifier">sha</span>.<span class="ruby-identifier">to_s</span>).<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">line</span><span class="ruby-operator">|</span> + (<span class="ruby-identifier">info</span>, <span class="ruby-identifier">filenm</span>) = <span class="ruby-identifier">line</span>.<span class="ruby-identifier">split</span>(<span class="ruby-value str">"\t"</span>) + (<span class="ruby-identifier">mode</span>, <span class="ruby-identifier">type</span>, <span class="ruby-identifier">sha</span>) = <span class="ruby-identifier">info</span>.<span class="ruby-identifier">split</span> + <span class="ruby-identifier">data</span>[<span class="ruby-identifier">type</span>][<span class="ruby-identifier">filenm</span>] = {<span class="ruby-identifier">:mode</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">mode</span>, <span class="ruby-identifier">:sha</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">sha</span>} + <span class="ruby-keyword kw">end</span> + <span class="ruby-identifier">data</span> + <span class="ruby-keyword kw">end</span> +</pre> + </div> + </div> + </div> + + <div id="method-M000054" class="method-detail"> + <a name="M000054"></a> + + <div class="method-heading"> + <a href="#M000054" class="method-signature"> <span class="method-name">merge</span><span class="method-args">(branch, message = nil)</span> </a> </div> <div class="method-description"> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000051-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000051-source"> + onclick="toggleCode('M000054-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000054-source"> <pre> -<span class="ruby-comment cmt"># File lib/git/lib.rb, line 260</span> +<span class="ruby-comment cmt"># File lib/git/lib.rb, line 296</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-keyword kw">nil</span>) <span class="ruby-identifier">arr_opts</span> = [] <span class="ruby-identifier">arr_opts</span> <span class="ruby-operator"><<</span> [<span class="ruby-node">"-m '#{message}'"</span>] <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">message</span> @@ -827,21 +905,21 @@ READ COMMANDS ## </div> </div> - <div id="method-M000031" class="method-detail"> - <a name="M000031"></a> + <div id="method-M000033" class="method-detail"> + <a name="M000033"></a> <div class="method-heading"> - <a href="#M000031" class="method-signature"> + <a href="#M000033" class="method-signature"> <span class="method-name">object_contents</span><span class="method-args">(sha)</span> </a> </div> <div class="method-description"> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000031-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000031-source"> + onclick="toggleCode('M000033-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000033-source"> <pre> -<span class="ruby-comment cmt"># File lib/git/lib.rb, line 82</span> +<span class="ruby-comment cmt"># File lib/git/lib.rb, line 108</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">object_contents</span>(<span class="ruby-identifier">sha</span>) <span class="ruby-identifier">command</span>(<span class="ruby-value str">'cat-file'</span>, [<span class="ruby-value str">'-p'</span>, <span class="ruby-identifier">sha</span>]) <span class="ruby-keyword kw">end</span> @@ -850,19 +928,19 @@ READ COMMANDS ## </div> </div> - <div id="method-M000030" class="method-detail"> - <a name="M000030"></a> + <div id="method-M000031" class="method-detail"> + <a name="M000031"></a> <div class="method-heading"> - <a href="#M000030" class="method-signature"> + <a href="#M000031" class="method-signature"> <span class="method-name">object_size</span><span class="method-args">(sha)</span> </a> </div> <div class="method-description"> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000030-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000030-source"> + onclick="toggleCode('M000031-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000031-source"> <pre> <span class="ruby-comment cmt"># File lib/git/lib.rb, line 78</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">object_size</span>(<span class="ruby-identifier">sha</span>) @@ -873,19 +951,19 @@ READ COMMANDS ## </div> </div> - <div id="method-M000029" class="method-detail"> - <a name="M000029"></a> + <div id="method-M000030" class="method-detail"> + <a name="M000030"></a> <div class="method-heading"> - <a href="#M000029" class="method-signature"> + <a href="#M000030" class="method-signature"> <span class="method-name">object_type</span><span class="method-args">(sha)</span> </a> </div> <div class="method-description"> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000029-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000029-source"> + onclick="toggleCode('M000030-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000030-source"> <pre> <span class="ruby-comment cmt"># File lib/git/lib.rb, line 74</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">object_type</span>(<span class="ruby-identifier">sha</span>) @@ -896,21 +974,21 @@ READ COMMANDS ## </div> </div> - <div id="method-M000058" class="method-detail"> - <a name="M000058"></a> + <div id="method-M000061" class="method-detail"> + <a name="M000061"></a> <div class="method-heading"> - <a href="#M000058" class="method-signature"> + <a href="#M000061" 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"> + 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/lib.rb, line 299</span> +<span class="ruby-comment cmt"># File lib/git/lib.rb, line 335</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> @@ -919,21 +997,21 @@ READ COMMANDS ## </div> </div> - <div id="method-M000052" class="method-detail"> - <a name="M000052"></a> + <div id="method-M000055" class="method-detail"> + <a name="M000055"></a> <div class="method-heading"> - <a href="#M000052" class="method-signature"> + <a href="#M000055" class="method-signature"> <span class="method-name">remote_add</span><span class="method-args">(name, url, opts = {})</span> </a> </div> <div class="method-description"> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000052-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000052-source"> + onclick="toggleCode('M000055-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000055-source"> <pre> -<span class="ruby-comment cmt"># File lib/git/lib.rb, line 267</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">remote_add</span>(<span class="ruby-identifier">name</span>, <span class="ruby-identifier">url</span>, <span class="ruby-identifier">opts</span> = {}) <span class="ruby-identifier">arr_opts</span> = [<span class="ruby-value str">'add'</span>] <span class="ruby-identifier">arr_opts</span> <span class="ruby-operator"><<</span> <span class="ruby-value str">'-f'</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">opts</span>[<span class="ruby-identifier">:with_fetch</span>] @@ -947,11 +1025,11 @@ READ COMMANDS ## </div> </div> - <div id="method-M000053" class="method-detail"> - <a name="M000053"></a> + <div id="method-M000056" class="method-detail"> + <a name="M000056"></a> <div class="method-heading"> - <a href="#M000053" class="method-signature"> + <a href="#M000056" class="method-signature"> <span class="method-name">remote_remove</span><span class="method-args">(name)</span> </a> </div> @@ -962,10 +1040,10 @@ this is documented as such, but seems broken for some reason i’ll try to get around it some other way later </p> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000053-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000053-source"> + onclick="toggleCode('M000056-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000056-source"> <pre> -<span class="ruby-comment cmt"># File lib/git/lib.rb, line 278</span> +<span class="ruby-comment cmt"># File lib/git/lib.rb, line 314</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">remote_remove</span>(<span class="ruby-identifier">name</span>) <span class="ruby-identifier">command</span>(<span class="ruby-value str">'remote'</span>, [<span class="ruby-value str">'rm'</span>, <span class="ruby-identifier">name</span>]) <span class="ruby-keyword kw">end</span> @@ -974,21 +1052,21 @@ to get around it some other way later </div> </div> - <div id="method-M000054" class="method-detail"> - <a name="M000054"></a> + <div id="method-M000057" class="method-detail"> + <a name="M000057"></a> <div class="method-heading"> - <a href="#M000054" class="method-signature"> + <a href="#M000057" 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('M000054-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000054-source"> + onclick="toggleCode('M000057-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000057-source"> <pre> -<span class="ruby-comment cmt"># File lib/git/lib.rb, line 282</span> +<span class="ruby-comment cmt"># File lib/git/lib.rb, line 318</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">remotes</span> <span class="ruby-identifier">command_lines</span>(<span class="ruby-value str">'remote'</span>) <span class="ruby-keyword kw">end</span> @@ -997,21 +1075,21 @@ to get around it some other way later </div> </div> - <div id="method-M000045" class="method-detail"> - <a name="M000045"></a> + <div id="method-M000048" class="method-detail"> + <a name="M000048"></a> <div class="method-heading"> - <a href="#M000045" class="method-signature"> + <a href="#M000048" 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('M000045-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000045-source"> + onclick="toggleCode('M000048-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000048-source"> <pre> -<span class="ruby-comment cmt"># File lib/git/lib.rb, line 220</span> +<span class="ruby-comment cmt"># File lib/git/lib.rb, line 256</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> = {}) <span class="ruby-identifier">path</span> = <span class="ruby-identifier">path</span>.<span class="ruby-identifier">join</span>(<span class="ruby-value str">' '</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">path</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">Array</span>) @@ -1026,21 +1104,21 @@ to get around it some other way later </div> </div> - <div id="method-M000060" class="method-detail"> - <a name="M000060"></a> + <div id="method-M000063" class="method-detail"> + <a name="M000063"></a> <div class="method-heading"> - <a href="#M000060" class="method-signature"> + <a href="#M000063" 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('M000060-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000060-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/lib.rb, line 307</span> +<span class="ruby-comment cmt"># File lib/git/lib.rb, line 343</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> @@ -1049,21 +1127,21 @@ to get around it some other way later </div> </div> - <div id="method-M000047" class="method-detail"> - <a name="M000047"></a> + <div id="method-M000050" class="method-detail"> + <a name="M000050"></a> <div class="method-heading"> - <a href="#M000047" class="method-signature"> + <a href="#M000050" class="method-signature"> <span class="method-name">reset</span><span class="method-args">(commit, opts = {})</span> </a> </div> <div class="method-description"> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000047-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000047-source"> + onclick="toggleCode('M000050-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000050-source"> <pre> -<span class="ruby-comment cmt"># File lib/git/lib.rb, line 236</span> +<span class="ruby-comment cmt"># File lib/git/lib.rb, line 272</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">reset</span>(<span class="ruby-identifier">commit</span>, <span class="ruby-identifier">opts</span> = {}) <span class="ruby-identifier">arr_opts</span> = [] <span class="ruby-identifier">arr_opts</span> <span class="ruby-operator"><<</span> <span class="ruby-value str">'--hard'</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">opts</span>[<span class="ruby-identifier">:hard</span>] @@ -1075,19 +1153,19 @@ to get around it some other way later </div> </div> - <div id="method-M000028" class="method-detail"> - <a name="M000028"></a> + <div id="method-M000029" class="method-detail"> + <a name="M000029"></a> <div class="method-heading"> - <a href="#M000028" class="method-signature"> + <a href="#M000029" class="method-signature"> <span class="method-name">revparse</span><span class="method-args">(string)</span> </a> </div> <div class="method-description"> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000028-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000028-source"> + onclick="toggleCode('M000029-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000029-source"> <pre> <span class="ruby-comment cmt"># File lib/git/lib.rb, line 70</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">revparse</span>(<span class="ruby-identifier">string</span>) @@ -1098,21 +1176,21 @@ to get around it some other way later </div> </div> - <div id="method-M000056" class="method-detail"> - <a name="M000056"></a> + <div id="method-M000059" class="method-detail"> + <a name="M000059"></a> <div class="method-heading"> - <a href="#M000056" class="method-signature"> + <a href="#M000059" class="method-signature"> <span class="method-name">tag</span><span class="method-args">(tag)</span> </a> </div> <div class="method-description"> <p><a class="source-toggle" href="#" - onclick="toggleCode('M000056-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000056-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 290</span> +<span class="ruby-comment cmt"># File lib/git/lib.rb, line 326</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">tag</span>(<span class="ruby-identifier">tag</span>) <span class="ruby-identifier">command</span>(<span class="ruby-value str">'tag'</span>, <span class="ruby-identifier">tag</span>) <span class="ruby-keyword kw">end</span> @@ -1121,21 +1199,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-M000062" class="method-detail"> + <a name="M000062"></a> <div class="method-heading"> - <a href="#M000059" class="method-signature"> + <a href="#M000062" 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('M000059-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000059-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/lib.rb, line 303</span> +<span class="ruby-comment cmt"># File lib/git/lib.rb, line 339</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> @@ -1144,21 +1222,21 @@ to get around it some other way later </div> </div> - <div id="method-M000055" class="method-detail"> - <a name="M000055"></a> + <div id="method-M000058" class="method-detail"> + <a name="M000058"></a> <div class="method-heading"> - <a href="#M000055" class="method-signature"> + <a href="#M000058" 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('M000055-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000055-source"> + 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 286</span> +<span class="ruby-comment cmt"># File lib/git/lib.rb, line 322</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">tags</span> <span class="ruby-identifier">command_lines</span>(<span class="ruby-value str">'tag'</span>) <span class="ruby-keyword kw">end</span> diff --git a/doc/classes/Git/Object.html b/doc/classes/Git/Object.html index d6d12f1..cde1e7d 100644 --- a/doc/classes/Git/Object.html +++ b/doc/classes/Git/Object.html @@ -80,6 +80,12 @@ <div id="contextContent"> + <div id="description"> + <p> +represents a git object +</p> + + </div> </div> @@ -88,7 +94,7 @@ <h3 class="section-bar">Methods</h3> <div class="name-list"> - <a href="#M000122">new</a> + <a href="#M000125">new</a> </div> </div> @@ -120,11 +126,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-M000122" class="method-detail"> - <a name="M000122"></a> + <div id="method-M000125" class="method-detail"> + <a name="M000125"></a> <div class="method-heading"> - <a href="#M000122" class="method-signature"> + <a href="#M000125" class="method-signature"> <span class="method-name">new</span><span class="method-args">(base, objectish, is_tag = false)</span> </a> </div> @@ -135,10 +141,10 @@ 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('M000122-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000122-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 87</span> +<span class="ruby-comment cmt"># File lib/git/object.rb, line 206</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>) <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">is_tag</span> <span class="ruby-identifier">sha</span> = <span class="ruby-identifier">base</span>.<span class="ruby-identifier">lib</span>.<span class="ruby-identifier">tag_sha</span>(<span class="ruby-identifier">objectish</span>) diff --git a/doc/classes/Git/Object/AbstractObject.html b/doc/classes/Git/Object/AbstractObject.html index 10d0080..222bc67 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="#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> + <a href="#M000137">contents</a> + <a href="#M000138">contents_array</a> + <a href="#M000142">diff</a> + <a href="#M000141">grep</a> + <a href="#M000143">log</a> + <a href="#M000136">new</a> + <a href="#M000139">setup</a> + <a href="#M000140">to_s</a> </div> </div> @@ -143,24 +143,24 @@ <div id="methods"> <h3 class="section-bar">Public Class methods</h3> - <div id="method-M000124" class="method-detail"> - <a name="M000124"></a> + <div id="method-M000136" class="method-detail"> + <a name="M000136"></a> <div class="method-heading"> - <a href="#M000124" class="method-signature"> + <a href="#M000136" 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('M000124-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000124-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/object.rb, line 13</span> +<span class="ruby-comment cmt"># File lib/git/object.rb, line 14</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-ivar">@base</span> = <span class="ruby-identifier">base</span> - <span class="ruby-ivar">@sha</span> = <span class="ruby-identifier">sha</span> + <span class="ruby-ivar">@sha</span> = <span class="ruby-identifier">sha</span>.<span class="ruby-identifier">to_s</span> <span class="ruby-ivar">@size</span> = <span class="ruby-ivar">@base</span>.<span class="ruby-identifier">lib</span>.<span class="ruby-identifier">object_size</span>(<span class="ruby-ivar">@sha</span>) <span class="ruby-identifier">setup</span> <span class="ruby-keyword kw">end</span> @@ -171,21 +171,21 @@ <h3 class="section-bar">Public Instance methods</h3> - <div id="method-M000125" class="method-detail"> - <a name="M000125"></a> + <div id="method-M000137" class="method-detail"> + <a name="M000137"></a> <div class="method-heading"> - <a href="#M000125" class="method-signature"> + <a href="#M000137" 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('M000125-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000125-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/object.rb, line 20</span> +<span class="ruby-comment cmt"># File lib/git/object.rb, line 21</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">contents</span> <span class="ruby-ivar">@base</span>.<span class="ruby-identifier">lib</span>.<span class="ruby-identifier">object_contents</span>(<span class="ruby-ivar">@sha</span>) <span class="ruby-keyword kw">end</span> @@ -194,21 +194,21 @@ </div> </div> - <div id="method-M000126" class="method-detail"> - <a name="M000126"></a> + <div id="method-M000138" class="method-detail"> + <a name="M000138"></a> <div class="method-heading"> - <a href="#M000126" class="method-signature"> + <a href="#M000138" 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('M000126-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000126-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/object.rb, line 24</span> +<span class="ruby-comment cmt"># File lib/git/object.rb, line 25</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">contents_array</span> <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">contents</span>.<span class="ruby-identifier">split</span>(<span class="ruby-value str">"\n"</span>) <span class="ruby-keyword kw">end</span> @@ -217,21 +217,21 @@ </div> </div> - <div id="method-M000130" class="method-detail"> - <a name="M000130"></a> + <div id="method-M000142" class="method-detail"> + <a name="M000142"></a> <div class="method-heading"> - <a href="#M000130" class="method-signature"> + <a href="#M000142" 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('M000130-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000130-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/object.rb, line 42</span> +<span class="ruby-comment cmt"># File lib/git/object.rb, line 43</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">diff</span>(<span class="ruby-identifier">objectish</span>) <span class="ruby-constant">Git</span><span class="ruby-operator">::</span><span class="ruby-constant">Diff</span>.<span class="ruby-identifier">new</span>(<span class="ruby-ivar">@base</span>, <span class="ruby-ivar">@sha</span>, <span class="ruby-identifier">objectish</span>) <span class="ruby-keyword kw">end</span> @@ -240,21 +240,21 @@ </div> </div> - <div id="method-M000129" class="method-detail"> - <a name="M000129"></a> + <div id="method-M000141" class="method-detail"> + <a name="M000141"></a> <div class="method-heading"> - <a href="#M000129" class="method-signature"> + <a href="#M000141" 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('M000129-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000129-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/object.rb, line 36</span> +<span class="ruby-comment cmt"># File lib/git/object.rb, line 37</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> = {}) <span class="ruby-identifier">default</span> = {<span class="ruby-identifier">:object</span> =<span class="ruby-operator">></span> <span class="ruby-ivar">@sha</span>, <span class="ruby-identifier">:path_limiter</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">path_limiter</span>} <span class="ruby-identifier">grep_options</span> = <span class="ruby-identifier">default</span>.<span class="ruby-identifier">merge</span>(<span class="ruby-identifier">opts</span>) @@ -265,21 +265,21 @@ </div> </div> - <div id="method-M000131" class="method-detail"> - <a name="M000131"></a> + <div id="method-M000143" class="method-detail"> + <a name="M000143"></a> <div class="method-heading"> - <a href="#M000131" class="method-signature"> + <a href="#M000143" 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('M000131-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000131-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/object.rb, line 46</span> +<span class="ruby-comment cmt"># File lib/git/object.rb, line 47</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>) <span class="ruby-constant">Git</span><span class="ruby-operator">::</span><span class="ruby-constant">Log</span>.<span class="ruby-identifier">new</span>(<span class="ruby-ivar">@base</span>, <span class="ruby-identifier">count</span>).<span class="ruby-identifier">object</span>(<span class="ruby-ivar">@sha</span>) <span class="ruby-keyword kw">end</span> @@ -288,21 +288,21 @@ </div> </div> - <div id="method-M000127" class="method-detail"> - <a name="M000127"></a> + <div id="method-M000139" class="method-detail"> + <a name="M000139"></a> <div class="method-heading"> - <a href="#M000127" class="method-signature"> + <a href="#M000139" 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('M000127-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000127-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/object.rb, line 28</span> +<span class="ruby-comment cmt"># File lib/git/object.rb, line 29</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">setup</span> <span class="ruby-identifier">raise</span> <span class="ruby-constant">NotImplementedError</span> <span class="ruby-keyword kw">end</span> @@ -311,21 +311,21 @@ </div> </div> - <div id="method-M000128" class="method-detail"> - <a name="M000128"></a> + <div id="method-M000140" class="method-detail"> + <a name="M000140"></a> <div class="method-heading"> - <a href="#M000128" class="method-signature"> + <a href="#M000140" 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('M000128-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000128-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/object.rb, line 32</span> +<span class="ruby-comment cmt"># File lib/git/object.rb, line 33</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_s</span> <span class="ruby-ivar">@sha</span> <span class="ruby-keyword kw">end</span> diff --git a/doc/classes/Git/Object/Blob.html b/doc/classes/Git/Object/Blob.html index a3fcb39..453a324 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="#M000134">setup</a> + <a href="#M000145">new</a> </div> </div> @@ -108,25 +108,26 @@ <!-- if method_list --> <div id="methods"> - <h3 class="section-bar">Public Instance methods</h3> + <h3 class="section-bar">Public Class methods</h3> - <div id="method-M000134" class="method-detail"> - <a name="M000134"></a> + <div id="method-M000145" class="method-detail"> + <a name="M000145"></a> <div class="method-heading"> - <a href="#M000134" class="method-signature"> - <span class="method-name">setup</span><span class="method-args">()</span> + <a href="#M000145" class="method-signature"> + <span class="method-name">new</span><span class="method-args">(base, sha, mode = 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('M000145-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000145-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> - <span class="ruby-ivar">@type</span> = <span class="ruby-value str">'blob'</span> +<span class="ruby-comment cmt"># File lib/git/object.rb, line 56</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">mode</span> = <span class="ruby-keyword kw">nil</span>) + <span class="ruby-keyword kw">super</span>(<span class="ruby-identifier">base</span>, <span class="ruby-identifier">sha</span>) + <span class="ruby-ivar">@mode</span> = <span class="ruby-identifier">mode</span> <span class="ruby-keyword kw">end</span> </pre> </div> diff --git a/doc/classes/Git/Object/Commit.html b/doc/classes/Git/Object/Commit.html index 2f1e595..3be4f27 100644 --- a/doc/classes/Git/Object/Commit.html +++ b/doc/classes/Git/Object/Commit.html @@ -88,7 +88,16 @@ <h3 class="section-bar">Methods</h3> <div class="name-list"> - <a href="#M000123">setup</a> + <a href="#M000130">author</a> + <a href="#M000131">author_date</a> + <a href="#M000132">committer</a> + <a href="#M000133">committer_date</a> + <a href="#M000134">date</a> + <a href="#M000135">diff_parent</a> + <a href="#M000127">gtree</a> + <a href="#M000126">message</a> + <a href="#M000128">parent</a> + <a href="#M000129">parents</a> </div> </div> @@ -110,23 +119,235 @@ <div id="methods"> <h3 class="section-bar">Public Instance methods</h3> - <div id="method-M000123" class="method-detail"> - <a name="M000123"></a> + <div id="method-M000130" class="method-detail"> + <a name="M000130"></a> <div class="method-heading"> - <a href="#M000123" class="method-signature"> - <span class="method-name">setup</span><span class="method-args">()</span> + <a href="#M000130" class="method-signature"> + <span class="method-name">author</span><span class="method-args">()</span> </a> </div> <div class="method-description"> + <p> +git author +</p> <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('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 66</span> - <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">setup</span> - <span class="ruby-ivar">@type</span> = <span class="ruby-value str">'commit'</span> +<span class="ruby-comment cmt"># File lib/git/object.rb, line 143</span> + <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">author</span> + <span class="ruby-identifier">check_commit</span> + <span class="ruby-ivar">@author</span> + <span class="ruby-keyword kw">end</span> +</pre> + </div> + </div> + </div> + + <div id="method-M000131" class="method-detail"> + <a name="M000131"></a> + + <div class="method-heading"> + <a href="#M000131" class="method-signature"> + <span class="method-name">author_date</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"> +<pre> +<span class="ruby-comment cmt"># File lib/git/object.rb, line 148</span> + <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">author_date</span> + <span class="ruby-identifier">author</span>.<span class="ruby-identifier">date</span> + <span class="ruby-keyword kw">end</span> +</pre> + </div> + </div> + </div> + + <div id="method-M000132" class="method-detail"> + <a name="M000132"></a> + + <div class="method-heading"> + <a href="#M000132" class="method-signature"> + <span class="method-name">committer</span><span class="method-args">()</span> + </a> + </div> + + <div class="method-description"> + <p> +git author +</p> + <p><a class="source-toggle" href="#" + 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 153</span> + <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">committer</span> + <span class="ruby-identifier">check_commit</span> + <span class="ruby-ivar">@committer</span> + <span class="ruby-keyword kw">end</span> +</pre> + </div> + </div> + </div> + + <div id="method-M000133" class="method-detail"> + <a name="M000133"></a> + + <div class="method-heading"> + <a href="#M000133" class="method-signature"> + <span class="method-name">committer_date</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"> +<pre> +<span class="ruby-comment cmt"># File lib/git/object.rb, line 158</span> + <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">committer_date</span> + <span class="ruby-identifier">committer</span>.<span class="ruby-identifier">date</span> + <span class="ruby-keyword kw">end</span> +</pre> + </div> + </div> + </div> + + <div id="method-M000134" class="method-detail"> + <a name="M000134"></a> + + <div class="method-heading"> + <span class="method-name">date</span><span class="method-args">()</span> + </div> + + <div class="method-description"> + <p> +Alias for <a href="Commit.html#M000133">committer_date</a> +</p> + </div> + </div> + + <div id="method-M000135" class="method-detail"> + <a name="M000135"></a> + + <div class="method-heading"> + <a href="#M000135" class="method-signature"> + <span class="method-name">diff_parent</span><span class="method-args">()</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"> +<pre> +<span class="ruby-comment cmt"># File lib/git/object.rb, line 163</span> + <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">diff_parent</span> + <span class="ruby-identifier">diff</span>(<span class="ruby-identifier">parent</span>) + <span class="ruby-keyword kw">end</span> +</pre> + </div> + </div> + </div> + + <div id="method-M000127" class="method-detail"> + <a name="M000127"></a> + + <div class="method-heading"> + <a href="#M000127" class="method-signature"> + <span class="method-name">gtree</span><span class="method-args">()</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"> +<pre> +<span class="ruby-comment cmt"># File lib/git/object.rb, line 127</span> + <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">gtree</span> + <span class="ruby-identifier">check_commit</span> + <span class="ruby-constant">Tree</span>.<span class="ruby-identifier">new</span>(<span class="ruby-ivar">@base</span>, <span class="ruby-ivar">@tree</span>) + <span class="ruby-keyword kw">end</span> +</pre> + </div> + </div> + </div> + + <div id="method-M000126" class="method-detail"> + <a name="M000126"></a> + + <div class="method-heading"> + <a href="#M000126" class="method-signature"> + <span class="method-name">message</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"> +<pre> +<span class="ruby-comment cmt"># File lib/git/object.rb, line 122</span> + <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">message</span> + <span class="ruby-identifier">check_commit</span> + <span class="ruby-ivar">@message</span> + <span class="ruby-keyword kw">end</span> +</pre> + </div> + </div> + </div> + + <div id="method-M000128" class="method-detail"> + <a name="M000128"></a> + + <div class="method-heading"> + <a href="#M000128" class="method-signature"> + <span class="method-name">parent</span><span class="method-args">()</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"> +<pre> +<span class="ruby-comment cmt"># File lib/git/object.rb, line 132</span> + <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">parent</span> + <span class="ruby-identifier">parents</span>.<span class="ruby-identifier">first</span> + <span class="ruby-keyword kw">end</span> +</pre> + </div> + </div> + </div> + + <div id="method-M000129" class="method-detail"> + <a name="M000129"></a> + + <div class="method-heading"> + <a href="#M000129" class="method-signature"> + <span class="method-name">parents</span><span class="method-args">()</span> + </a> + </div> + + <div class="method-description"> + <p> +array of all parent commits +</p> + <p><a class="source-toggle" href="#" + 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 137</span> + <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">parents</span> + <span class="ruby-identifier">check_commit</span> + <span class="ruby-ivar">@parents</span> <span class="ruby-keyword kw">end</span> </pre> </div> diff --git a/doc/classes/Git/Object/Tag.html b/doc/classes/Git/Object/Tag.html index 260b4c4..799baaa 100644 --- a/doc/classes/Git/Object/Tag.html +++ b/doc/classes/Git/Object/Tag.html @@ -88,8 +88,7 @@ <h3 class="section-bar">Methods</h3> <div class="name-list"> - <a href="#M000132">new</a> - <a href="#M000133">setup</a> + <a href="#M000144">new</a> </div> </div> @@ -124,21 +123,21 @@ <div id="methods"> <h3 class="section-bar">Public Class methods</h3> - <div id="method-M000132" class="method-detail"> - <a name="M000132"></a> + <div id="method-M000144" class="method-detail"> + <a name="M000144"></a> <div class="method-heading"> - <a href="#M000132" class="method-signature"> + <a href="#M000144" 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('M000132-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000132-source"> + onclick="toggleCode('M000144-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000144-source"> <pre> -<span class="ruby-comment cmt"># File lib/git/object.rb, line 74</span> +<span class="ruby-comment cmt"># File lib/git/object.rb, line 190</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>) <span class="ruby-keyword kw">super</span>(<span class="ruby-identifier">base</span>, <span class="ruby-identifier">sha</span>) <span class="ruby-ivar">@name</span> = <span class="ruby-identifier">name</span> @@ -148,31 +147,6 @@ </div> </div> - <h3 class="section-bar">Public Instance methods</h3> - - <div id="method-M000133" class="method-detail"> - <a name="M000133"></a> - - <div class="method-heading"> - <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('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> - <span class="ruby-ivar">@type</span> = <span class="ruby-value str">'tag'</span> - <span class="ruby-keyword kw">end</span> -</pre> - </div> - </div> - </div> - </div> diff --git a/doc/classes/Git/Object/Tree.html b/doc/classes/Git/Object/Tree.html index 4d681e8..72a8a61 100644 --- a/doc/classes/Git/Object/Tree.html +++ b/doc/classes/Git/Object/Tree.html @@ -88,7 +88,13 @@ <h3 class="section-bar">Methods</h3> <div class="name-list"> - <a href="#M000135">setup</a> + <a href="#M000148">blobs</a> + <a href="#M000147">children</a> + <a href="#M000149">files</a> + <a href="#M000146">new</a> + <a href="#M000152">subdirectories</a> + <a href="#M000151">subtrees</a> + <a href="#M000150">trees</a> </div> </div> @@ -108,25 +114,141 @@ <!-- if method_list --> <div id="methods"> + <h3 class="section-bar">Public Class methods</h3> + + <div id="method-M000146" class="method-detail"> + <a name="M000146"></a> + + <div class="method-heading"> + <a href="#M000146" class="method-signature"> + <span class="method-name">new</span><span class="method-args">(base, sha, mode = nil)</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"> +<pre> +<span class="ruby-comment cmt"># File lib/git/object.rb, line 73</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">mode</span> = <span class="ruby-keyword kw">nil</span>) + <span class="ruby-keyword kw">super</span>(<span class="ruby-identifier">base</span>, <span class="ruby-identifier">sha</span>) + <span class="ruby-ivar">@mode</span> = <span class="ruby-identifier">mode</span> + <span class="ruby-keyword kw">end</span> +</pre> + </div> + </div> + </div> + <h3 class="section-bar">Public Instance methods</h3> - <div id="method-M000135" class="method-detail"> - <a name="M000135"></a> + <div id="method-M000148" class="method-detail"> + <a name="M000148"></a> + + <div class="method-heading"> + <a href="#M000148" class="method-signature"> + <span class="method-name">blobs</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"> +<pre> +<span class="ruby-comment cmt"># File lib/git/object.rb, line 82</span> + <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">blobs</span> + <span class="ruby-identifier">check_tree</span> + <span class="ruby-ivar">@blobs</span> + <span class="ruby-keyword kw">end</span> +</pre> + </div> + </div> + </div> + + <div id="method-M000147" class="method-detail"> + <a name="M000147"></a> + + <div class="method-heading"> + <a href="#M000147" class="method-signature"> + <span class="method-name">children</span><span class="method-args">()</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"> +<pre> +<span class="ruby-comment cmt"># File lib/git/object.rb, line 78</span> + <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">children</span> + <span class="ruby-identifier">blobs</span>.<span class="ruby-identifier">merge</span>(<span class="ruby-identifier">subtrees</span>) + <span class="ruby-keyword kw">end</span> +</pre> + </div> + </div> + </div> + + <div id="method-M000149" class="method-detail"> + <a name="M000149"></a> + + <div class="method-heading"> + <span class="method-name">files</span><span class="method-args">()</span> + </div> + + <div class="method-description"> + <p> +Alias for <a href="Tree.html#M000148">blobs</a> +</p> + </div> + </div> + + <div id="method-M000152" class="method-detail"> + <a name="M000152"></a> + + <div class="method-heading"> + <span class="method-name">subdirectories</span><span class="method-args">()</span> + </div> + + <div class="method-description"> + <p> +Alias for <a href="Tree.html#M000150">trees</a> +</p> + </div> + </div> + + <div id="method-M000151" class="method-detail"> + <a name="M000151"></a> + + <div class="method-heading"> + <span class="method-name">subtrees</span><span class="method-args">()</span> + </div> + + <div class="method-description"> + <p> +Alias for <a href="Tree.html#M000150">trees</a> +</p> + </div> + </div> + + <div id="method-M000150" class="method-detail"> + <a name="M000150"></a> <div class="method-heading"> - <a href="#M000135" class="method-signature"> - <span class="method-name">setup</span><span class="method-args">()</span> + <a href="#M000150" class="method-signature"> + <span class="method-name">trees</span><span class="method-args">()</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('M000150-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000150-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> - <span class="ruby-ivar">@type</span> = <span class="ruby-value str">'tree'</span> +<span class="ruby-comment cmt"># File lib/git/object.rb, line 88</span> + <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">trees</span> + <span class="ruby-identifier">check_tree</span> + <span class="ruby-ivar">@trees</span> <span class="ruby-keyword kw">end</span> </pre> </div> diff --git a/doc/classes/Git/Path.html b/doc/classes/Git/Path.html index 16f02af..1f49a3e 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="#M000119">new</a> - <a href="#M000120">readable?</a> - <a href="#M000121">writable?</a> + <a href="#M000122">new</a> + <a href="#M000123">readable?</a> + <a href="#M000124">writable?</a> </div> </div> @@ -125,19 +125,19 @@ <div id="methods"> <h3 class="section-bar">Public Class methods</h3> - <div id="method-M000119" class="method-detail"> - <a name="M000119"></a> + <div id="method-M000122" class="method-detail"> + <a name="M000122"></a> <div class="method-heading"> - <a href="#M000119" class="method-signature"> + <a href="#M000122" 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('M000119-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000119-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/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-M000120" class="method-detail"> - <a name="M000120"></a> + <div id="method-M000123" class="method-detail"> + <a name="M000123"></a> <div class="method-heading"> - <a href="#M000120" class="method-signature"> + <a href="#M000123" 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('M000120-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000120-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/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-M000121" class="method-detail"> - <a name="M000121"></a> + <div id="method-M000124" class="method-detail"> + <a name="M000124"></a> <div class="method-heading"> - <a href="#M000121" class="method-signature"> + <a href="#M000124" 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('M000121-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000121-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/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 bf59b38..ebe825f 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="#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> + <a href="#M000170">branch</a> + <a href="#M000168">fetch</a> + <a href="#M000169">merge</a> + <a href="#M000166">new</a> + <a href="#M000167">remove</a> + <a href="#M000171">remove</a> + <a href="#M000172">to_s</a> </div> </div> @@ -139,19 +139,19 @@ <div id="methods"> <h3 class="section-bar">Public Class methods</h3> - <div id="method-M000149" class="method-detail"> - <a name="M000149"></a> + <div id="method-M000166" class="method-detail"> + <a name="M000166"></a> <div class="method-heading"> - <a href="#M000149" class="method-signature"> + <a href="#M000166" 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('M000149-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000149-source"> + onclick="toggleCode('M000166-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000166-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-M000153" class="method-detail"> - <a name="M000153"></a> + <div id="method-M000170" class="method-detail"> + <a name="M000170"></a> <div class="method-heading"> - <a href="#M000153" class="method-signature"> + <a href="#M000170" 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('M000153-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000153-source"> + onclick="toggleCode('M000170-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000170-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-M000151" class="method-detail"> - <a name="M000151"></a> + <div id="method-M000168" class="method-detail"> + <a name="M000168"></a> <div class="method-heading"> - <a href="#M000151" class="method-signature"> + <a href="#M000168" 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('M000151-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000151-source"> + onclick="toggleCode('M000168-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000168-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-M000152" class="method-detail"> - <a name="M000152"></a> + <div id="method-M000169" class="method-detail"> + <a name="M000169"></a> <div class="method-heading"> - <a href="#M000152" class="method-signature"> + <a href="#M000169" 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('M000152-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000152-source"> + onclick="toggleCode('M000169-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000169-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-M000150" class="method-detail"> - <a name="M000150"></a> + <div id="method-M000167" class="method-detail"> + <a name="M000167"></a> <div class="method-heading"> - <a href="#M000150" class="method-signature"> + <a href="#M000167" 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('M000150-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000150-source"> + onclick="toggleCode('M000167-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000167-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-M000154" class="method-detail"> - <a name="M000154"></a> + <div id="method-M000171" class="method-detail"> + <a name="M000171"></a> <div class="method-heading"> - <a href="#M000154" class="method-signature"> + <a href="#M000171" 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('M000154-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000154-source"> + onclick="toggleCode('M000171-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000171-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-M000155" class="method-detail"> - <a name="M000155"></a> + <div id="method-M000172" class="method-detail"> + <a name="M000172"></a> <div class="method-heading"> - <a href="#M000155" class="method-signature"> + <a href="#M000172" 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('M000155-source');return false;">[Source]</a></p> - <div class="method-source-code" id="M000155-source"> + onclick="toggleCode('M000172-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000172-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 21b2cf5..f9d24d4 100644 --- a/doc/created.rid +++ b/doc/created.rid @@ -1 +1 @@ -Mon Nov 12 11:08:01 PST 2007 +Tue Nov 13 07:35:28 PST 2007 diff --git a/doc/files/README.html b/doc/files/README.html index 0a797bb..0832d66 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>Mon Nov 12 11:07:58 PST 2007</td> + <td>Tue Nov 13 06:53:10 PST 2007</td> </tr> </table> </div> @@ -95,6 +95,39 @@ 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>Major Objects</h1> +<p> +<a href="../classes/Git/Base.html">Git::Base</a> - this is the object +returned from a <a href="../classes/Git.html#M000002">Git.open</a> or <a +href="../classes/Git.html#M000004">Git.clone</a>. Most major actions are +called from this object. +</p> +<p> +<a href="../classes/Git/Object.html">Git::Object</a> - this is the base +object for your tree, blob and commit objects, returned from @git.gtree or +@git.object calls. the Git::AbstractObject will have most of the calls in +common for all those objects. +</p> +<p> +<a href="../classes/Git/Diff.html">Git::Diff</a> - returns from a @git.diff +command. It is an Enumerable that returns <a +href="../classes/Git/Diff.html">Git::Diff</a>:DiffFile objects from which +you can get per file patches and insertion/deletion statistics. You can +also get total statistics from the <a +href="../classes/Git/Diff.html">Git::Diff</a> object directly. +</p> +<p> +<a href="../classes/Git/Status.html">Git::Status</a> +</p> +<p> +<a href="../classes/Git/Branches.html">Git::Branches</a> +</p> +<p> +<a href="../classes/Git/Remote.html">Git::Remote</a> +</p> +<p> +<a href="../classes/Git/Log.html">Git::Log</a> +</p> <h1>Examples</h1> <p> Here are a bunch of examples of how to use the Ruby/<a @@ -136,6 +169,22 @@ Here are the operations that need read permission only. g.gblob(treeish) g.gcommit(treeish) + commit = g.gcommit('1cc8667014381') + commit.gtree + commit.parent.sha + commit.parents.size + commit.author.name + commit.author.email + commit.author.date.strftime("%m-%d-%y") + commit.committer.name + commit.date.strftime("%m-%d-%y") + commit.message + + tree = g.gtree("HEAD^{tree}") + tree.blobs + tree.subtrees + tree.children # blobs and subtrees + g.revparse('v2.5:Makefile') g.branches # returns Git::Branch objects diff --git a/doc/files/lib/git/author_rb.html b/doc/files/lib/git/author_rb.html new file mode 100644 index 0000000..3453fa4 --- /dev/null +++ b/doc/files/lib/git/author_rb.html @@ -0,0 +1,101 @@ +<?xml version="1.0" encoding="iso-8859-1"?> +<!DOCTYPE html + PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> + +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head> + <title>File: author.rb</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> + <meta http-equiv="Content-Script-Type" content="text/javascript" /> + <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" /> + <script type="text/javascript"> + // <![CDATA[ + + function popupCode( url ) { + window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400") + } + + function toggleCode( id ) { + if ( document.getElementById ) + elem = document.getElementById( id ); + else if ( document.all ) + elem = eval( "document.all." + id ); + else + return false; + + elemStyle = elem.style; + + if ( elemStyle.display != "block" ) { + elemStyle.display = "block" + } else { + elemStyle.display = "none" + } + + return true; + } + + // Make codeblocks hidden by default + document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" ) + + // ]]> + </script> + +</head> +<body> + + + + <div id="fileHeader"> + <h1>author.rb</h1> + <table class="header-table"> + <tr class="top-aligned-row"> + <td><strong>Path:</strong></td> + <td>lib/git/author.rb + </td> + </tr> + <tr class="top-aligned-row"> + <td><strong>Last Update:</strong></td> + <td>Mon Nov 12 17:21:28 PST 2007</td> + </tr> + </table> + </div> + <!-- banner header --> + + <div id="bodyContent"> + + + + <div id="contextContent"> + + + + </div> + + + </div> + + + <!-- if includes --> + + <div id="section"> + + + + + + + + + <!-- if method_list --> + + + </div> + + +<div id="validator-badges"> + <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p> +</div> + +</body> +</html>
\ No newline at end of file diff --git a/doc/files/lib/git/base_rb.html b/doc/files/lib/git/base_rb.html index 980bf39..b88352c 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>Mon Nov 12 10:49:59 PST 2007</td> + <td>Tue Nov 13 07:35:24 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 ff92663..2462126 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>Mon Nov 12 10:50:14 PST 2007</td> + <td>Mon Nov 12 17:40:54 PST 2007</td> </tr> </table> </div> diff --git a/doc/files/lib/git/object_rb.html b/doc/files/lib/git/object_rb.html index 8ea73f7..b1cfe7d 100644 --- a/doc/files/lib/git/object_rb.html +++ b/doc/files/lib/git/object_rb.html @@ -56,7 +56,7 @@ </tr> <tr class="top-aligned-row"> <td><strong>Last Update:</strong></td> - <td>Sun Nov 11 15:59:01 PST 2007</td> + <td>Tue Nov 13 06:37:18 PST 2007</td> </tr> </table> </div> diff --git a/doc/files/lib/git_rb.html b/doc/files/lib/git_rb.html index 8864d94..192691a 100644 --- a/doc/files/lib/git_rb.html +++ b/doc/files/lib/git_rb.html @@ -56,7 +56,7 @@ </tr> <tr class="top-aligned-row"> <td><strong>Last Update:</strong></td> - <td>Mon Nov 12 10:59:30 PST 2007</td> + <td>Tue Nov 13 07:04:48 PST 2007</td> </tr> </table> </div> @@ -93,6 +93,7 @@ isn’t there already. git/remote git/diff git/status + git/author </div> </div> diff --git a/doc/fr_class_index.html b/doc/fr_class_index.html index 2d3002e..a668a74 100644 --- a/doc/fr_class_index.html +++ b/doc/fr_class_index.html @@ -21,6 +21,7 @@ <h1 class="section-bar">Classes</h1> <div id="index-entries"> <a href="classes/Git.html">Git</a><br /> + <a href="classes/Git/Author.html">Git::Author</a><br /> <a href="classes/Git/Base.html">Git::Base</a><br /> <a href="classes/Git/Branch.html">Git::Branch</a><br /> <a href="classes/Git/Branches.html">Git::Branches</a><br /> diff --git a/doc/fr_file_index.html b/doc/fr_file_index.html index c0e6c49..967c090 100644 --- a/doc/fr_file_index.html +++ b/doc/fr_file_index.html @@ -22,6 +22,7 @@ <div id="index-entries"> <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/author_rb.html">lib/git/author.rb</a><br /> <a href="files/lib/git/base_rb.html">lib/git/base.rb</a><br /> <a href="files/lib/git/branch_rb.html">lib/git/branch.rb</a><br /> <a href="files/lib/git/branches_rb.html">lib/git/branches.rb</a><br /> diff --git a/doc/fr_method_index.html b/doc/fr_method_index.html index 9cb8879..1c86105 100644 --- a/doc/fr_method_index.html +++ b/doc/fr_method_index.html @@ -20,161 +20,178 @@ <div id="index"> <h1 class="section-bar">Methods</h1> <div id="index-entries"> - <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#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#M000112">add_remote (Git::Base)</a><br /> - <a href="classes/Git/Base.html#M000115">add_tag (Git::Base)</a><br /> + <a href="classes/Git/Branches.html#M000069">[] (Git::Branches)</a><br /> + <a href="classes/Git/Diff.html#M000162">[] (Git::Diff)</a><br /> + <a href="classes/Git/Base.html#M000103">add (Git::Base)</a><br /> + <a href="classes/Git/Lib.html#M000047">add (Git::Lib)</a><br /> + <a href="classes/Git/Base.html#M000115">add_remote (Git::Base)</a><br /> + <a href="classes/Git/Base.html#M000118">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/Object/Commit.html#M000130">author (Git::Object::Commit)</a><br /> + <a href="classes/Git/Object/Commit.html#M000131">author_date (Git::Object::Commit)</a><br /> + <a href="classes/Git/Base.html#M000080">bare (Git::Base)</a><br /> <a href="classes/Git.html#M000001">bare (Git)</a><br /> <a href="classes/Git/Log.html#M000019">between (Git::Log)</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#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#M000094">branches (Git::Base)</a><br /> - <a href="classes/Git/Lib.html#M000032">branches_all (Git::Lib)</a><br /> + <a href="classes/Git/Diff/DiffFile.html#M000165">blob (Git::Diff::DiffFile)</a><br /> + <a href="classes/Git/Object/Tree.html#M000148">blobs (Git::Object::Tree)</a><br /> + <a href="classes/Git/Remote.html#M000170">branch (Git::Remote)</a><br /> + <a href="classes/Git/Base.html#M000098">branch (Git::Base)</a><br /> + <a href="classes/Git/Lib.html#M000036">branch_current (Git::Lib)</a><br /> + <a href="classes/Git/Lib.html#M000052">branch_delete (Git::Lib)</a><br /> + <a href="classes/Git/Lib.html#M000051">branch_new (Git::Lib)</a><br /> + <a href="classes/Git/Base.html#M000097">branches (Git::Base)</a><br /> + <a href="classes/Git/Lib.html#M000035">branches_all (Git::Lib)</a><br /> <a href="classes/Git/Status.html#M000006">changed (Git::Status)</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#M000106">checkout (Git::Base)</a><br /> - <a href="classes/Git/Base.html#M000080">clone (Git::Base)</a><br /> + <a href="classes/Git/Base.html#M000088">chdir (Git::Base)</a><br /> + <a href="classes/Git/Lib.html#M000053">checkout (Git::Lib)</a><br /> + <a href="classes/Git/Branch.html#M000072">checkout (Git::Branch)</a><br /> + <a href="classes/Git/Base.html#M000109">checkout (Git::Base)</a><br /> + <a href="classes/Git/Object/Tree.html#M000147">children (Git::Object::Tree)</a><br /> + <a href="classes/Git/Lib.html#M000027">clone (Git::Lib)</a><br /> + <a href="classes/Git/Base.html#M000083">clone (Git::Base)</a><br /> <a href="classes/Git.html#M000004">clone (Git)</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#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#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/Base.html#M000107">commit (Git::Base)</a><br /> + <a href="classes/Git/Lib.html#M000049">commit (Git::Lib)</a><br /> + <a href="classes/Git/Base.html#M000108">commit_all (Git::Base)</a><br /> + <a href="classes/Git/Lib.html#M000032">commit_data (Git::Lib)</a><br /> + <a href="classes/Git/Object/Commit.html#M000132">committer (Git::Object::Commit)</a><br /> + <a href="classes/Git/Object/Commit.html#M000133">committer_date (Git::Object::Commit)</a><br /> + <a href="classes/Git/Base.html#M000090">config (Git::Base)</a><br /> + <a href="classes/Git/Lib.html#M000044">config_get (Git::Lib)</a><br /> + <a href="classes/Git/Lib.html#M000045">config_list (Git::Lib)</a><br /> + <a href="classes/Git/Lib.html#M000043">config_remote (Git::Lib)</a><br /> + <a href="classes/Git/Lib.html#M000046">config_set (Git::Lib)</a><br /> + <a href="classes/Git/Object/AbstractObject.html#M000137">contents (Git::Object::AbstractObject)</a><br /> + <a href="classes/Git/Object/AbstractObject.html#M000138">contents_array (Git::Object::AbstractObject)</a><br /> + <a href="classes/Git/Branch.html#M000074">create (Git::Branch)</a><br /> + <a href="classes/Git/Branch.html#M000076">current (Git::Branch)</a><br /> + <a href="classes/Git/Base.html#M000121">current_branch (Git::Base)</a><br /> + <a href="classes/Git/Object/Commit.html#M000134">date (Git::Object::Commit)</a><br /> + <a href="classes/Git/Branch.html#M000075">delete (Git::Branch)</a><br /> <a href="classes/Git/Status.html#M000008">deleted (Git::Status)</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#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#M000157">deletions (Git::Diff)</a><br /> + <a href="classes/Git/Object/AbstractObject.html#M000142">diff (Git::Object::AbstractObject)</a><br /> + <a href="classes/Git/Base.html#M000102">diff (Git::Base)</a><br /> + <a href="classes/Git/Lib.html#M000040">diff_files (Git::Lib)</a><br /> + <a href="classes/Git/Lib.html#M000038">diff_full (Git::Lib)</a><br /> + <a href="classes/Git/Lib.html#M000041">diff_index (Git::Lib)</a><br /> + <a href="classes/Git/Object/Commit.html#M000135">diff_parent (Git::Object::Commit)</a><br /> + <a href="classes/Git/Lib.html#M000039">diff_stats (Git::Lib)</a><br /> + <a href="classes/Git/Base.html#M000085">dir (Git::Base)</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#M000107">fetch (Git::Base)</a><br /> + <a href="classes/Git/Diff.html#M000163">each (Git::Diff)</a><br /> + <a href="classes/Git/Status.html#M000012">each (Git::Status)</a><br /> + <a href="classes/Git/Branches.html#M000068">each (Git::Branches)</a><br /> + <a href="classes/Git/Base.html#M000110">fetch (Git::Base)</a><br /> + <a href="classes/Git/Remote.html#M000168">fetch (Git::Remote)</a><br /> + <a href="classes/Git/Lib.html#M000060">fetch (Git::Lib)</a><br /> + <a href="classes/Git/Object/Tree.html#M000149">files (Git::Object::Tree)</a><br /> <a href="classes/Git/Log.html#M000023">first (Git::Log)</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/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#M000094">gblob (Git::Base)</a><br /> + <a href="classes/Git/Branch.html#M000071">gcommit (Git::Branch)</a><br /> + <a href="classes/Git/Base.html#M000093">gcommit (Git::Base)</a><br /> + <a href="classes/Git/Base.html#M000101">grep (Git::Base)</a><br /> + <a href="classes/Git/Lib.html#M000037">grep (Git::Lib)</a><br /> + <a href="classes/Git/Object/AbstractObject.html#M000141">grep (Git::Object::AbstractObject)</a><br /> + <a href="classes/Git/Object/Commit.html#M000127">gtree (Git::Object::Commit)</a><br /> + <a href="classes/Git/Base.html#M000092">gtree (Git::Base)</a><br /> + <a href="classes/Git/Branch.html#M000073">in_branch (Git::Branch)</a><br /> + <a href="classes/Git/Base.html#M000087">index (Git::Base)</a><br /> <a href="classes/Git.html#M000003">init (Git)</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#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/Base.html#M000082">init (Git::Base)</a><br /> + <a href="classes/Git/Lib.html#M000026">init (Git::Lib)</a><br /> + <a href="classes/Git/Diff.html#M000158">insertions (Git::Diff)</a><br /> + <a href="classes/Git/Base.html#M000100">lib (Git::Base)</a><br /> + <a href="classes/Git/Diff.html#M000156">lines (Git::Diff)</a><br /> + <a href="classes/Git/Branches.html#M000065">local (Git::Branches)</a><br /> + <a href="classes/Git/Object/AbstractObject.html#M000143">log (Git::Object::AbstractObject)</a><br /> + <a href="classes/Git/Base.html#M000095">log (Git::Base)</a><br /> + <a href="classes/Git/Lib.html#M000028">log_commits (Git::Lib)</a><br /> + <a href="classes/Git/Lib.html#M000042">ls_files (Git::Lib)</a><br /> + <a href="classes/Git/Lib.html#M000034">ls_tree (Git::Lib)</a><br /> + <a href="classes/Git/Base.html#M000112">merge (Git::Base)</a><br /> + <a href="classes/Git/Remote.html#M000169">merge (Git::Remote)</a><br /> + <a href="classes/Git/Branch.html#M000077">merge (Git::Branch)</a><br /> + <a href="classes/Git/Lib.html#M000054">merge (Git::Lib)</a><br /> + <a href="classes/Git/Object/Commit.html#M000126">message (Git::Object::Commit)</a><br /> + <a href="classes/Git/Object.html#M000125">new (Git::Object)</a><br /> + <a href="classes/Git/Remote.html#M000166">new (Git::Remote)</a><br /> + <a href="classes/Git/Diff.html#M000153">new (Git::Diff)</a><br /> + <a href="classes/Git/Object/Tree.html#M000146">new (Git::Object::Tree)</a><br /> + <a href="classes/Git/Lib.html#M000025">new (Git::Lib)</a><br /> + <a href="classes/Git/Object/Blob.html#M000145">new (Git::Object::Blob)</a><br /> + <a href="classes/Git/Object/Tag.html#M000144">new (Git::Object::Tag)</a><br /> + <a href="classes/Git/Object/AbstractObject.html#M000136">new (Git::Object::AbstractObject)</a><br /> + <a href="classes/Git/Branches.html#M000064">new (Git::Branches)</a><br /> <a href="classes/Git/Status/StatusFile.html#M000013">new (Git::Status::StatusFile)</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#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/Base.html#M000084">new (Git::Base)</a><br /> + <a href="classes/Git/Diff/DiffFile.html#M000164">new (Git::Diff::DiffFile)</a><br /> + <a href="classes/Git/Author.html#M000024">new (Git::Author)</a><br /> <a href="classes/Git/Status.html#M000005">new (Git::Status)</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/Path.html#M000122">new (Git::Path)</a><br /> + <a href="classes/Git/Branch.html#M000070">new (Git::Branch)</a><br /> <a href="classes/Git/Log.html#M000016">object (Git::Log)</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/Base.html#M000091">object (Git::Base)</a><br /> + <a href="classes/Git/Lib.html#M000033">object_contents (Git::Lib)</a><br /> + <a href="classes/Git/Lib.html#M000031">object_size (Git::Lib)</a><br /> + <a href="classes/Git/Lib.html#M000030">object_type (Git::Lib)</a><br /> <a href="classes/Git.html#M000002">open (Git)</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/Base.html#M000081">open (Git::Base)</a><br /> + <a href="classes/Git/Object/Commit.html#M000128">parent (Git::Object::Commit)</a><br /> + <a href="classes/Git/Object/Commit.html#M000129">parents (Git::Object::Commit)</a><br /> + <a href="classes/Git/Diff.html#M000160">patch (Git::Diff)</a><br /> <a href="classes/Git/Log.html#M000017">path (Git::Log)</a><br /> + <a href="classes/Git/Diff.html#M000154">path (Git::Diff)</a><br /> <a href="classes/Git/Status.html#M000010">pretty (Git::Status)</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/Lib.html#M000045">remove (Git::Lib)</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#M000103">reset_hard (Git::Base)</a><br /> - <a href="classes/Git/Lib.html#M000028">revparse (Git::Lib)</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/Base.html#M000113">pull (Git::Base)</a><br /> + <a href="classes/Git/Lib.html#M000061">push (Git::Lib)</a><br /> + <a href="classes/Git/Base.html#M000111">push (Git::Base)</a><br /> + <a href="classes/Git/Path.html#M000123">readable? (Git::Path)</a><br /> + <a href="classes/Git/Base.html#M000099">remote (Git::Base)</a><br /> + <a href="classes/Git/Branches.html#M000066">remote (Git::Branches)</a><br /> + <a href="classes/Git/Lib.html#M000055">remote_add (Git::Lib)</a><br /> + <a href="classes/Git/Lib.html#M000056">remote_remove (Git::Lib)</a><br /> + <a href="classes/Git/Base.html#M000114">remotes (Git::Base)</a><br /> + <a href="classes/Git/Lib.html#M000057">remotes (Git::Lib)</a><br /> + <a href="classes/Git/Base.html#M000104">remove (Git::Base)</a><br /> + <a href="classes/Git/Lib.html#M000048">remove (Git::Lib)</a><br /> + <a href="classes/Git/Remote.html#M000167">remove (Git::Remote)</a><br /> + <a href="classes/Git/Remote.html#M000171">remove (Git::Remote)</a><br /> + <a href="classes/Git/Base.html#M000119">repack (Git::Base)</a><br /> + <a href="classes/Git/Lib.html#M000063">repack (Git::Lib)</a><br /> + <a href="classes/Git/Base.html#M000086">repo (Git::Base)</a><br /> + <a href="classes/Git/Base.html#M000089">repo_size (Git::Base)</a><br /> + <a href="classes/Git/Lib.html#M000050">reset (Git::Lib)</a><br /> + <a href="classes/Git/Base.html#M000105">reset (Git::Base)</a><br /> + <a href="classes/Git/Base.html#M000106">reset_hard (Git::Base)</a><br /> + <a href="classes/Git/Lib.html#M000029">revparse (Git::Lib)</a><br /> + <a href="classes/Git/Base.html#M000120">revparse (Git::Base)</a><br /> + <a href="classes/Git/Object/AbstractObject.html#M000139">setup (Git::Object::AbstractObject)</a><br /> <a href="classes/Git/Log.html#M000018">since (Git::Log)</a><br /> + <a href="classes/Git/Diff.html#M000155">size (Git::Diff)</a><br /> + <a href="classes/Git/Branches.html#M000067">size (Git::Branches)</a><br /> <a href="classes/Git/Log.html#M000021">size (Git::Log)</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#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#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/Diff.html#M000159">stats (Git::Diff)</a><br /> + <a href="classes/Git/Base.html#M000096">status (Git::Base)</a><br /> + <a href="classes/Git/Object/Tree.html#M000152">subdirectories (Git::Object::Tree)</a><br /> + <a href="classes/Git/Object/Tree.html#M000151">subtrees (Git::Object::Tree)</a><br /> + <a href="classes/Git/Lib.html#M000059">tag (Git::Lib)</a><br /> + <a href="classes/Git/Base.html#M000117">tag (Git::Base)</a><br /> + <a href="classes/Git/Lib.html#M000062">tag_sha (Git::Lib)</a><br /> + <a href="classes/Git/Lib.html#M000058">tags (Git::Lib)</a><br /> + <a href="classes/Git/Base.html#M000116">tags (Git::Base)</a><br /> + <a href="classes/Git/Branch.html#M000078">to_a (Git::Branch)</a><br /> <a href="classes/Git/Log.html#M000020">to_s (Git::Log)</a><br /> - <a href="classes/Git/Remote.html#M000155">to_s (Git::Remote)</a><br /> + <a href="classes/Git/Diff.html#M000161">to_s (Git::Diff)</a><br /> + <a href="classes/Git/Branch.html#M000079">to_s (Git::Branch)</a><br /> + <a href="classes/Git/Object/AbstractObject.html#M000140">to_s (Git::Object::AbstractObject)</a><br /> + <a href="classes/Git/Remote.html#M000172">to_s (Git::Remote)</a><br /> + <a href="classes/Git/Object/Tree.html#M000150">trees (Git::Object::Tree)</a><br /> <a href="classes/Git/Status.html#M000009">untracked (Git::Status)</a><br /> - <a href="classes/Git/Path.html#M000121">writable? (Git::Path)</a><br /> + <a href="classes/Git/Path.html#M000124">writable? (Git::Path)</a><br /> </div> </div> </body> |