diff options
Diffstat (limited to 'doc')
194 files changed, 12508 insertions, 0 deletions
diff --git a/doc/classes/Git.html b/doc/classes/Git.html new file mode 100644 index 0000000..3ddaacf --- /dev/null +++ b/doc/classes/Git.html @@ -0,0 +1,284 @@ +<?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>Module: Git</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>Module</strong></td> + <td class="class-name-in-header">Git</td> + </tr> + <tr class="top-aligned-row"> + <td><strong>In:</strong></td> + <td> + <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 /> + <a href="../files/lib/git/diff_rb.html"> + lib/git/diff.rb + </a> + <br /> + <a href="../files/lib/git/index_rb.html"> + lib/git/index.rb + </a> + <br /> + <a href="../files/lib/git/lib_rb.html"> + lib/git/lib.rb + </a> + <br /> + <a href="../files/lib/git/log_rb.html"> + lib/git/log.rb + </a> + <br /> + <a href="../files/lib/git/object_rb.html"> + lib/git/object.rb + </a> + <br /> + <a href="../files/lib/git/path_rb.html"> + lib/git/path.rb + </a> + <br /> + <a href="../files/lib/git/remote_rb.html"> + lib/git/remote.rb + </a> + <br /> + <a href="../files/lib/git/repository_rb.html"> + lib/git/repository.rb + </a> + <br /> + <a href="../files/lib/git/status_rb.html"> + lib/git/status.rb + </a> + <br /> + <a href="../files/lib/git/working_directory_rb.html"> + lib/git/working_directory.rb + </a> + <br /> + <a href="../files/lib/git_rb.html"> + lib/git.rb + </a> + <br /> + </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="#M000001">bare</a> + <a href="#M000004">clone</a> + <a href="#M000003">init</a> + <a href="#M000002">open</a> + </div> + </div> + + </div> + + + <!-- if includes --> + + <div id="section"> + + <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/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 /> +Class <a href="Git/GitExecuteError.html" class="link">Git::GitExecuteError</a><br /> +Class <a href="Git/GitTagNameDoesNotExist.html" class="link">Git::GitTagNameDoesNotExist</a><br /> +Class <a href="Git/Index.html" class="link">Git::Index</a><br /> +Class <a href="Git/Lib.html" class="link">Git::Lib</a><br /> +Class <a href="Git/Log.html" class="link">Git::Log</a><br /> +Class <a href="Git/Object.html" class="link">Git::Object</a><br /> +Class <a href="Git/Path.html" class="link">Git::Path</a><br /> +Class <a href="Git/Remote.html" class="link">Git::Remote</a><br /> +Class <a href="Git/Repository.html" class="link">Git::Repository</a><br /> +Class <a href="Git/Status.html" class="link">Git::Status</a><br /> +Class <a href="Git/WorkingDirectory.html" class="link">Git::WorkingDirectory</a><br /> + + </div> + + + + + + + + <!-- if method_list --> + <div id="methods"> + <h3 class="section-bar">Public Class methods</h3> + + <div id="method-M000001" class="method-detail"> + <a name="M000001"></a> + + <div class="method-heading"> + <a href="#M000001" class="method-signature"> + <span class="method-name">bare</span><span class="method-args">(git_dir)</span> + </a> + </div> + + <div class="method-description"> + <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 34</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> +</pre> + </div> + </div> + </div> + + <div id="method-M000004" class="method-detail"> + <a name="M000004"></a> + + <div class="method-heading"> + <a href="#M000004" class="method-signature"> + <span class="method-name">clone</span><span class="method-args">(repository, name, options = {})</span> + </a> + </div> + + <div class="method-description"> + <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 46</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> +</pre> + </div> + </div> + </div> + + <div id="method-M000003" class="method-detail"> + <a name="M000003"></a> + + <div class="method-heading"> + <a href="#M000003" class="method-signature"> + <span class="method-name">init</span><span class="method-args">(working_dir = '.', options = {})</span> + </a> + </div> + + <div class="method-description"> + <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 42</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> +</pre> + </div> + </div> + </div> + + <div id="method-M000002" class="method-detail"> + <a name="M000002"></a> + + <div class="method-heading"> + <a href="#M000002" class="method-signature"> + <span class="method-name">open</span><span class="method-args">(working_dir, options = {})</span> + </a> + </div> + + <div class="method-description"> + <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 38</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> +</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.src/M000001.html b/doc/classes/Git.src/M000001.html new file mode 100644 index 0000000..9930200 --- /dev/null +++ b/doc/classes/Git.src/M000001.html @@ -0,0 +1,18 @@ +<?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> +<head> + <title>bare (Git)</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> + <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" /> +</head> +<body class="standalone-code"> + <pre><span class="ruby-comment cmt"># File lib/git.rb, line 34</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></pre> +</body> +</html>
\ No newline at end of file diff --git a/doc/classes/Git.src/M000002.html b/doc/classes/Git.src/M000002.html new file mode 100644 index 0000000..bacfcef --- /dev/null +++ b/doc/classes/Git.src/M000002.html @@ -0,0 +1,18 @@ +<?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> +<head> + <title>open (Git)</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> + <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" /> +</head> +<body class="standalone-code"> + <pre><span class="ruby-comment cmt"># File lib/git.rb, line 38</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></pre> +</body> +</html>
\ No newline at end of file diff --git a/doc/classes/Git.src/M000003.html b/doc/classes/Git.src/M000003.html new file mode 100644 index 0000000..3558d68 --- /dev/null +++ b/doc/classes/Git.src/M000003.html @@ -0,0 +1,18 @@ +<?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> +<head> + <title>init (Git)</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> + <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" /> +</head> +<body class="standalone-code"> + <pre><span class="ruby-comment cmt"># File lib/git.rb, line 42</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></pre> +</body> +</html>
\ No newline at end of file diff --git a/doc/classes/Git.src/M000004.html b/doc/classes/Git.src/M000004.html new file mode 100644 index 0000000..b8bafbb --- /dev/null +++ b/doc/classes/Git.src/M000004.html @@ -0,0 +1,18 @@ +<?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> +<head> + <title>clone (Git)</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> + <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" /> +</head> +<body class="standalone-code"> + <pre><span class="ruby-comment cmt"># File lib/git.rb, line 46</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></pre> +</body> +</html>
\ No newline at end of file diff --git a/doc/classes/Git/Base.html b/doc/classes/Git/Base.html new file mode 100644 index 0000000..7f4f2c1 --- /dev/null +++ b/doc/classes/Git/Base.html @@ -0,0 +1,1180 @@ +<?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::Base</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::Base</td> + </tr> + <tr class="top-aligned-row"> + <td><strong>In:</strong></td> + <td> + <a href="../../files/lib/git/base_rb.html"> + lib/git/base.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="#M000099">add</a> + <a href="#M000110">add_remote</a> + <a href="#M000113">add_tag</a> + <a href="#M000076">bare</a> + <a href="#M000094">branch</a> + <a href="#M000093">branches</a> + <a href="#M000084">chdir</a> + <a href="#M000105">checkout</a> + <a href="#M000079">clone</a> + <a href="#M000103">commit</a> + <a href="#M000104">commit_all</a> + <a href="#M000086">config</a> + <a href="#M000116">current_branch</a> + <a href="#M000098">diff</a> + <a href="#M000081">dir</a> + <a href="#M000106">fetch</a> + <a href="#M000090">gblob</a> + <a href="#M000089">gcommit</a> + <a href="#M000097">grep</a> + <a href="#M000088">gtree</a> + <a href="#M000083">index</a> + <a href="#M000078">init</a> + <a href="#M000096">lib</a> + <a href="#M000091">log</a> + <a href="#M000107">merge</a> + <a href="#M000080">new</a> + <a href="#M000087">object</a> + <a href="#M000077">open</a> + <a href="#M000108">pull</a> + <a href="#M000095">remote</a> + <a href="#M000109">remotes</a> + <a href="#M000100">remove</a> + <a href="#M000114">repack</a> + <a href="#M000082">repo</a> + <a href="#M000085">repo_size</a> + <a href="#M000101">reset</a> + <a href="#M000102">reset_hard</a> + <a href="#M000115">revparse</a> + <a href="#M000092">status</a> + <a href="#M000112">tag</a> + <a href="#M000111">tags</a> + </div> + </div> + + </div> + + + <!-- if includes --> + + <div id="section"> + + + + + + + + + <!-- if method_list --> + <div id="methods"> + <h3 class="section-bar">Public Class methods</h3> + + <div id="method-M000076" class="method-detail"> + <a name="M000076"></a> + + <div class="method-heading"> + <a href="#M000076" class="method-signature"> + <span class="method-name">bare</span><span class="method-args">(git_dir)</span> + </a> + </div> + + <div class="method-description"> + <p> +opens a bare <a href="../Git.html">Git</a> <a +href="Repository.html">Repository</a> - no working directory options +</p> + <p><a class="source-toggle" href="#" + onclick="toggleCode('M000076-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000076-source"> +<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>) + <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">new</span> <span class="ruby-identifier">:repository</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">git_dir</span> + <span class="ruby-keyword kw">end</span> +</pre> + </div> + </div> + </div> + + <div id="method-M000079" class="method-detail"> + <a name="M000079"></a> + + <div class="method-heading"> + <a href="#M000079" class="method-signature"> + <span class="method-name">clone</span><span class="method-args">(repository, name, opts = {})</span> + </a> + </div> + + <div class="method-description"> + <p> +clones a git repository locally +</p> +<pre> + repository - http://repo.or.cz/w/sinatra.git + name - sinatra +</pre> +<p> +options: +</p> +<pre> + :repository + + :bare + or + :working_directory + :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"> +<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> = {}) + <span class="ruby-comment cmt"># run git-clone </span> + <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">new</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-identifier">clone</span>(<span class="ruby-identifier">repository</span>, <span class="ruby-identifier">name</span>, <span class="ruby-identifier">opts</span>)) + <span class="ruby-keyword kw">end</span> +</pre> + </div> + </div> + </div> + + <div id="method-M000078" class="method-detail"> + <a name="M000078"></a> + + <div class="method-heading"> + <a href="#M000078" class="method-signature"> + <span class="method-name">init</span><span class="method-args">(working_dir, opts = {})</span> + </a> + </div> + + <div class="method-description"> + <p> +initializes a git repository +</p> +<p> +options: +</p> +<pre> + :repository + :index_file +</pre> + <p><a class="source-toggle" href="#" + onclick="toggleCode('M000078-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000078-source"> +<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> = {}) + <span class="ruby-identifier">default</span> = {<span class="ruby-identifier">:working_directory</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">working_dir</span>, + <span class="ruby-identifier">:repository</span> =<span class="ruby-operator">></span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-identifier">working_dir</span>, <span class="ruby-value str">'.git'</span>)} + <span class="ruby-identifier">git_options</span> = <span class="ruby-identifier">default</span>.<span class="ruby-identifier">merge</span>(<span class="ruby-identifier">opts</span>) + + <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">git_options</span>[<span class="ruby-identifier">:working_directory</span>] + <span class="ruby-comment cmt"># if !working_dir, make it</span> + <span class="ruby-constant">FileUtils</span>.<span class="ruby-identifier">mkdir_p</span>(<span class="ruby-identifier">git_options</span>[<span class="ruby-identifier">:working_directory</span>]) <span class="ruby-keyword kw">if</span> <span class="ruby-operator">!</span><span class="ruby-constant">File</span>.<span class="ruby-identifier">directory?</span>(<span class="ruby-identifier">git_options</span>[<span class="ruby-identifier">:working_directory</span>]) + <span class="ruby-keyword kw">end</span> + + <span class="ruby-comment cmt"># run git_init there</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-identifier">git_options</span>).<span class="ruby-identifier">init</span> + + <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">git_options</span>) + <span class="ruby-keyword kw">end</span> +</pre> + </div> + </div> + </div> + + <div id="method-M000080" class="method-detail"> + <a name="M000080"></a> + + <div class="method-heading"> + <a href="#M000080" class="method-signature"> + <span class="method-name">new</span><span class="method-args">(options = {})</span> + </a> + </div> + + <div class="method-description"> + <p><a class="source-toggle" href="#" + onclick="toggleCode('M000080-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000080-source"> +<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> = {}) + <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">working_dir</span> = <span class="ruby-identifier">options</span>[<span class="ruby-identifier">:working_directory</span>] + <span class="ruby-identifier">options</span>[<span class="ruby-identifier">:repository</span>] = <span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-identifier">working_dir</span>, <span class="ruby-value str">'.git'</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-operator">!</span><span class="ruby-identifier">options</span>[<span class="ruby-identifier">:repository</span>] + <span class="ruby-identifier">options</span>[<span class="ruby-identifier">:index</span>] = <span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-identifier">working_dir</span>, <span class="ruby-value str">'.git'</span>, <span class="ruby-value str">'index'</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-operator">!</span><span class="ruby-identifier">options</span>[<span class="ruby-identifier">:index</span>] + <span class="ruby-keyword kw">end</span> + + <span class="ruby-ivar">@working_directory</span> = <span class="ruby-constant">Git</span><span class="ruby-operator">::</span><span class="ruby-constant">WorkingDirectory</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">options</span>[<span class="ruby-identifier">:working_directory</span>]) <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">options</span>[<span class="ruby-identifier">:working_directory</span>] + <span class="ruby-ivar">@repository</span> = <span class="ruby-constant">Git</span><span class="ruby-operator">::</span><span class="ruby-constant">Repository</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">options</span>[<span class="ruby-identifier">:repository</span>]) <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">options</span>[<span class="ruby-identifier">:repository</span>] + <span class="ruby-ivar">@index</span> = <span class="ruby-constant">Git</span><span class="ruby-operator">::</span><span class="ruby-constant">Index</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">options</span>[<span class="ruby-identifier">:index</span>], <span class="ruby-keyword kw">false</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">options</span>[<span class="ruby-identifier">:index</span>] + <span class="ruby-keyword kw">end</span> +</pre> + </div> + </div> + </div> + + <div id="method-M000077" class="method-detail"> + <a name="M000077"></a> + + <div class="method-heading"> + <a href="#M000077" class="method-signature"> + <span class="method-name">open</span><span class="method-args">(working_dir, opts={})</span> + </a> + </div> + + <div class="method-description"> + <p> +opens a new <a href="../Git.html">Git</a> Project from a working directory +you can specify non-standard git_dir and index file in the options +</p> + <p><a class="source-toggle" href="#" + onclick="toggleCode('M000077-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000077-source"> +<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>={}) + <span class="ruby-identifier">default</span> = {<span class="ruby-identifier">:working_directory</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">working_dir</span>} + <span class="ruby-identifier">git_options</span> = <span class="ruby-identifier">default</span>.<span class="ruby-identifier">merge</span>(<span class="ruby-identifier">opts</span>) + + <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">git_options</span>) + <span class="ruby-keyword kw">end</span> +</pre> + </div> + </div> + </div> + + <h3 class="section-bar">Public Instance methods</h3> + + <div id="method-M000099" class="method-detail"> + <a name="M000099"></a> + + <div class="method-heading"> + <a href="#M000099" class="method-signature"> + <span class="method-name">add</span><span class="method-args">(path = '.')</span> + </a> + </div> + + <div class="method-description"> + <p> +adds files from the working directory to the git repository +</p> + <p><a class="source-toggle" href="#" + onclick="toggleCode('M000099-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000099-source"> +<pre> +<span class="ruby-comment cmt"># File lib/git/base.rb, line 162</span> + <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add</span>(<span class="ruby-identifier">path</span> = <span class="ruby-value str">'.'</span>) + <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> +</pre> + </div> + </div> + </div> + + <div id="method-M000110" class="method-detail"> + <a name="M000110"></a> + + <div class="method-heading"> + <a href="#M000110" class="method-signature"> + <span class="method-name">add_remote</span><span class="method-args">(name, url, opts = {})</span> + </a> + </div> + + <div class="method-description"> + <p><a class="source-toggle" href="#" + onclick="toggleCode('M000110-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000110-source"> +<pre> +<span class="ruby-comment cmt"># File lib/git/base.rb, line 209</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> + <span class="ruby-keyword kw">end</span> + <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">lib</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-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">name</span>) + <span class="ruby-keyword kw">end</span> +</pre> + </div> + </div> + </div> + + <div id="method-M000113" class="method-detail"> + <a name="M000113"></a> + + <div class="method-heading"> + <a href="#M000113" class="method-signature"> + <span class="method-name">add_tag</span><span class="method-args">(tag_name)</span> + </a> + </div> + + <div class="method-description"> + <p><a class="source-toggle" href="#" + onclick="toggleCode('M000113-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000113-source"> +<pre> +<span class="ruby-comment cmt"># File lib/git/base.rb, line 225</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>) + <span class="ruby-keyword kw">end</span> +</pre> + </div> + </div> + </div> + + <div id="method-M000094" class="method-detail"> + <a name="M000094"></a> + + <div class="method-heading"> + <a href="#M000094" class="method-signature"> + <span class="method-name">branch</span><span class="method-args">(branch_name = 'master')</span> + </a> + </div> + + <div class="method-description"> + <p><a class="source-toggle" href="#" + onclick="toggleCode('M000094-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000094-source"> +<pre> +<span class="ruby-comment cmt"># File lib/git/base.rb, line 140</span> + <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">branch</span>(<span class="ruby-identifier">branch_name</span> = <span class="ruby-value str">'master'</span>) + <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> +</pre> + </div> + </div> + </div> + + <div id="method-M000093" class="method-detail"> + <a name="M000093"></a> + + <div class="method-heading"> + <a href="#M000093" class="method-signature"> + <span class="method-name">branches</span><span class="method-args">()</span> + </a> + </div> + + <div class="method-description"> + <p><a class="source-toggle" href="#" + onclick="toggleCode('M000093-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000093-source"> +<pre> +<span class="ruby-comment cmt"># File lib/git/base.rb, line 136</span> + <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">branches</span> + <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> +</pre> + </div> + </div> + </div> + + <div id="method-M000084" class="method-detail"> + <a name="M000084"></a> + + <div class="method-heading"> + <a href="#M000084" class="method-signature"> + <span class="method-name">chdir</span><span class="method-args">() {|dir.path| ...}</span> + </a> + </div> + + <div class="method-description"> + <p><a class="source-toggle" href="#" + onclick="toggleCode('M000084-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000084-source"> +<pre> +<span class="ruby-comment cmt"># File lib/git/base.rb, line 87</span> + <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">chdir</span> + <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> + <span class="ruby-keyword kw">end</span> + <span class="ruby-keyword kw">end</span> +</pre> + </div> + </div> + </div> + + <div id="method-M000105" class="method-detail"> + <a name="M000105"></a> + + <div class="method-heading"> + <a href="#M000105" class="method-signature"> + <span class="method-name">checkout</span><span class="method-args">(branch, opts = {})</span> + </a> + </div> + + <div class="method-description"> + <p><a class="source-toggle" href="#" + onclick="toggleCode('M000105-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000105-source"> +<pre> +<span class="ruby-comment cmt"># File lib/git/base.rb, line 188</span> + <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">checkout</span>(<span class="ruby-identifier">branch</span>, <span class="ruby-identifier">opts</span> = {}) + <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">lib</span>.<span class="ruby-identifier">checkout</span>(<span class="ruby-identifier">branch</span>, <span class="ruby-identifier">opts</span>) + <span class="ruby-keyword kw">end</span> +</pre> + </div> + </div> + </div> + + <div id="method-M000103" class="method-detail"> + <a name="M000103"></a> + + <div class="method-heading"> + <a href="#M000103" class="method-signature"> + <span class="method-name">commit</span><span class="method-args">(message, opts = {})</span> + </a> + </div> + + <div class="method-description"> + <p><a class="source-toggle" href="#" + onclick="toggleCode('M000103-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000103-source"> +<pre> +<span class="ruby-comment cmt"># File lib/git/base.rb, line 179</span> + <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">commit</span>(<span class="ruby-identifier">message</span>, <span class="ruby-identifier">opts</span> = {}) + <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> +</pre> + </div> + </div> + </div> + + <div id="method-M000104" class="method-detail"> + <a name="M000104"></a> + + <div class="method-heading"> + <a href="#M000104" class="method-signature"> + <span class="method-name">commit_all</span><span class="method-args">(message, opts = {})</span> + </a> + </div> + + <div class="method-description"> + <p><a class="source-toggle" href="#" + onclick="toggleCode('M000104-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000104-source"> +<pre> +<span class="ruby-comment cmt"># File lib/git/base.rb, line 183</span> + <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">commit_all</span>(<span class="ruby-identifier">message</span>, <span class="ruby-identifier">opts</span> = {}) + <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>) + <span class="ruby-keyword kw">end</span> +</pre> + </div> + </div> + </div> + + <div id="method-M000086" class="method-detail"> + <a name="M000086"></a> + + <div class="method-heading"> + <a href="#M000086" class="method-signature"> + <span class="method-name">config</span><span class="method-args">(name = nil, value = nil)</span> + </a> + </div> + + <div class="method-description"> + <p> +g.config(‘user.name’, ‘Scott Chacon’) # sets value +g.config(‘user.email’, ‘email@email.com’) # sets +value g.config(‘user.name’) # returns ‘Scott +Chacon’ g.config # returns whole config hash +</p> + <p><a class="source-toggle" href="#" + onclick="toggleCode('M000086-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000086-source"> +<pre> +<span class="ruby-comment cmt"># File lib/git/base.rb, line 105</span> + <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">config</span>(<span class="ruby-identifier">name</span> = <span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">value</span> = <span class="ruby-keyword kw">nil</span>) + <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> + <span class="ruby-identifier">lib</span>.<span class="ruby-identifier">config_set</span>(<span class="ruby-identifier">name</span>, <span class="ruby-identifier">value</span>) + <span class="ruby-keyword kw">elsif</span> (<span class="ruby-identifier">name</span>) + <span class="ruby-comment cmt"># return value</span> + <span class="ruby-identifier">lib</span>.<span class="ruby-identifier">config_get</span>(<span class="ruby-identifier">name</span>) + <span class="ruby-keyword kw">else</span> + <span class="ruby-comment cmt"># return hash</span> + <span class="ruby-identifier">lib</span>.<span class="ruby-identifier">config_list</span> + <span class="ruby-keyword kw">end</span> + <span class="ruby-keyword kw">end</span> +</pre> + </div> + </div> + </div> + + <div id="method-M000116" class="method-detail"> + <a name="M000116"></a> + + <div class="method-heading"> + <a href="#M000116" class="method-signature"> + <span class="method-name">current_branch</span><span class="method-args">()</span> + </a> + </div> + + <div class="method-description"> + <p><a class="source-toggle" href="#" + onclick="toggleCode('M000116-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000116-source"> +<pre> +<span class="ruby-comment cmt"># File lib/git/base.rb, line 240</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> +</pre> + </div> + </div> + </div> + + <div id="method-M000098" class="method-detail"> + <a name="M000098"></a> + + <div class="method-heading"> + <a href="#M000098" class="method-signature"> + <span class="method-name">diff</span><span class="method-args">(objectish = 'HEAD', obj2 = nil)</span> + </a> + </div> + + <div class="method-description"> + <p><a class="source-toggle" href="#" + onclick="toggleCode('M000098-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000098-source"> +<pre> +<span class="ruby-comment cmt"># File lib/git/base.rb, line 157</span> + <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">diff</span>(<span class="ruby-identifier">objectish</span> = <span class="ruby-value str">'HEAD'</span>, <span class="ruby-identifier">obj2</span> = <span class="ruby-keyword kw">nil</span>) + <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> +</pre> + </div> + </div> + </div> + + <div id="method-M000081" class="method-detail"> + <a name="M000081"></a> + + <div class="method-heading"> + <a href="#M000081" class="method-signature"> + <span class="method-name">dir</span><span class="method-args">()</span> + </a> + </div> + + <div class="method-description"> + <p><a class="source-toggle" href="#" + onclick="toggleCode('M000081-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000081-source"> +<pre> +<span class="ruby-comment cmt"># File lib/git/base.rb, line 75</span> + <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">dir</span> + <span class="ruby-ivar">@working_directory</span> + <span class="ruby-keyword kw">end</span> +</pre> + </div> + </div> + </div> + + <div id="method-M000106" class="method-detail"> + <a name="M000106"></a> + + <div class="method-heading"> + <a href="#M000106" class="method-signature"> + <span class="method-name">fetch</span><span class="method-args">(remote = 'origin')</span> + </a> + </div> + + <div class="method-description"> + <p><a class="source-toggle" href="#" + onclick="toggleCode('M000106-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000106-source"> +<pre> +<span class="ruby-comment cmt"># File lib/git/base.rb, line 192</span> + <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">fetch</span>(<span class="ruby-identifier">remote</span> = <span class="ruby-value str">'origin'</span>) + <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> +</pre> + </div> + </div> + </div> + + <div id="method-M000090" class="method-detail"> + <a name="M000090"></a> + + <div class="method-heading"> + <span class="method-name">gblob</span><span class="method-args">(objectish)</span> + </div> + + <div class="method-description"> + <p> +Alias for <a href="Base.html#M000087">object</a> +</p> + </div> + </div> + + <div id="method-M000089" class="method-detail"> + <a name="M000089"></a> + + <div class="method-heading"> + <span class="method-name">gcommit</span><span class="method-args">(objectish)</span> + </div> + + <div class="method-description"> + <p> +Alias for <a href="Base.html#M000087">object</a> +</p> + </div> + </div> + + <div id="method-M000097" class="method-detail"> + <a name="M000097"></a> + + <div class="method-heading"> + <a href="#M000097" class="method-signature"> + <span class="method-name">grep</span><span class="method-args">(string)</span> + </a> + </div> + + <div class="method-description"> + <p><a class="source-toggle" href="#" + onclick="toggleCode('M000097-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000097-source"> +<pre> +<span class="ruby-comment cmt"># File lib/git/base.rb, line 153</span> + <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">grep</span>(<span class="ruby-identifier">string</span>) + <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> +</pre> + </div> + </div> + </div> + + <div id="method-M000088" class="method-detail"> + <a name="M000088"></a> + + <div class="method-heading"> + <span class="method-name">gtree</span><span class="method-args">(objectish)</span> + </div> + + <div class="method-description"> + <p> +Alias for <a href="Base.html#M000087">object</a> +</p> + </div> + </div> + + <div id="method-M000083" class="method-detail"> + <a name="M000083"></a> + + <div class="method-heading"> + <a href="#M000083" class="method-signature"> + <span class="method-name">index</span><span class="method-args">()</span> + </a> + </div> + + <div class="method-description"> + <p><a class="source-toggle" href="#" + onclick="toggleCode('M000083-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000083-source"> +<pre> +<span class="ruby-comment cmt"># File lib/git/base.rb, line 83</span> + <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">index</span> + <span class="ruby-ivar">@index</span> + <span class="ruby-keyword kw">end</span> +</pre> + </div> + </div> + </div> + + <div id="method-M000096" class="method-detail"> + <a name="M000096"></a> + + <div class="method-heading"> + <a href="#M000096" class="method-signature"> + <span class="method-name">lib</span><span class="method-args">()</span> + </a> + </div> + + <div class="method-description"> + <p><a class="source-toggle" href="#" + onclick="toggleCode('M000096-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000096-source"> +<pre> +<span class="ruby-comment cmt"># File lib/git/base.rb, line 149</span> + <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">lib</span> + <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> +</pre> + </div> + </div> + </div> + + <div id="method-M000091" class="method-detail"> + <a name="M000091"></a> + + <div class="method-heading"> + <a href="#M000091" class="method-signature"> + <span class="method-name">log</span><span class="method-args">(count = 30)</span> + </a> + </div> + + <div class="method-description"> + <p><a class="source-toggle" href="#" + onclick="toggleCode('M000091-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000091-source"> +<pre> +<span class="ruby-comment cmt"># File lib/git/base.rb, line 128</span> + <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">log</span>(<span class="ruby-identifier">count</span> = <span class="ruby-value">30</span>) + <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> +</pre> + </div> + </div> + </div> + + <div id="method-M000107" class="method-detail"> + <a name="M000107"></a> + + <div class="method-heading"> + <a href="#M000107" class="method-signature"> + <span class="method-name">merge</span><span class="method-args">(branch, message = 'merge')</span> + </a> + </div> + + <div class="method-description"> + <p><a class="source-toggle" href="#" + onclick="toggleCode('M000107-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000107-source"> +<pre> +<span class="ruby-comment cmt"># File lib/git/base.rb, line 196</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> +</pre> + </div> + </div> + </div> + + <div id="method-M000087" class="method-detail"> + <a name="M000087"></a> + + <div class="method-heading"> + <a href="#M000087" class="method-signature"> + <span class="method-name">object</span><span class="method-args">(objectish)</span> + </a> + </div> + + <div class="method-description"> + <p> +factory methods +</p> + <p><a class="source-toggle" href="#" + onclick="toggleCode('M000087-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000087-source"> +<pre> +<span class="ruby-comment cmt"># File lib/git/base.rb, line 120</span> + <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">object</span>(<span class="ruby-identifier">objectish</span>) + <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> +</pre> + </div> + </div> + </div> + + <div id="method-M000108" class="method-detail"> + <a name="M000108"></a> + + <div class="method-heading"> + <a href="#M000108" class="method-signature"> + <span class="method-name">pull</span><span class="method-args">(remote = 'origin', branch = 'master', message = 'origin pull')</span> + </a> + </div> + + <div class="method-description"> + <p><a class="source-toggle" href="#" + onclick="toggleCode('M000108-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000108-source"> +<pre> +<span class="ruby-comment cmt"># File lib/git/base.rb, line 200</span> + <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">pull</span>(<span class="ruby-identifier">remote</span> = <span class="ruby-value str">'origin'</span>, <span class="ruby-identifier">branch</span> = <span class="ruby-value str">'master'</span>, <span class="ruby-identifier">message</span> = <span class="ruby-value str">'origin pull'</span>) + <span class="ruby-identifier">fetch</span>(<span class="ruby-identifier">remote</span>) + <span class="ruby-identifier">merge</span>(<span class="ruby-identifier">branch</span>, <span class="ruby-identifier">message</span>) + <span class="ruby-keyword kw">end</span> +</pre> + </div> + </div> + </div> + + <div id="method-M000095" class="method-detail"> + <a name="M000095"></a> + + <div class="method-heading"> + <a href="#M000095" class="method-signature"> + <span class="method-name">remote</span><span class="method-args">(remote_name = 'origin')</span> + </a> + </div> + + <div class="method-description"> + <p><a class="source-toggle" href="#" + onclick="toggleCode('M000095-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000095-source"> +<pre> +<span class="ruby-comment cmt"># File lib/git/base.rb, line 144</span> + <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">remote</span>(<span class="ruby-identifier">remote_name</span> = <span class="ruby-value str">'origin'</span>) + <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> +</pre> + </div> + </div> + </div> + + <div id="method-M000109" class="method-detail"> + <a name="M000109"></a> + + <div class="method-heading"> + <a href="#M000109" class="method-signature"> + <span class="method-name">remotes</span><span class="method-args">()</span> + </a> + </div> + + <div class="method-description"> + <p><a class="source-toggle" href="#" + onclick="toggleCode('M000109-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000109-source"> +<pre> +<span class="ruby-comment cmt"># File lib/git/base.rb, line 205</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> +</pre> + </div> + </div> + </div> + + <div id="method-M000100" class="method-detail"> + <a name="M000100"></a> + + <div class="method-heading"> + <a href="#M000100" class="method-signature"> + <span class="method-name">remove</span><span class="method-args">(path = '.', opts = {})</span> + </a> + </div> + + <div class="method-description"> + <p><a class="source-toggle" href="#" + onclick="toggleCode('M000100-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000100-source"> +<pre> +<span class="ruby-comment cmt"># File lib/git/base.rb, line 166</span> + <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">remove</span>(<span class="ruby-identifier">path</span> = <span class="ruby-value str">'.'</span>, <span class="ruby-identifier">opts</span> = {}) + <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> +</pre> + </div> + </div> + </div> + + <div id="method-M000114" class="method-detail"> + <a name="M000114"></a> + + <div class="method-heading"> + <a href="#M000114" class="method-signature"> + <span class="method-name">repack</span><span class="method-args">()</span> + </a> + </div> + + <div class="method-description"> + <p> +convenience methods +</p> + <p><a class="source-toggle" href="#" + onclick="toggleCode('M000114-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000114-source"> +<pre> +<span class="ruby-comment cmt"># File lib/git/base.rb, line 232</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> +</pre> + </div> + </div> + </div> + + <div id="method-M000082" class="method-detail"> + <a name="M000082"></a> + + <div class="method-heading"> + <a href="#M000082" class="method-signature"> + <span class="method-name">repo</span><span class="method-args">()</span> + </a> + </div> + + <div class="method-description"> + <p><a class="source-toggle" href="#" + onclick="toggleCode('M000082-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000082-source"> +<pre> +<span class="ruby-comment cmt"># File lib/git/base.rb, line 79</span> + <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">repo</span> + <span class="ruby-ivar">@repository</span> + <span class="ruby-keyword kw">end</span> +</pre> + </div> + </div> + </div> + + <div id="method-M000085" class="method-detail"> + <a name="M000085"></a> + + <div class="method-heading"> + <a href="#M000085" class="method-signature"> + <span class="method-name">repo_size</span><span class="method-args">()</span> + </a> + </div> + + <div class="method-description"> + <p><a class="source-toggle" href="#" + onclick="toggleCode('M000085-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000085-source"> +<pre> +<span class="ruby-comment cmt"># File lib/git/base.rb, line 93</span> + <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">repo_size</span> + <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> + (<span class="ruby-identifier">size</span>, <span class="ruby-identifier">dot</span>) = <span class="ruby-value">`du -d0`</span>.<span class="ruby-identifier">chomp</span>.<span class="ruby-identifier">split</span> + <span class="ruby-keyword kw">end</span> + <span class="ruby-identifier">size</span>.<span class="ruby-identifier">to_i</span> + <span class="ruby-keyword kw">end</span> +</pre> + </div> + </div> + </div> + + <div id="method-M000101" class="method-detail"> + <a name="M000101"></a> + + <div class="method-heading"> + <a href="#M000101" class="method-signature"> + <span class="method-name">reset</span><span class="method-args">(commitish = nil, opts = {})</span> + </a> + </div> + + <div class="method-description"> + <p><a class="source-toggle" href="#" + onclick="toggleCode('M000101-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000101-source"> +<pre> +<span class="ruby-comment cmt"># File lib/git/base.rb, line 170</span> + <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">reset</span>(<span class="ruby-identifier">commitish</span> = <span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">opts</span> = {}) + <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> +</pre> + </div> + </div> + </div> + + <div id="method-M000102" class="method-detail"> + <a name="M000102"></a> + + <div class="method-heading"> + <a href="#M000102" class="method-signature"> + <span class="method-name">reset_hard</span><span class="method-args">(commitish = nil, opts = {})</span> + </a> + </div> + + <div class="method-description"> + <p><a class="source-toggle" href="#" + onclick="toggleCode('M000102-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000102-source"> +<pre> +<span class="ruby-comment cmt"># File lib/git/base.rb, line 174</span> + <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">reset_hard</span>(<span class="ruby-identifier">commitish</span> = <span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">opts</span> = {}) + <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>) + <span class="ruby-keyword kw">end</span> +</pre> + </div> + </div> + </div> + + <div id="method-M000115" class="method-detail"> + <a name="M000115"></a> + + <div class="method-heading"> + <a href="#M000115" class="method-signature"> + <span class="method-name">revparse</span><span class="method-args">(objectish)</span> + </a> + </div> + + <div class="method-description"> + <p><a class="source-toggle" href="#" + onclick="toggleCode('M000115-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000115-source"> +<pre> +<span class="ruby-comment cmt"># File lib/git/base.rb, line 236</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> +</pre> + </div> + </div> + </div> + + <div id="method-M000092" class="method-detail"> + <a name="M000092"></a> + + <div class="method-heading"> + <a href="#M000092" class="method-signature"> + <span class="method-name">status</span><span class="method-args">()</span> + </a> + </div> + + <div class="method-description"> + <p><a class="source-toggle" href="#" + onclick="toggleCode('M000092-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000092-source"> +<pre> +<span class="ruby-comment cmt"># File lib/git/base.rb, line 132</span> + <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">status</span> + <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> +</pre> + </div> + </div> + </div> + + <div id="method-M000112" class="method-detail"> + <a name="M000112"></a> + + <div class="method-heading"> + <a href="#M000112" class="method-signature"> + <span class="method-name">tag</span><span class="method-args">(tag_name)</span> + </a> + </div> + + <div class="method-description"> + <p><a class="source-toggle" href="#" + onclick="toggleCode('M000112-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000112-source"> +<pre> +<span class="ruby-comment cmt"># File lib/git/base.rb, line 221</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> +</pre> + </div> + </div> + </div> + + <div id="method-M000111" class="method-detail"> + <a name="M000111"></a> + + <div class="method-heading"> + <a href="#M000111" class="method-signature"> + <span class="method-name">tags</span><span class="method-args">()</span> + </a> + </div> + + <div class="method-description"> + <p><a class="source-toggle" href="#" + onclick="toggleCode('M000111-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000111-source"> +<pre> +<span class="ruby-comment cmt"># File lib/git/base.rb, line 217</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> +</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.src/M000076.html b/doc/classes/Git/Base.src/M000076.html new file mode 100644 index 0000000..6d2c44c --- /dev/null +++ b/doc/classes/Git/Base.src/M000076.html @@ -0,0 +1,18 @@ +<?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> +<head> + <title>bare (Git::Base)</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> + <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" /> +</head> +<body class="standalone-code"> + <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>) + <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">new</span> <span class="ruby-identifier">:repository</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">git_dir</span> + <span class="ruby-keyword kw">end</span></pre> +</body> +</html>
\ No newline at end of file diff --git a/doc/classes/Git/Base.src/M000077.html b/doc/classes/Git/Base.src/M000077.html new file mode 100644 index 0000000..829a57a --- /dev/null +++ b/doc/classes/Git/Base.src/M000077.html @@ -0,0 +1,21 @@ +<?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> +<head> + <title>open (Git::Base)</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> + <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" /> +</head> +<body class="standalone-code"> + <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>={}) + <span class="ruby-identifier">default</span> = {<span class="ruby-identifier">:working_directory</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">working_dir</span>} + <span class="ruby-identifier">git_options</span> = <span class="ruby-identifier">default</span>.<span class="ruby-identifier">merge</span>(<span class="ruby-identifier">opts</span>) + + <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">git_options</span>) + <span class="ruby-keyword kw">end</span></pre> +</body> +</html>
\ No newline at end of file diff --git a/doc/classes/Git/Base.src/M000078.html b/doc/classes/Git/Base.src/M000078.html new file mode 100644 index 0000000..d819238 --- /dev/null +++ b/doc/classes/Git/Base.src/M000078.html @@ -0,0 +1,30 @@ +<?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> +<head> + <title>init (Git::Base)</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> + <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" /> +</head> +<body class="standalone-code"> + <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> = {}) + <span class="ruby-identifier">default</span> = {<span class="ruby-identifier">:working_directory</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">working_dir</span>, + <span class="ruby-identifier">:repository</span> =<span class="ruby-operator">></span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-identifier">working_dir</span>, <span class="ruby-value str">'.git'</span>)} + <span class="ruby-identifier">git_options</span> = <span class="ruby-identifier">default</span>.<span class="ruby-identifier">merge</span>(<span class="ruby-identifier">opts</span>) + + <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">git_options</span>[<span class="ruby-identifier">:working_directory</span>] + <span class="ruby-comment cmt"># if !working_dir, make it</span> + <span class="ruby-constant">FileUtils</span>.<span class="ruby-identifier">mkdir_p</span>(<span class="ruby-identifier">git_options</span>[<span class="ruby-identifier">:working_directory</span>]) <span class="ruby-keyword kw">if</span> <span class="ruby-operator">!</span><span class="ruby-constant">File</span>.<span class="ruby-identifier">directory?</span>(<span class="ruby-identifier">git_options</span>[<span class="ruby-identifier">:working_directory</span>]) + <span class="ruby-keyword kw">end</span> + + <span class="ruby-comment cmt"># run git_init there</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-identifier">git_options</span>).<span class="ruby-identifier">init</span> + + <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">git_options</span>) + <span class="ruby-keyword kw">end</span></pre> +</body> +</html>
\ No newline at end of file diff --git a/doc/classes/Git/Base.src/M000079.html b/doc/classes/Git/Base.src/M000079.html new file mode 100644 index 0000000..0e7cd9e --- /dev/null +++ b/doc/classes/Git/Base.src/M000079.html @@ -0,0 +1,19 @@ +<?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> +<head> + <title>clone (Git::Base)</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> + <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" /> +</head> +<body class="standalone-code"> + <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> = {}) + <span class="ruby-comment cmt"># run git-clone </span> + <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">new</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-identifier">clone</span>(<span class="ruby-identifier">repository</span>, <span class="ruby-identifier">name</span>, <span class="ruby-identifier">opts</span>)) + <span class="ruby-keyword kw">end</span></pre> +</body> +</html>
\ No newline at end of file diff --git a/doc/classes/Git/Base.src/M000080.html b/doc/classes/Git/Base.src/M000080.html new file mode 100644 index 0000000..9e4101b --- /dev/null +++ b/doc/classes/Git/Base.src/M000080.html @@ -0,0 +1,25 @@ +<?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> +<head> + <title>new (Git::Base)</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> + <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" /> +</head> +<body class="standalone-code"> + <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> = {}) + <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">working_dir</span> = <span class="ruby-identifier">options</span>[<span class="ruby-identifier">:working_directory</span>] + <span class="ruby-identifier">options</span>[<span class="ruby-identifier">:repository</span>] = <span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-identifier">working_dir</span>, <span class="ruby-value str">'.git'</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-operator">!</span><span class="ruby-identifier">options</span>[<span class="ruby-identifier">:repository</span>] + <span class="ruby-identifier">options</span>[<span class="ruby-identifier">:index</span>] = <span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-identifier">working_dir</span>, <span class="ruby-value str">'.git'</span>, <span class="ruby-value str">'index'</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-operator">!</span><span class="ruby-identifier">options</span>[<span class="ruby-identifier">:index</span>] + <span class="ruby-keyword kw">end</span> + + <span class="ruby-ivar">@working_directory</span> = <span class="ruby-constant">Git</span><span class="ruby-operator">::</span><span class="ruby-constant">WorkingDirectory</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">options</span>[<span class="ruby-identifier">:working_directory</span>]) <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">options</span>[<span class="ruby-identifier">:working_directory</span>] + <span class="ruby-ivar">@repository</span> = <span class="ruby-constant">Git</span><span class="ruby-operator">::</span><span class="ruby-constant">Repository</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">options</span>[<span class="ruby-identifier">:repository</span>]) <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">options</span>[<span class="ruby-identifier">:repository</span>] + <span class="ruby-ivar">@index</span> = <span class="ruby-constant">Git</span><span class="ruby-operator">::</span><span class="ruby-constant">Index</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">options</span>[<span class="ruby-identifier">:index</span>], <span class="ruby-keyword kw">false</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">options</span>[<span class="ruby-identifier">:index</span>] + <span class="ruby-keyword kw">end</span></pre> +</body> +</html>
\ No newline at end of file diff --git a/doc/classes/Git/Base.src/M000081.html b/doc/classes/Git/Base.src/M000081.html new file mode 100644 index 0000000..af48b9f --- /dev/null +++ b/doc/classes/Git/Base.src/M000081.html @@ -0,0 +1,18 @@ +<?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> +<head> + <title>dir (Git::Base)</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> + <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" /> +</head> +<body class="standalone-code"> + <pre><span class="ruby-comment cmt"># File lib/git/base.rb, line 75</span> + <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">dir</span> + <span class="ruby-ivar">@working_directory</span> + <span class="ruby-keyword kw">end</span></pre> +</body> +</html>
\ No newline at end of file diff --git a/doc/classes/Git/Base.src/M000082.html b/doc/classes/Git/Base.src/M000082.html new file mode 100644 index 0000000..508e31b --- /dev/null +++ b/doc/classes/Git/Base.src/M000082.html @@ -0,0 +1,18 @@ +<?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> +<head> + <title>repo (Git::Base)</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> + <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" /> +</head> +<body class="standalone-code"> + <pre><span class="ruby-comment cmt"># File lib/git/base.rb, line 79</span> + <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">repo</span> + <span class="ruby-ivar">@repository</span> + <span class="ruby-keyword kw">end</span></pre> +</body> +</html>
\ No newline at end of file diff --git a/doc/classes/Git/Base.src/M000083.html b/doc/classes/Git/Base.src/M000083.html new file mode 100644 index 0000000..59c45ad --- /dev/null +++ b/doc/classes/Git/Base.src/M000083.html @@ -0,0 +1,18 @@ +<?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> +<head> + <title>index (Git::Base)</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> + <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" /> +</head> +<body class="standalone-code"> + <pre><span class="ruby-comment cmt"># File lib/git/base.rb, line 83</span> + <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">index</span> + <span class="ruby-ivar">@index</span> + <span class="ruby-keyword kw">end</span></pre> +</body> +</html>
\ No newline at end of file diff --git a/doc/classes/Git/Base.src/M000084.html b/doc/classes/Git/Base.src/M000084.html new file mode 100644 index 0000000..08b3b4a --- /dev/null +++ b/doc/classes/Git/Base.src/M000084.html @@ -0,0 +1,20 @@ +<?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> +<head> + <title>chdir (Git::Base)</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> + <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" /> +</head> +<body class="standalone-code"> + <pre><span class="ruby-comment cmt"># File lib/git/base.rb, line 87</span> + <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">chdir</span> + <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> + <span class="ruby-keyword kw">end</span> + <span class="ruby-keyword kw">end</span></pre> +</body> +</html>
\ No newline at end of file diff --git a/doc/classes/Git/Base.src/M000085.html b/doc/classes/Git/Base.src/M000085.html new file mode 100644 index 0000000..328cc26 --- /dev/null +++ b/doc/classes/Git/Base.src/M000085.html @@ -0,0 +1,22 @@ +<?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> +<head> + <title>repo_size (Git::Base)</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> + <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" /> +</head> +<body class="standalone-code"> + <pre><span class="ruby-comment cmt"># File lib/git/base.rb, line 93</span> + <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">repo_size</span> + <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> + (<span class="ruby-identifier">size</span>, <span class="ruby-identifier">dot</span>) = <span class="ruby-value">`du -d0`</span>.<span class="ruby-identifier">chomp</span>.<span class="ruby-identifier">split</span> + <span class="ruby-keyword kw">end</span> + <span class="ruby-identifier">size</span>.<span class="ruby-identifier">to_i</span> + <span class="ruby-keyword kw">end</span></pre> +</body> +</html>
\ No newline at end of file diff --git a/doc/classes/Git/Base.src/M000086.html b/doc/classes/Git/Base.src/M000086.html new file mode 100644 index 0000000..681b967 --- /dev/null +++ b/doc/classes/Git/Base.src/M000086.html @@ -0,0 +1,27 @@ +<?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> +<head> + <title>config (Git::Base)</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> + <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" /> +</head> +<body class="standalone-code"> + <pre><span class="ruby-comment cmt"># File lib/git/base.rb, line 105</span> + <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">config</span>(<span class="ruby-identifier">name</span> = <span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">value</span> = <span class="ruby-keyword kw">nil</span>) + <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> + <span class="ruby-identifier">lib</span>.<span class="ruby-identifier">config_set</span>(<span class="ruby-identifier">name</span>, <span class="ruby-identifier">value</span>) + <span class="ruby-keyword kw">elsif</span> (<span class="ruby-identifier">name</span>) + <span class="ruby-comment cmt"># return value</span> + <span class="ruby-identifier">lib</span>.<span class="ruby-identifier">config_get</span>(<span class="ruby-identifier">name</span>) + <span class="ruby-keyword kw">else</span> + <span class="ruby-comment cmt"># return hash</span> + <span class="ruby-identifier">lib</span>.<span class="ruby-identifier">config_list</span> + <span class="ruby-keyword kw">end</span> + <span class="ruby-keyword kw">end</span></pre> +</body> +</html>
\ No newline at end of file diff --git a/doc/classes/Git/Base.src/M000087.html b/doc/classes/Git/Base.src/M000087.html new file mode 100644 index 0000000..acf9352 --- /dev/null +++ b/doc/classes/Git/Base.src/M000087.html @@ -0,0 +1,18 @@ +<?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> +<head> + <title>object (Git::Base)</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> + <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" /> +</head> +<body class="standalone-code"> + <pre><span class="ruby-comment cmt"># File lib/git/base.rb, line 120</span> + <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">object</span>(<span class="ruby-identifier">objectish</span>) + <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></pre> +</body> +</html>
\ No newline at end of file diff --git a/doc/classes/Git/Base.src/M000091.html b/doc/classes/Git/Base.src/M000091.html new file mode 100644 index 0000000..3871e7f --- /dev/null +++ b/doc/classes/Git/Base.src/M000091.html @@ -0,0 +1,18 @@ +<?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> +<head> + <title>log (Git::Base)</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> + <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" /> +</head> +<body class="standalone-code"> + <pre><span class="ruby-comment cmt"># File lib/git/base.rb, line 128</span> + <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">log</span>(<span class="ruby-identifier">count</span> = <span class="ruby-value">30</span>) + <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></pre> +</body> +</html>
\ No newline at end of file diff --git a/doc/classes/Git/Base.src/M000092.html b/doc/classes/Git/Base.src/M000092.html new file mode 100644 index 0000000..a64f5ef --- /dev/null +++ b/doc/classes/Git/Base.src/M000092.html @@ -0,0 +1,18 @@ +<?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> +<head> + <title>status (Git::Base)</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> + <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" /> +</head> +<body class="standalone-code"> + <pre><span class="ruby-comment cmt"># File lib/git/base.rb, line 132</span> + <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">status</span> + <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></pre> +</body> +</html>
\ No newline at end of file diff --git a/doc/classes/Git/Base.src/M000093.html b/doc/classes/Git/Base.src/M000093.html new file mode 100644 index 0000000..977b9a9 --- /dev/null +++ b/doc/classes/Git/Base.src/M000093.html @@ -0,0 +1,18 @@ +<?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> +<head> + <title>branches (Git::Base)</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> + <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" /> +</head> +<body class="standalone-code"> + <pre><span class="ruby-comment cmt"># File lib/git/base.rb, line 136</span> + <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">branches</span> + <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></pre> +</body> +</html>
\ No newline at end of file diff --git a/doc/classes/Git/Base.src/M000094.html b/doc/classes/Git/Base.src/M000094.html new file mode 100644 index 0000000..303818a --- /dev/null +++ b/doc/classes/Git/Base.src/M000094.html @@ -0,0 +1,18 @@ +<?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> +<head> + <title>branch (Git::Base)</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> + <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" /> +</head> +<body class="standalone-code"> + <pre><span class="ruby-comment cmt"># File lib/git/base.rb, line 140</span> + <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">branch</span>(<span class="ruby-identifier">branch_name</span> = <span class="ruby-value str">'master'</span>) + <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></pre> +</body> +</html>
\ No newline at end of file diff --git a/doc/classes/Git/Base.src/M000095.html b/doc/classes/Git/Base.src/M000095.html new file mode 100644 index 0000000..5fb3dcd --- /dev/null +++ b/doc/classes/Git/Base.src/M000095.html @@ -0,0 +1,18 @@ +<?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> +<head> + <title>remote (Git::Base)</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> + <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" /> +</head> +<body class="standalone-code"> + <pre><span class="ruby-comment cmt"># File lib/git/base.rb, line 144</span> + <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">remote</span>(<span class="ruby-identifier">remote_name</span> = <span class="ruby-value str">'origin'</span>) + <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></pre> +</body> +</html>
\ No newline at end of file diff --git a/doc/classes/Git/Base.src/M000096.html b/doc/classes/Git/Base.src/M000096.html new file mode 100644 index 0000000..be6fedd --- /dev/null +++ b/doc/classes/Git/Base.src/M000096.html @@ -0,0 +1,18 @@ +<?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> +<head> + <title>lib (Git::Base)</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> + <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" /> +</head> +<body class="standalone-code"> + <pre><span class="ruby-comment cmt"># File lib/git/base.rb, line 149</span> + <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">lib</span> + <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></pre> +</body> +</html>
\ No newline at end of file diff --git a/doc/classes/Git/Base.src/M000097.html b/doc/classes/Git/Base.src/M000097.html new file mode 100644 index 0000000..ae8babb --- /dev/null +++ b/doc/classes/Git/Base.src/M000097.html @@ -0,0 +1,18 @@ +<?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> +<head> + <title>grep (Git::Base)</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> + <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" /> +</head> +<body class="standalone-code"> + <pre><span class="ruby-comment cmt"># File lib/git/base.rb, line 153</span> + <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">grep</span>(<span class="ruby-identifier">string</span>) + <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></pre> +</body> +</html>
\ No newline at end of file diff --git a/doc/classes/Git/Base.src/M000098.html b/doc/classes/Git/Base.src/M000098.html new file mode 100644 index 0000000..1da549e --- /dev/null +++ b/doc/classes/Git/Base.src/M000098.html @@ -0,0 +1,18 @@ +<?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> +<head> + <title>diff (Git::Base)</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> + <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" /> +</head> +<body class="standalone-code"> + <pre><span class="ruby-comment cmt"># File lib/git/base.rb, line 157</span> + <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">diff</span>(<span class="ruby-identifier">objectish</span> = <span class="ruby-value str">'HEAD'</span>, <span class="ruby-identifier">obj2</span> = <span class="ruby-keyword kw">nil</span>) + <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></pre> +</body> +</html>
\ No newline at end of file diff --git a/doc/classes/Git/Base.src/M000099.html b/doc/classes/Git/Base.src/M000099.html new file mode 100644 index 0000000..4a476c6 --- /dev/null +++ b/doc/classes/Git/Base.src/M000099.html @@ -0,0 +1,18 @@ +<?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> +<head> + <title>add (Git::Base)</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> + <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" /> +</head> +<body class="standalone-code"> + <pre><span class="ruby-comment cmt"># File lib/git/base.rb, line 162</span> + <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">add</span>(<span class="ruby-identifier">path</span> = <span class="ruby-value str">'.'</span>) + <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></pre> +</body> +</html>
\ No newline at end of file diff --git a/doc/classes/Git/Base.src/M000100.html b/doc/classes/Git/Base.src/M000100.html new file mode 100644 index 0000000..1c3e24a --- /dev/null +++ b/doc/classes/Git/Base.src/M000100.html @@ -0,0 +1,18 @@ +<?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> +<head> + <title>remove (Git::Base)</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> + <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" /> +</head> +<body class="standalone-code"> + <pre><span class="ruby-comment cmt"># File lib/git/base.rb, line 166</span> + <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">remove</span>(<span class="ruby-identifier">path</span> = <span class="ruby-value str">'.'</span>, <span class="ruby-identifier">opts</span> = {}) + <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></pre> +</body> +</html>
\ No newline at end of file diff --git a/doc/classes/Git/Base.src/M000101.html b/doc/classes/Git/Base.src/M000101.html new file mode 100644 index 0000000..c665284 --- /dev/null +++ b/doc/classes/Git/Base.src/M000101.html @@ -0,0 +1,18 @@ +<?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> +<head> + <title>reset (Git::Base)</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> + <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" /> +</head> +<body class="standalone-code"> + <pre><span class="ruby-comment cmt"># File lib/git/base.rb, line 170</span> + <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">reset</span>(<span class="ruby-identifier">commitish</span> = <span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">opts</span> = {}) + <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></pre> +</body> +</html>
\ No newline at end of file diff --git a/doc/classes/Git/Base.src/M000102.html b/doc/classes/Git/Base.src/M000102.html new file mode 100644 index 0000000..5c93ac6 --- /dev/null +++ b/doc/classes/Git/Base.src/M000102.html @@ -0,0 +1,19 @@ +<?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> +<head> + <title>reset_hard (Git::Base)</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> + <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" /> +</head> +<body class="standalone-code"> + <pre><span class="ruby-comment cmt"># File lib/git/base.rb, line 174</span> + <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">reset_hard</span>(<span class="ruby-identifier">commitish</span> = <span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">opts</span> = {}) + <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>) + <span class="ruby-keyword kw">end</span></pre> +</body> +</html>
\ No newline at end of file diff --git a/doc/classes/Git/Base.src/M000103.html b/doc/classes/Git/Base.src/M000103.html new file mode 100644 index 0000000..c96c8ce --- /dev/null +++ b/doc/classes/Git/Base.src/M000103.html @@ -0,0 +1,18 @@ +<?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> +<head> + <title>commit (Git::Base)</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> + <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" /> +</head> +<body class="standalone-code"> + <pre><span class="ruby-comment cmt"># File lib/git/base.rb, line 179</span> + <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">commit</span>(<span class="ruby-identifier">message</span>, <span class="ruby-identifier">opts</span> = {}) + <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></pre> +</body> +</html>
\ No newline at end of file diff --git a/doc/classes/Git/Base.src/M000104.html b/doc/classes/Git/Base.src/M000104.html new file mode 100644 index 0000000..36ccb9e --- /dev/null +++ b/doc/classes/Git/Base.src/M000104.html @@ -0,0 +1,19 @@ +<?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> +<head> + <title>commit_all (Git::Base)</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> + <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" /> +</head> +<body class="standalone-code"> + <pre><span class="ruby-comment cmt"># File lib/git/base.rb, line 183</span> + <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">commit_all</span>(<span class="ruby-identifier">message</span>, <span class="ruby-identifier">opts</span> = {}) + <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>) + <span class="ruby-keyword kw">end</span></pre> +</body> +</html>
\ No newline at end of file diff --git a/doc/classes/Git/Base.src/M000105.html b/doc/classes/Git/Base.src/M000105.html new file mode 100644 index 0000000..cc9ee48 --- /dev/null +++ b/doc/classes/Git/Base.src/M000105.html @@ -0,0 +1,18 @@ +<?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> +<head> + <title>checkout (Git::Base)</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> + <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" /> +</head> +<body class="standalone-code"> + <pre><span class="ruby-comment cmt"># File lib/git/base.rb, line 188</span> + <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">checkout</span>(<span class="ruby-identifier">branch</span>, <span class="ruby-identifier">opts</span> = {}) + <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">lib</span>.<span class="ruby-identifier">checkout</span>(<span class="ruby-identifier">branch</span>, <span class="ruby-identifier">opts</span>) + <span class="ruby-keyword kw">end</span></pre> +</body> +</html>
\ No newline at end of file diff --git a/doc/classes/Git/Base.src/M000106.html b/doc/classes/Git/Base.src/M000106.html new file mode 100644 index 0000000..9624ceb --- /dev/null +++ b/doc/classes/Git/Base.src/M000106.html @@ -0,0 +1,18 @@ +<?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> +<head> + <title>fetch (Git::Base)</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> + <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" /> +</head> +<body class="standalone-code"> + <pre><span class="ruby-comment cmt"># File lib/git/base.rb, line 192</span> + <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">fetch</span>(<span class="ruby-identifier">remote</span> = <span class="ruby-value str">'origin'</span>) + <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></pre> +</body> +</html>
\ No newline at end of file diff --git a/doc/classes/Git/Base.src/M000107.html b/doc/classes/Git/Base.src/M000107.html new file mode 100644 index 0000000..f4ae943 --- /dev/null +++ b/doc/classes/Git/Base.src/M000107.html @@ -0,0 +1,18 @@ +<?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> +<head> + <title>merge (Git::Base)</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> + <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" /> +</head> +<body class="standalone-code"> + <pre><span class="ruby-comment cmt"># File lib/git/base.rb, line 196</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></pre> +</body> +</html>
\ No newline at end of file diff --git a/doc/classes/Git/Base.src/M000108.html b/doc/classes/Git/Base.src/M000108.html new file mode 100644 index 0000000..7a9effb --- /dev/null +++ b/doc/classes/Git/Base.src/M000108.html @@ -0,0 +1,19 @@ +<?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> +<head> + <title>pull (Git::Base)</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> + <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" /> +</head> +<body class="standalone-code"> + <pre><span class="ruby-comment cmt"># File lib/git/base.rb, line 200</span> + <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">pull</span>(<span class="ruby-identifier">remote</span> = <span class="ruby-value str">'origin'</span>, <span class="ruby-identifier">branch</span> = <span class="ruby-value str">'master'</span>, <span class="ruby-identifier">message</span> = <span class="ruby-value str">'origin pull'</span>) + <span class="ruby-identifier">fetch</span>(<span class="ruby-identifier">remote</span>) + <span class="ruby-identifier">merge</span>(<span class="ruby-identifier">branch</span>, <span class="ruby-identifier">message</span>) + <span class="ruby-keyword kw">end</span></pre> +</body> +</html>
\ No newline at end of file diff --git a/doc/classes/Git/Base.src/M000109.html b/doc/classes/Git/Base.src/M000109.html new file mode 100644 index 0000000..d95f289 --- /dev/null +++ b/doc/classes/Git/Base.src/M000109.html @@ -0,0 +1,18 @@ +<?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> +<head> + <title>remotes (Git::Base)</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> + <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" /> +</head> +<body class="standalone-code"> + <pre><span class="ruby-comment cmt"># File lib/git/base.rb, line 205</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></pre> +</body> +</html>
\ No newline at end of file diff --git a/doc/classes/Git/Base.src/M000110.html b/doc/classes/Git/Base.src/M000110.html new file mode 100644 index 0000000..b2d3347 --- /dev/null +++ b/doc/classes/Git/Base.src/M000110.html @@ -0,0 +1,22 @@ +<?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> +<head> + <title>add_remote (Git::Base)</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> + <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" /> +</head> +<body class="standalone-code"> + <pre><span class="ruby-comment cmt"># File lib/git/base.rb, line 209</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> + <span class="ruby-keyword kw">end</span> + <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">lib</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-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">name</span>) + <span class="ruby-keyword kw">end</span></pre> +</body> +</html>
\ No newline at end of file diff --git a/doc/classes/Git/Base.src/M000111.html b/doc/classes/Git/Base.src/M000111.html new file mode 100644 index 0000000..2565603 --- /dev/null +++ b/doc/classes/Git/Base.src/M000111.html @@ -0,0 +1,18 @@ +<?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> +<head> + <title>tags (Git::Base)</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> + <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" /> +</head> +<body class="standalone-code"> + <pre><span class="ruby-comment cmt"># File lib/git/base.rb, line 217</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></pre> +</body> +</html>
\ No newline at end of file diff --git a/doc/classes/Git/Base.src/M000112.html b/doc/classes/Git/Base.src/M000112.html new file mode 100644 index 0000000..f98043f --- /dev/null +++ b/doc/classes/Git/Base.src/M000112.html @@ -0,0 +1,18 @@ +<?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> +<head> + <title>tag (Git::Base)</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> + <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" /> +</head> +<body class="standalone-code"> + <pre><span class="ruby-comment cmt"># File lib/git/base.rb, line 221</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></pre> +</body> +</html>
\ No newline at end of file diff --git a/doc/classes/Git/Base.src/M000113.html b/doc/classes/Git/Base.src/M000113.html new file mode 100644 index 0000000..01e0856 --- /dev/null +++ b/doc/classes/Git/Base.src/M000113.html @@ -0,0 +1,19 @@ +<?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> +<head> + <title>add_tag (Git::Base)</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> + <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" /> +</head> +<body class="standalone-code"> + <pre><span class="ruby-comment cmt"># File lib/git/base.rb, line 225</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>) + <span class="ruby-keyword kw">end</span></pre> +</body> +</html>
\ No newline at end of file diff --git a/doc/classes/Git/Base.src/M000114.html b/doc/classes/Git/Base.src/M000114.html new file mode 100644 index 0000000..123b131 --- /dev/null +++ b/doc/classes/Git/Base.src/M000114.html @@ -0,0 +1,18 @@ +<?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> +<head> + <title>repack (Git::Base)</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> + <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" /> +</head> +<body class="standalone-code"> + <pre><span class="ruby-comment cmt"># File lib/git/base.rb, line 232</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></pre> +</body> +</html>
\ No newline at end of file diff --git a/doc/classes/Git/Base.src/M000115.html b/doc/classes/Git/Base.src/M000115.html new file mode 100644 index 0000000..676c923 --- /dev/null +++ b/doc/classes/Git/Base.src/M000115.html @@ -0,0 +1,18 @@ +<?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> +<head> + <title>revparse (Git::Base)</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> + <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" /> +</head> +<body class="standalone-code"> + <pre><span class="ruby-comment cmt"># File lib/git/base.rb, line 236</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></pre> +</body> +</html>
\ No newline at end of file diff --git a/doc/classes/Git/Base.src/M000116.html b/doc/classes/Git/Base.src/M000116.html new file mode 100644 index 0000000..6b6f91d --- /dev/null +++ b/doc/classes/Git/Base.src/M000116.html @@ -0,0 +1,18 @@ +<?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> +<head> + <title>current_branch (Git::Base)</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> + <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" /> +</head> +<body class="standalone-code"> + <pre><span class="ruby-comment cmt"># File lib/git/base.rb, line 240</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></pre> +</body> +</html>
\ No newline at end of file diff --git a/doc/classes/Git/Branch.html b/doc/classes/Git/Branch.html new file mode 100644 index 0000000..aa97d6b --- /dev/null +++ b/doc/classes/Git/Branch.html @@ -0,0 +1,429 @@ +<?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::Branch</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::Branch</td> + </tr> + <tr class="top-aligned-row"> + <td><strong>In:</strong></td> + <td> + <a href="../../files/lib/git/branch_rb.html"> + lib/git/branch.rb + </a> + <br /> + </td> + </tr> + + <tr class="top-aligned-row"> + <td><strong>Parent:</strong></td> + <td> + <a href="Path.html"> + Path + </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="#M000068">checkout</a> + <a href="#M000070">create</a> + <a href="#M000072">current</a> + <a href="#M000071">delete</a> + <a href="#M000067">gcommit</a> + <a href="#M000069">in_branch</a> + <a href="#M000073">merge</a> + <a href="#M000066">new</a> + <a href="#M000074">to_a</a> + <a href="#M000075">to_s</a> + </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">full</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> + <tr class="top-aligned-row context-row"> + <td class="context-item-name">remote</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-M000066" class="method-detail"> + <a name="M000066"></a> + + <div class="method-heading"> + <a href="#M000066" class="method-signature"> + <span class="method-name">new</span><span class="method-args">(base, name)</span> + </a> + </div> + + <div class="method-description"> + <p><a class="source-toggle" href="#" + onclick="toggleCode('M000066-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000066-source"> +<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>) + <span class="ruby-ivar">@remote</span> = <span class="ruby-keyword kw">nil</span> + <span class="ruby-ivar">@full</span> = <span class="ruby-identifier">name</span> + <span class="ruby-ivar">@base</span> = <span class="ruby-identifier">base</span> + + <span class="ruby-identifier">parts</span> = <span class="ruby-identifier">name</span>.<span class="ruby-identifier">split</span>(<span class="ruby-value str">'/'</span>) + <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">parts</span>[<span class="ruby-value">1</span>] + <span class="ruby-ivar">@remote</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-ivar">@base</span>, <span class="ruby-identifier">parts</span>[<span class="ruby-value">0</span>]) + <span class="ruby-ivar">@name</span> = <span class="ruby-identifier">parts</span>[<span class="ruby-value">1</span>] + <span class="ruby-keyword kw">else</span> + <span class="ruby-ivar">@name</span> = <span class="ruby-identifier">parts</span>[<span class="ruby-value">0</span>] + <span class="ruby-keyword kw">end</span> + <span class="ruby-keyword kw">end</span> +</pre> + </div> + </div> + </div> + + <h3 class="section-bar">Public Instance methods</h3> + + <div id="method-M000068" class="method-detail"> + <a name="M000068"></a> + + <div class="method-heading"> + <a href="#M000068" class="method-signature"> + <span class="method-name">checkout</span><span class="method-args">()</span> + </a> + </div> + + <div class="method-description"> + <p><a class="source-toggle" href="#" + onclick="toggleCode('M000068-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000068-source"> +<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> + <span class="ruby-identifier">check_if_create</span> + <span class="ruby-ivar">@base</span>.<span class="ruby-identifier">checkout</span>(<span class="ruby-ivar">@name</span>) + <span class="ruby-keyword kw">end</span> +</pre> + </div> + </div> + </div> + + <div id="method-M000070" class="method-detail"> + <a name="M000070"></a> + + <div class="method-heading"> + <a href="#M000070" class="method-signature"> + <span class="method-name">create</span><span class="method-args">()</span> + </a> + </div> + + <div class="method-description"> + <p><a class="source-toggle" href="#" + onclick="toggleCode('M000070-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000070-source"> +<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> + <span class="ruby-identifier">check_if_create</span> + <span class="ruby-keyword kw">end</span> +</pre> + </div> + </div> + </div> + + <div id="method-M000072" class="method-detail"> + <a name="M000072"></a> + + <div class="method-heading"> + <a href="#M000072" class="method-signature"> + <span class="method-name">current</span><span class="method-args">()</span> + </a> + </div> + + <div class="method-description"> + <p><a class="source-toggle" href="#" + onclick="toggleCode('M000072-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000072-source"> +<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> + <span class="ruby-identifier">determine_current</span> + <span class="ruby-keyword kw">end</span> +</pre> + </div> + </div> + </div> + + <div id="method-M000071" class="method-detail"> + <a name="M000071"></a> + + <div class="method-heading"> + <a href="#M000071" class="method-signature"> + <span class="method-name">delete</span><span class="method-args">()</span> + </a> + </div> + + <div class="method-description"> + <p><a class="source-toggle" href="#" + onclick="toggleCode('M000071-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000071-source"> +<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> + <span class="ruby-ivar">@base</span>.<span class="ruby-identifier">lib</span>.<span class="ruby-identifier">branch_delete</span>(<span class="ruby-ivar">@name</span>) + <span class="ruby-keyword kw">end</span> +</pre> + </div> + </div> + </div> + + <div id="method-M000067" class="method-detail"> + <a name="M000067"></a> + + <div class="method-heading"> + <a href="#M000067" class="method-signature"> + <span class="method-name">gcommit</span><span class="method-args">()</span> + </a> + </div> + + <div class="method-description"> + <p><a class="source-toggle" href="#" + onclick="toggleCode('M000067-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000067-source"> +<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> + <span class="ruby-ivar">@gcommit</span> = <span class="ruby-ivar">@base</span>.<span class="ruby-identifier">object</span>(<span class="ruby-identifier">name</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-operator">!</span><span class="ruby-ivar">@gcommit</span> + <span class="ruby-ivar">@gcommit</span> + <span class="ruby-keyword kw">end</span> +</pre> + </div> + </div> + </div> + + <div id="method-M000069" class="method-detail"> + <a name="M000069"></a> + + <div class="method-heading"> + <a href="#M000069" class="method-signature"> + <span class="method-name">in_branch</span><span class="method-args">(message = 'in branch work') {|| ...}</span> + </a> + </div> + + <div class="method-description"> + <p> +g.branch(‘new_branch’).<a +href="Branch.html#M000069">in_branch</a> do +</p> +<pre> + # create new file + # do other stuff + return true # auto commits and switches back +</pre> +<p> +end +</p> + <p><a class="source-toggle" href="#" + onclick="toggleCode('M000069-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000069-source"> +<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>) + <span class="ruby-identifier">old_current</span> = <span class="ruby-ivar">@base</span>.<span class="ruby-identifier">lib</span>.<span class="ruby-identifier">branch_current</span> + <span class="ruby-identifier">checkout</span> + <span class="ruby-keyword kw">if</span> <span class="ruby-keyword kw">yield</span> + <span class="ruby-ivar">@base</span>.<span class="ruby-identifier">commit_all</span>(<span class="ruby-identifier">message</span>) + <span class="ruby-keyword kw">else</span> + <span class="ruby-ivar">@base</span>.<span class="ruby-identifier">reset_hard</span> + <span class="ruby-keyword kw">end</span> + <span class="ruby-ivar">@base</span>.<span class="ruby-identifier">checkout</span>(<span class="ruby-identifier">old_current</span>) + <span class="ruby-keyword kw">end</span> +</pre> + </div> + </div> + </div> + + <div id="method-M000073" class="method-detail"> + <a name="M000073"></a> + + <div class="method-heading"> + <a href="#M000073" class="method-signature"> + <span class="method-name">merge</span><span class="method-args">(branch = nil, message = nil)</span> + </a> + </div> + + <div class="method-description"> + <p><a class="source-toggle" href="#" + onclick="toggleCode('M000073-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000073-source"> +<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>) + <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">branch</span> + <span class="ruby-identifier">in_branch</span> <span class="ruby-keyword kw">do</span> + <span class="ruby-ivar">@base</span>.<span class="ruby-identifier">merge</span>(<span class="ruby-identifier">branch</span>, <span class="ruby-identifier">message</span>) + <span class="ruby-keyword kw">false</span> + <span class="ruby-keyword kw">end</span> + <span class="ruby-comment cmt"># merge a branch into this one</span> + <span class="ruby-keyword kw">else</span> + <span class="ruby-comment cmt"># merge this branch into the current one</span> + <span class="ruby-ivar">@base</span>.<span class="ruby-identifier">merge</span>(<span class="ruby-ivar">@name</span>) + <span class="ruby-keyword kw">end</span> + <span class="ruby-keyword kw">end</span> +</pre> + </div> + </div> + </div> + + <div id="method-M000074" class="method-detail"> + <a name="M000074"></a> + + <div class="method-heading"> + <a href="#M000074" class="method-signature"> + <span class="method-name">to_a</span><span class="method-args">()</span> + </a> + </div> + + <div class="method-description"> + <p><a class="source-toggle" href="#" + onclick="toggleCode('M000074-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000074-source"> +<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> + [<span class="ruby-ivar">@full</span>] + <span class="ruby-keyword kw">end</span> +</pre> + </div> + </div> + </div> + + <div id="method-M000075" class="method-detail"> + <a name="M000075"></a> + + <div class="method-heading"> + <a href="#M000075" class="method-signature"> + <span class="method-name">to_s</span><span class="method-args">()</span> + </a> + </div> + + <div class="method-description"> + <p><a class="source-toggle" href="#" + onclick="toggleCode('M000075-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000075-source"> +<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> + <span class="ruby-ivar">@full</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/Branch.src/M000066.html b/doc/classes/Git/Branch.src/M000066.html new file mode 100644 index 0000000..ebee250 --- /dev/null +++ b/doc/classes/Git/Branch.src/M000066.html @@ -0,0 +1,28 @@ +<?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> +<head> + <title>new (Git::Branch)</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> + <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" /> +</head> +<body class="standalone-code"> + <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>) + <span class="ruby-ivar">@remote</span> = <span class="ruby-keyword kw">nil</span> + <span class="ruby-ivar">@full</span> = <span class="ruby-identifier">name</span> + <span class="ruby-ivar">@base</span> = <span class="ruby-identifier">base</span> + + <span class="ruby-identifier">parts</span> = <span class="ruby-identifier">name</span>.<span class="ruby-identifier">split</span>(<span class="ruby-value str">'/'</span>) + <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">parts</span>[<span class="ruby-value">1</span>] + <span class="ruby-ivar">@remote</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-ivar">@base</span>, <span class="ruby-identifier">parts</span>[<span class="ruby-value">0</span>]) + <span class="ruby-ivar">@name</span> = <span class="ruby-identifier">parts</span>[<span class="ruby-value">1</span>] + <span class="ruby-keyword kw">else</span> + <span class="ruby-ivar">@name</span> = <span class="ruby-identifier">parts</span>[<span class="ruby-value">0</span>] + <span class="ruby-keyword kw">end</span> + <span class="ruby-keyword kw">end</span></pre> +</body> +</html>
\ No newline at end of file diff --git a/doc/classes/Git/Branch.src/M000067.html b/doc/classes/Git/Branch.src/M000067.html new file mode 100644 index 0000000..181adce --- /dev/null +++ b/doc/classes/Git/Branch.src/M000067.html @@ -0,0 +1,19 @@ +<?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> +<head> + <title>gcommit (Git::Branch)</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> + <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" /> +</head> +<body class="standalone-code"> + <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> + <span class="ruby-ivar">@gcommit</span> = <span class="ruby-ivar">@base</span>.<span class="ruby-identifier">object</span>(<span class="ruby-identifier">name</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-operator">!</span><span class="ruby-ivar">@gcommit</span> + <span class="ruby-ivar">@gcommit</span> + <span class="ruby-keyword kw">end</span></pre> +</body> +</html>
\ No newline at end of file diff --git a/doc/classes/Git/Branch.src/M000068.html b/doc/classes/Git/Branch.src/M000068.html new file mode 100644 index 0000000..30ef49c --- /dev/null +++ b/doc/classes/Git/Branch.src/M000068.html @@ -0,0 +1,19 @@ +<?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> +<head> + <title>checkout (Git::Branch)</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> + <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" /> +</head> +<body class="standalone-code"> + <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> + <span class="ruby-identifier">check_if_create</span> + <span class="ruby-ivar">@base</span>.<span class="ruby-identifier">checkout</span>(<span class="ruby-ivar">@name</span>) + <span class="ruby-keyword kw">end</span></pre> +</body> +</html>
\ No newline at end of file diff --git a/doc/classes/Git/Branch.src/M000069.html b/doc/classes/Git/Branch.src/M000069.html new file mode 100644 index 0000000..b435312 --- /dev/null +++ b/doc/classes/Git/Branch.src/M000069.html @@ -0,0 +1,25 @@ +<?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> +<head> + <title>in_branch (Git::Branch)</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> + <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" /> +</head> +<body class="standalone-code"> + <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>) + <span class="ruby-identifier">old_current</span> = <span class="ruby-ivar">@base</span>.<span class="ruby-identifier">lib</span>.<span class="ruby-identifier">branch_current</span> + <span class="ruby-identifier">checkout</span> + <span class="ruby-keyword kw">if</span> <span class="ruby-keyword kw">yield</span> + <span class="ruby-ivar">@base</span>.<span class="ruby-identifier">commit_all</span>(<span class="ruby-identifier">message</span>) + <span class="ruby-keyword kw">else</span> + <span class="ruby-ivar">@base</span>.<span class="ruby-identifier">reset_hard</span> + <span class="ruby-keyword kw">end</span> + <span class="ruby-ivar">@base</span>.<span class="ruby-identifier">checkout</span>(<span class="ruby-identifier">old_current</span>) + <span class="ruby-keyword kw">end</span></pre> +</body> +</html>
\ No newline at end of file diff --git a/doc/classes/Git/Branch.src/M000070.html b/doc/classes/Git/Branch.src/M000070.html new file mode 100644 index 0000000..9aadb89 --- /dev/null +++ b/doc/classes/Git/Branch.src/M000070.html @@ -0,0 +1,18 @@ +<?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> +<head> + <title>create (Git::Branch)</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> + <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" /> +</head> +<body class="standalone-code"> + <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> + <span class="ruby-identifier">check_if_create</span> + <span class="ruby-keyword kw">end</span></pre> +</body> +</html>
\ No newline at end of file diff --git a/doc/classes/Git/Branch.src/M000071.html b/doc/classes/Git/Branch.src/M000071.html new file mode 100644 index 0000000..9c00966 --- /dev/null +++ b/doc/classes/Git/Branch.src/M000071.html @@ -0,0 +1,18 @@ +<?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> +<head> + <title>delete (Git::Branch)</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> + <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" /> +</head> +<body class="standalone-code"> + <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> + <span class="ruby-ivar">@base</span>.<span class="ruby-identifier">lib</span>.<span class="ruby-identifier">branch_delete</span>(<span class="ruby-ivar">@name</span>) + <span class="ruby-keyword kw">end</span></pre> +</body> +</html>
\ No newline at end of file diff --git a/doc/classes/Git/Branch.src/M000072.html b/doc/classes/Git/Branch.src/M000072.html new file mode 100644 index 0000000..13ca381 --- /dev/null +++ b/doc/classes/Git/Branch.src/M000072.html @@ -0,0 +1,18 @@ +<?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> +<head> + <title>current (Git::Branch)</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> + <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" /> +</head> +<body class="standalone-code"> + <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> + <span class="ruby-identifier">determine_current</span> + <span class="ruby-keyword kw">end</span></pre> +</body> +</html>
\ No newline at end of file diff --git a/doc/classes/Git/Branch.src/M000073.html b/doc/classes/Git/Branch.src/M000073.html new file mode 100644 index 0000000..98cc459 --- /dev/null +++ b/doc/classes/Git/Branch.src/M000073.html @@ -0,0 +1,27 @@ +<?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> +<head> + <title>merge (Git::Branch)</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> + <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" /> +</head> +<body class="standalone-code"> + <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>) + <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">branch</span> + <span class="ruby-identifier">in_branch</span> <span class="ruby-keyword kw">do</span> + <span class="ruby-ivar">@base</span>.<span class="ruby-identifier">merge</span>(<span class="ruby-identifier">branch</span>, <span class="ruby-identifier">message</span>) + <span class="ruby-keyword kw">false</span> + <span class="ruby-keyword kw">end</span> + <span class="ruby-comment cmt"># merge a branch into this one</span> + <span class="ruby-keyword kw">else</span> + <span class="ruby-comment cmt"># merge this branch into the current one</span> + <span class="ruby-ivar">@base</span>.<span class="ruby-identifier">merge</span>(<span class="ruby-ivar">@name</span>) + <span class="ruby-keyword kw">end</span> + <span class="ruby-keyword kw">end</span></pre> +</body> +</html>
\ No newline at end of file diff --git a/doc/classes/Git/Branch.src/M000074.html b/doc/classes/Git/Branch.src/M000074.html new file mode 100644 index 0000000..c807946 --- /dev/null +++ b/doc/classes/Git/Branch.src/M000074.html @@ -0,0 +1,18 @@ +<?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> +<head> + <title>to_a (Git::Branch)</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> + <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" /> +</head> +<body class="standalone-code"> + <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> + [<span class="ruby-ivar">@full</span>] + <span class="ruby-keyword kw">end</span></pre> +</body> +</html>
\ No newline at end of file diff --git a/doc/classes/Git/Branch.src/M000075.html b/doc/classes/Git/Branch.src/M000075.html new file mode 100644 index 0000000..8261f51 --- /dev/null +++ b/doc/classes/Git/Branch.src/M000075.html @@ -0,0 +1,18 @@ +<?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> +<head> + <title>to_s (Git::Branch)</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> + <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" /> +</head> +<body class="standalone-code"> + <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> + <span class="ruby-ivar">@full</span> + <span class="ruby-keyword kw">end</span></pre> +</body> +</html>
\ No newline at end of file diff --git a/doc/classes/Git/Branches.html b/doc/classes/Git/Branches.html new file mode 100644 index 0000000..1069f77 --- /dev/null +++ b/doc/classes/Git/Branches.html @@ -0,0 +1,294 @@ +<?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::Branches</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::Branches</td> + </tr> + <tr class="top-aligned-row"> + <td><strong>In:</strong></td> + <td> + <a href="../../files/lib/git/branches_rb.html"> + lib/git/branches.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 id="description"> + <p> +object that holds all the available branches +</p> + + </div> + + + </div> + + <div id="method-list"> + <h3 class="section-bar">Methods</h3> + + <div class="name-list"> + <a href="#M000065">[]</a> + <a href="#M000064">each</a> + <a href="#M000061">local</a> + <a href="#M000060">new</a> + <a href="#M000062">remote</a> + <a href="#M000063">size</a> + </div> + </div> + + </div> + + + <!-- if includes --> + <div id="includes"> + <h3 class="section-bar">Included Modules</h3> + + <div id="includes-list"> + <span class="include-name">Enumerable</span> + </div> + </div> + + <div id="section"> + + + + + + + + + <!-- if method_list --> + <div id="methods"> + <h3 class="section-bar">Public Class methods</h3> + + <div id="method-M000060" class="method-detail"> + <a name="M000060"></a> + + <div class="method-heading"> + <a href="#M000060" class="method-signature"> + <span class="method-name">new</span><span class="method-args">(base)</span> + </a> + </div> + + <div class="method-description"> + <p><a class="source-toggle" href="#" + onclick="toggleCode('M000060-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000060-source"> +<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>) + <span class="ruby-ivar">@branches</span> = {} + + <span class="ruby-ivar">@base</span> = <span class="ruby-identifier">base</span> + + <span class="ruby-ivar">@base</span>.<span class="ruby-identifier">lib</span>.<span class="ruby-identifier">branches_all</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> + <span class="ruby-ivar">@branches</span>[<span class="ruby-identifier">b</span>[<span class="ruby-value">0</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-ivar">@base</span>, <span class="ruby-identifier">b</span>[<span class="ruby-value">0</span>]) + <span class="ruby-keyword kw">end</span> + <span class="ruby-keyword kw">end</span> +</pre> + </div> + </div> + </div> + + <h3 class="section-bar">Public Instance methods</h3> + + <div id="method-M000065" class="method-detail"> + <a name="M000065"></a> + + <div class="method-heading"> + <a href="#M000065" class="method-signature"> + <span class="method-name">[]</span><span class="method-args">(symbol)</span> + </a> + </div> + + <div class="method-description"> + <p><a class="source-toggle" href="#" + onclick="toggleCode('M000065-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000065-source"> +<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>) + <span class="ruby-ivar">@branches</span>[<span class="ruby-identifier">symbol</span>.<span class="ruby-identifier">to_s</span>] + <span class="ruby-keyword kw">end</span> +</pre> + </div> + </div> + </div> + + <div id="method-M000064" class="method-detail"> + <a name="M000064"></a> + + <div class="method-heading"> + <a href="#M000064" class="method-signature"> + <span class="method-name">each</span><span class="method-args">() {|b| ...}</span> + </a> + </div> + + <div class="method-description"> + <p><a class="source-toggle" href="#" + onclick="toggleCode('M000064-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000064-source"> +<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> + <span class="ruby-ivar">@branches</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">k</span>, <span class="ruby-identifier">b</span><span class="ruby-operator">|</span> + <span class="ruby-keyword kw">yield</span> <span class="ruby-identifier">b</span> + <span class="ruby-keyword kw">end</span> + <span class="ruby-keyword kw">end</span> +</pre> + </div> + </div> + </div> + + <div id="method-M000061" class="method-detail"> + <a name="M000061"></a> + + <div class="method-heading"> + <a href="#M000061" class="method-signature"> + <span class="method-name">local</span><span class="method-args">()</span> + </a> + </div> + + <div class="method-description"> + <p><a class="source-toggle" href="#" + onclick="toggleCode('M000061-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000061-source"> +<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> + <span class="ruby-keyword kw">self</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-operator">!</span><span class="ruby-identifier">b</span>.<span class="ruby-identifier">remote</span> } + <span class="ruby-keyword kw">end</span> +</pre> + </div> + </div> + </div> + + <div id="method-M000062" class="method-detail"> + <a name="M000062"></a> + + <div class="method-heading"> + <a href="#M000062" class="method-signature"> + <span class="method-name">remote</span><span class="method-args">()</span> + </a> + </div> + + <div class="method-description"> + <p><a class="source-toggle" href="#" + onclick="toggleCode('M000062-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000062-source"> +<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> + <span class="ruby-keyword kw">self</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-identifier">remote</span> } + <span class="ruby-keyword kw">end</span> +</pre> + </div> + </div> + </div> + + <div id="method-M000063" class="method-detail"> + <a name="M000063"></a> + + <div class="method-heading"> + <a href="#M000063" class="method-signature"> + <span class="method-name">size</span><span class="method-args">()</span> + </a> + </div> + + <div class="method-description"> + <p> +array like methods +</p> + <p><a class="source-toggle" href="#" + onclick="toggleCode('M000063-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000063-source"> +<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> + <span class="ruby-ivar">@branches</span>.<span class="ruby-identifier">size</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/Branches.src/M000060.html b/doc/classes/Git/Branches.src/M000060.html new file mode 100644 index 0000000..e2cf582 --- /dev/null +++ b/doc/classes/Git/Branches.src/M000060.html @@ -0,0 +1,24 @@ +<?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> +<head> + <title>new (Git::Branches)</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> + <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" /> +</head> +<body class="standalone-code"> + <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>) + <span class="ruby-ivar">@branches</span> = {} + + <span class="ruby-ivar">@base</span> = <span class="ruby-identifier">base</span> + + <span class="ruby-ivar">@base</span>.<span class="ruby-identifier">lib</span>.<span class="ruby-identifier">branches_all</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> + <span class="ruby-ivar">@branches</span>[<span class="ruby-identifier">b</span>[<span class="ruby-value">0</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-ivar">@base</span>, <span class="ruby-identifier">b</span>[<span class="ruby-value">0</span>]) + <span class="ruby-keyword kw">end</span> + <span class="ruby-keyword kw">end</span></pre> +</body> +</html>
\ No newline at end of file diff --git a/doc/classes/Git/Branches.src/M000061.html b/doc/classes/Git/Branches.src/M000061.html new file mode 100644 index 0000000..631c52c --- /dev/null +++ b/doc/classes/Git/Branches.src/M000061.html @@ -0,0 +1,18 @@ +<?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> +<head> + <title>local (Git::Branches)</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> + <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" /> +</head> +<body class="standalone-code"> + <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> + <span class="ruby-keyword kw">self</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-operator">!</span><span class="ruby-identifier">b</span>.<span class="ruby-identifier">remote</span> } + <span class="ruby-keyword kw">end</span></pre> +</body> +</html>
\ No newline at end of file diff --git a/doc/classes/Git/Branches.src/M000062.html b/doc/classes/Git/Branches.src/M000062.html new file mode 100644 index 0000000..61ca127 --- /dev/null +++ b/doc/classes/Git/Branches.src/M000062.html @@ -0,0 +1,18 @@ +<?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> +<head> + <title>remote (Git::Branches)</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> + <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" /> +</head> +<body class="standalone-code"> + <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> + <span class="ruby-keyword kw">self</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-identifier">remote</span> } + <span class="ruby-keyword kw">end</span></pre> +</body> +</html>
\ No newline at end of file diff --git a/doc/classes/Git/Branches.src/M000063.html b/doc/classes/Git/Branches.src/M000063.html new file mode 100644 index 0000000..56e3d66 --- /dev/null +++ b/doc/classes/Git/Branches.src/M000063.html @@ -0,0 +1,18 @@ +<?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> +<head> + <title>size (Git::Branches)</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> + <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" /> +</head> +<body class="standalone-code"> + <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> + <span class="ruby-ivar">@branches</span>.<span class="ruby-identifier">size</span> + <span class="ruby-keyword kw">end</span></pre> +</body> +</html>
\ No newline at end of file diff --git a/doc/classes/Git/Branches.src/M000064.html b/doc/classes/Git/Branches.src/M000064.html new file mode 100644 index 0000000..54f1b5d --- /dev/null +++ b/doc/classes/Git/Branches.src/M000064.html @@ -0,0 +1,20 @@ +<?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> +<head> + <title>each (Git::Branches)</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> + <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" /> +</head> +<body class="standalone-code"> + <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> + <span class="ruby-ivar">@branches</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">k</span>, <span class="ruby-identifier">b</span><span class="ruby-operator">|</span> + <span class="ruby-keyword kw">yield</span> <span class="ruby-identifier">b</span> + <span class="ruby-keyword kw">end</span> + <span class="ruby-keyword kw">end</span></pre> +</body> +</html>
\ No newline at end of file diff --git a/doc/classes/Git/Branches.src/M000065.html b/doc/classes/Git/Branches.src/M000065.html new file mode 100644 index 0000000..fa48d64 --- /dev/null +++ b/doc/classes/Git/Branches.src/M000065.html @@ -0,0 +1,18 @@ +<?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> +<head> + <title>[] (Git::Branches)</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> + <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" /> +</head> +<body class="standalone-code"> + <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>) + <span class="ruby-ivar">@branches</span>[<span class="ruby-identifier">symbol</span>.<span class="ruby-identifier">to_s</span>] + <span class="ruby-keyword kw">end</span></pre> +</body> +</html>
\ No newline at end of file diff --git a/doc/classes/Git/Diff.html b/doc/classes/Git/Diff.html new file mode 100644 index 0000000..a1d441e --- /dev/null +++ b/doc/classes/Git/Diff.html @@ -0,0 +1,419 @@ +<?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::Diff</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::Diff</td> + </tr> + <tr class="top-aligned-row"> + <td><strong>In:</strong></td> + <td> + <a href="../../files/lib/git/diff_rb.html"> + lib/git/diff.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 id="description"> + <p> +object that holds the last X commits on given branch +</p> + + </div> + + + </div> + + <div id="method-list"> + <h3 class="section-bar">Methods</h3> + + <div class="name-list"> + <a href="#M000143">[]</a> + <a href="#M000138">deletions</a> + <a href="#M000144">each</a> + <a href="#M000139">insertions</a> + <a href="#M000137">lines</a> + <a href="#M000134">new</a> + <a href="#M000141">patch</a> + <a href="#M000135">path</a> + <a href="#M000136">size</a> + <a href="#M000140">stats</a> + <a href="#M000142">to_s</a> + </div> + </div> + + </div> + + + <!-- if includes --> + <div id="includes"> + <h3 class="section-bar">Included Modules</h3> + + <div id="includes-list"> + <span class="include-name">Enumerable</span> + </div> + </div> + + <div id="section"> + + <div id="class-list"> + <h3 class="section-bar">Classes and Modules</h3> + + Class <a href="Diff/DiffFile.html" class="link">Git::Diff::DiffFile</a><br /> + + </div> + + + + + + + + <!-- if method_list --> + <div id="methods"> + <h3 class="section-bar">Public Class methods</h3> + + <div id="method-M000134" class="method-detail"> + <a name="M000134"></a> + + <div class="method-heading"> + <a href="#M000134" class="method-signature"> + <span class="method-name">new</span><span class="method-args">(base, from = nil, to = nil)</span> + </a> + </div> + + <div class="method-description"> + <p><a class="source-toggle" href="#" + onclick="toggleCode('M000134-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000134-source"> +<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>) + <span class="ruby-ivar">@base</span> = <span class="ruby-identifier">base</span> + <span class="ruby-ivar">@from</span> = <span class="ruby-identifier">from</span>.<span class="ruby-identifier">to_s</span> + <span class="ruby-ivar">@to</span> = <span class="ruby-identifier">to</span>.<span class="ruby-identifier">to_s</span> + <span class="ruby-keyword kw">end</span> +</pre> + </div> + </div> + </div> + + <h3 class="section-bar">Public Instance methods</h3> + + <div id="method-M000143" class="method-detail"> + <a name="M000143"></a> + + <div class="method-heading"> + <a href="#M000143" class="method-signature"> + <span class="method-name">[]</span><span class="method-args">(key)</span> + </a> + </div> + + <div class="method-description"> + <p> +enumerable methods +</p> + <p><a class="source-toggle" href="#" + onclick="toggleCode('M000143-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000143-source"> +<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>) + <span class="ruby-identifier">process_full</span> + <span class="ruby-ivar">@full_diff_files</span>.<span class="ruby-identifier">assoc</span>(<span class="ruby-identifier">key</span>)[<span class="ruby-value">1</span>] + <span class="ruby-keyword kw">end</span> +</pre> + </div> + </div> + </div> + + <div id="method-M000138" class="method-detail"> + <a name="M000138"></a> + + <div class="method-heading"> + <a href="#M000138" class="method-signature"> + <span class="method-name">deletions</span><span class="method-args">()</span> + </a> + </div> + + <div class="method-description"> + <p><a class="source-toggle" href="#" + onclick="toggleCode('M000138-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000138-source"> +<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> + <span class="ruby-identifier">cache_stats</span> + <span class="ruby-ivar">@stats</span>[<span class="ruby-identifier">:total</span>][<span class="ruby-identifier">:deletions</span>] + <span class="ruby-keyword kw">end</span> +</pre> + </div> + </div> + </div> + + <div id="method-M000144" class="method-detail"> + <a name="M000144"></a> + + <div class="method-heading"> + <a href="#M000144" class="method-signature"> + <span class="method-name">each</span><span class="method-args">() {|file[1]| ...}</span> + </a> + </div> + + <div class="method-description"> + <p><a class="source-toggle" href="#" + onclick="toggleCode('M000144-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000144-source"> +<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> + <span class="ruby-identifier">process_full</span> + <span class="ruby-ivar">@full_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">file</span><span class="ruby-operator">|</span> + <span class="ruby-keyword kw">yield</span> <span class="ruby-identifier">file</span>[<span class="ruby-value">1</span>] + <span class="ruby-keyword kw">end</span> + <span class="ruby-keyword kw">end</span> +</pre> + </div> + </div> + </div> + + <div id="method-M000139" class="method-detail"> + <a name="M000139"></a> + + <div class="method-heading"> + <a href="#M000139" class="method-signature"> + <span class="method-name">insertions</span><span class="method-args">()</span> + </a> + </div> + + <div class="method-description"> + <p><a class="source-toggle" href="#" + onclick="toggleCode('M000139-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000139-source"> +<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> + <span class="ruby-identifier">cache_stats</span> + <span class="ruby-ivar">@stats</span>[<span class="ruby-identifier">:total</span>][<span class="ruby-identifier">:insertions</span>] + <span class="ruby-keyword kw">end</span> +</pre> + </div> + </div> + </div> + + <div id="method-M000137" class="method-detail"> + <a name="M000137"></a> + + <div class="method-heading"> + <a href="#M000137" class="method-signature"> + <span class="method-name">lines</span><span class="method-args">()</span> + </a> + </div> + + <div class="method-description"> + <p><a class="source-toggle" href="#" + onclick="toggleCode('M000137-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000137-source"> +<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> + <span class="ruby-identifier">cache_stats</span> + <span class="ruby-ivar">@stats</span>[<span class="ruby-identifier">:total</span>][<span class="ruby-identifier">:lines</span>] + <span class="ruby-keyword kw">end</span> +</pre> + </div> + </div> + </div> + + <div id="method-M000141" class="method-detail"> + <a name="M000141"></a> + + <div class="method-heading"> + <a href="#M000141" class="method-signature"> + <span class="method-name">patch</span><span class="method-args">(file = nil)</span> + </a> + </div> + + <div class="method-description"> + <p> +if file is provided and is writable, it will write the patch into the file +</p> + <p><a class="source-toggle" href="#" + onclick="toggleCode('M000141-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000141-source"> +<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>) + <span class="ruby-identifier">cache_full</span> + <span class="ruby-ivar">@full_diff</span> + <span class="ruby-keyword kw">end</span> +</pre> + </div> + </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">path</span><span class="method-args">(path)</span> + </a> + </div> + + <div class="method-description"> + <p><a class="source-toggle" href="#" + onclick="toggleCode('M000135-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000135-source"> +<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>) + <span class="ruby-ivar">@path</span> = <span class="ruby-identifier">path</span> + <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">self</span> + <span class="ruby-keyword kw">end</span> +</pre> + </div> + </div> + </div> + + <div id="method-M000136" class="method-detail"> + <a name="M000136"></a> + + <div class="method-heading"> + <a href="#M000136" class="method-signature"> + <span class="method-name">size</span><span class="method-args">()</span> + </a> + </div> + + <div class="method-description"> + <p><a class="source-toggle" href="#" + onclick="toggleCode('M000136-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000136-source"> +<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> + <span class="ruby-identifier">cache_stats</span> + <span class="ruby-ivar">@stats</span>[<span class="ruby-identifier">:total</span>][<span class="ruby-identifier">:files</span>] + <span class="ruby-keyword kw">end</span> +</pre> + </div> + </div> + </div> + + <div id="method-M000140" class="method-detail"> + <a name="M000140"></a> + + <div class="method-heading"> + <a href="#M000140" class="method-signature"> + <span class="method-name">stats</span><span class="method-args">()</span> + </a> + </div> + + <div class="method-description"> + <p><a class="source-toggle" href="#" + onclick="toggleCode('M000140-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000140-source"> +<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> + <span class="ruby-identifier">cache_stats</span> + <span class="ruby-ivar">@stats</span> + <span class="ruby-keyword kw">end</span> +</pre> + </div> + </div> + </div> + + <div id="method-M000142" class="method-detail"> + <a name="M000142"></a> + + <div class="method-heading"> + <span class="method-name">to_s</span><span class="method-args">(file = nil)</span> + </div> + + <div class="method-description"> + <p> +Alias for <a href="Diff.html#M000141">patch</a> +</p> + </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/Diff.src/M000134.html b/doc/classes/Git/Diff.src/M000134.html new file mode 100644 index 0000000..2b604fe --- /dev/null +++ b/doc/classes/Git/Diff.src/M000134.html @@ -0,0 +1,20 @@ +<?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> +<head> + <title>new (Git::Diff)</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> + <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" /> +</head> +<body class="standalone-code"> + <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>) + <span class="ruby-ivar">@base</span> = <span class="ruby-identifier">base</span> + <span class="ruby-ivar">@from</span> = <span class="ruby-identifier">from</span>.<span class="ruby-identifier">to_s</span> + <span class="ruby-ivar">@to</span> = <span class="ruby-identifier">to</span>.<span class="ruby-identifier">to_s</span> + <span class="ruby-keyword kw">end</span></pre> +</body> +</html>
\ No newline at end of file diff --git a/doc/classes/Git/Diff.src/M000135.html b/doc/classes/Git/Diff.src/M000135.html new file mode 100644 index 0000000..345dea9 --- /dev/null +++ b/doc/classes/Git/Diff.src/M000135.html @@ -0,0 +1,19 @@ +<?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> +<head> + <title>path (Git::Diff)</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> + <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" /> +</head> +<body class="standalone-code"> + <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>) + <span class="ruby-ivar">@path</span> = <span class="ruby-identifier">path</span> + <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">self</span> + <span class="ruby-keyword kw">end</span></pre> +</body> +</html>
\ No newline at end of file diff --git a/doc/classes/Git/Diff.src/M000136.html b/doc/classes/Git/Diff.src/M000136.html new file mode 100644 index 0000000..130e4ec --- /dev/null +++ b/doc/classes/Git/Diff.src/M000136.html @@ -0,0 +1,19 @@ +<?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> +<head> + <title>size (Git::Diff)</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> + <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" /> +</head> +<body class="standalone-code"> + <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> + <span class="ruby-identifier">cache_stats</span> + <span class="ruby-ivar">@stats</span>[<span class="ruby-identifier">:total</span>][<span class="ruby-identifier">:files</span>] + <span class="ruby-keyword kw">end</span></pre> +</body> +</html>
\ No newline at end of file diff --git a/doc/classes/Git/Diff.src/M000137.html b/doc/classes/Git/Diff.src/M000137.html new file mode 100644 index 0000000..dc4e5ca --- /dev/null +++ b/doc/classes/Git/Diff.src/M000137.html @@ -0,0 +1,19 @@ +<?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> +<head> + <title>lines (Git::Diff)</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> + <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" /> +</head> +<body class="standalone-code"> + <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> + <span class="ruby-identifier">cache_stats</span> + <span class="ruby-ivar">@stats</span>[<span class="ruby-identifier">:total</span>][<span class="ruby-identifier">:lines</span>] + <span class="ruby-keyword kw">end</span></pre> +</body> +</html>
\ No newline at end of file diff --git a/doc/classes/Git/Diff.src/M000138.html b/doc/classes/Git/Diff.src/M000138.html new file mode 100644 index 0000000..8a0096a --- /dev/null +++ b/doc/classes/Git/Diff.src/M000138.html @@ -0,0 +1,19 @@ +<?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> +<head> + <title>deletions (Git::Diff)</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> + <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" /> +</head> +<body class="standalone-code"> + <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> + <span class="ruby-identifier">cache_stats</span> + <span class="ruby-ivar">@stats</span>[<span class="ruby-identifier">:total</span>][<span class="ruby-identifier">:deletions</span>] + <span class="ruby-keyword kw">end</span></pre> +</body> +</html>
\ No newline at end of file diff --git a/doc/classes/Git/Diff.src/M000139.html b/doc/classes/Git/Diff.src/M000139.html new file mode 100644 index 0000000..b9d6a7b --- /dev/null +++ b/doc/classes/Git/Diff.src/M000139.html @@ -0,0 +1,19 @@ +<?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> +<head> + <title>insertions (Git::Diff)</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> + <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" /> +</head> +<body class="standalone-code"> + <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> + <span class="ruby-identifier">cache_stats</span> + <span class="ruby-ivar">@stats</span>[<span class="ruby-identifier">:total</span>][<span class="ruby-identifier">:insertions</span>] + <span class="ruby-keyword kw">end</span></pre> +</body> +</html>
\ No newline at end of file diff --git a/doc/classes/Git/Diff.src/M000140.html b/doc/classes/Git/Diff.src/M000140.html new file mode 100644 index 0000000..4be3161 --- /dev/null +++ b/doc/classes/Git/Diff.src/M000140.html @@ -0,0 +1,19 @@ +<?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> +<head> + <title>stats (Git::Diff)</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> + <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" /> +</head> +<body class="standalone-code"> + <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> + <span class="ruby-identifier">cache_stats</span> + <span class="ruby-ivar">@stats</span> + <span class="ruby-keyword kw">end</span></pre> +</body> +</html>
\ No newline at end of file diff --git a/doc/classes/Git/Diff.src/M000141.html b/doc/classes/Git/Diff.src/M000141.html new file mode 100644 index 0000000..83c90bc --- /dev/null +++ b/doc/classes/Git/Diff.src/M000141.html @@ -0,0 +1,19 @@ +<?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> +<head> + <title>patch (Git::Diff)</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> + <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" /> +</head> +<body class="standalone-code"> + <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>) + <span class="ruby-identifier">cache_full</span> + <span class="ruby-ivar">@full_diff</span> + <span class="ruby-keyword kw">end</span></pre> +</body> +</html>
\ No newline at end of file diff --git a/doc/classes/Git/Diff.src/M000143.html b/doc/classes/Git/Diff.src/M000143.html new file mode 100644 index 0000000..25c3530 --- /dev/null +++ b/doc/classes/Git/Diff.src/M000143.html @@ -0,0 +1,19 @@ +<?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> +<head> + <title>[] (Git::Diff)</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> + <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" /> +</head> +<body class="standalone-code"> + <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>) + <span class="ruby-identifier">process_full</span> + <span class="ruby-ivar">@full_diff_files</span>.<span class="ruby-identifier">assoc</span>(<span class="ruby-identifier">key</span>)[<span class="ruby-value">1</span>] + <span class="ruby-keyword kw">end</span></pre> +</body> +</html>
\ No newline at end of file diff --git a/doc/classes/Git/Diff.src/M000144.html b/doc/classes/Git/Diff.src/M000144.html new file mode 100644 index 0000000..6e5b6b0 --- /dev/null +++ b/doc/classes/Git/Diff.src/M000144.html @@ -0,0 +1,21 @@ +<?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> +<head> + <title>each (Git::Diff)</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> + <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" /> +</head> +<body class="standalone-code"> + <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> + <span class="ruby-identifier">process_full</span> + <span class="ruby-ivar">@full_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">file</span><span class="ruby-operator">|</span> + <span class="ruby-keyword kw">yield</span> <span class="ruby-identifier">file</span>[<span class="ruby-value">1</span>] + <span class="ruby-keyword kw">end</span> + <span class="ruby-keyword kw">end</span></pre> +</body> +</html>
\ No newline at end of file diff --git a/doc/classes/Git/Diff/DiffFile.html b/doc/classes/Git/Diff/DiffFile.html new file mode 100644 index 0000000..ec349f8 --- /dev/null +++ b/doc/classes/Git/Diff/DiffFile.html @@ -0,0 +1,220 @@ +<?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::Diff::DiffFile</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::Diff::DiffFile</td> + </tr> + <tr class="top-aligned-row"> + <td><strong>In:</strong></td> + <td> + <a href="../../../files/lib/git/diff_rb.html"> + lib/git/diff.rb + </a> + <br /> + </td> + </tr> + + <tr class="top-aligned-row"> + <td><strong>Parent:</strong></td> + <td> + Object + </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="#M000146">blob</a> + <a href="#M000145">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">dst</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">mode</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">patch</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">path</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">src</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">type</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-M000145" class="method-detail"> + <a name="M000145"></a> + + <div class="method-heading"> + <a href="#M000145" class="method-signature"> + <span class="method-name">new</span><span class="method-args">(base, hash)</span> + </a> + </div> + + <div class="method-description"> + <p><a class="source-toggle" href="#" + onclick="toggleCode('M000145-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000145-source"> +<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>) + <span class="ruby-ivar">@base</span> = <span class="ruby-identifier">base</span> + <span class="ruby-ivar">@patch</span> = <span class="ruby-identifier">hash</span>[<span class="ruby-identifier">:patch</span>] + <span class="ruby-ivar">@path</span> = <span class="ruby-identifier">hash</span>[<span class="ruby-identifier">:path</span>] + <span class="ruby-ivar">@mode</span> = <span class="ruby-identifier">hash</span>[<span class="ruby-identifier">:mode</span>] + <span class="ruby-ivar">@src</span> = <span class="ruby-identifier">hash</span>[<span class="ruby-identifier">:src</span>] + <span class="ruby-ivar">@dst</span> = <span class="ruby-identifier">hash</span>[<span class="ruby-identifier">:dst</span>] + <span class="ruby-ivar">@type</span> = <span class="ruby-identifier">hash</span>[<span class="ruby-identifier">:type</span>] + <span class="ruby-keyword kw">end</span> +</pre> + </div> + </div> + </div> + + <h3 class="section-bar">Public Instance 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">blob</span><span class="method-args">(type = :dst)</span> + </a> + </div> + + <div class="method-description"> + <p><a class="source-toggle" href="#" + onclick="toggleCode('M000146-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000146-source"> +<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>) + <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">type</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">:src</span> + <span class="ruby-ivar">@base</span>.<span class="ruby-identifier">object</span>(<span class="ruby-ivar">@src</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@src</span> <span class="ruby-operator">!=</span> <span class="ruby-value str">'0000000'</span> + <span class="ruby-keyword kw">else</span> + <span class="ruby-ivar">@base</span>.<span class="ruby-identifier">object</span>(<span class="ruby-ivar">@dst</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@dst</span> <span class="ruby-operator">!=</span> <span class="ruby-value str">'0000000'</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/Diff/DiffFile.src/M000145.html b/doc/classes/Git/Diff/DiffFile.src/M000145.html new file mode 100644 index 0000000..28a82af --- /dev/null +++ b/doc/classes/Git/Diff/DiffFile.src/M000145.html @@ -0,0 +1,24 @@ +<?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> +<head> + <title>new (Git::Diff::DiffFile)</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> + <link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" /> +</head> +<body class="standalone-code"> + <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>) + <span class="ruby-ivar">@base</span> = <span class="ruby-identifier">base</span> + <span class="ruby-ivar">@patch</span> = <span class="ruby-identifier">hash</span>[<span class="ruby-identifier">:patch</span>] + <span class="ruby-ivar">@path</span> = <span class="ruby-identifier">hash</span>[<span class="ruby-identifier">:path</span>] + <span class="ruby-ivar">@mode</span> = <span class="ruby-identifier">hash</span>[<span class="ruby-identifier">:mode</span>] + <span class="ruby-ivar">@src</span> = <span class="ruby-identifier">hash</span>[<span class="ruby-identifier">:src</span>] + <span class="ruby-ivar">@dst</span> = <span class="ruby-identifier">hash</span>[<span class="ruby-identifier">:dst</span>] + <span class="ruby-ivar">@type</span> = <span class="ruby-identifier">hash</span>[<span class="ruby-identifier">:type</span>] + <span class="ruby-keyword kw">end</span></pre> +</body> +</html>
\ No newline at end of file diff --git a/doc/classes/Git/Diff/DiffFile.src/M000146.html b/doc/classes/Git/Diff/DiffFile.src/M000146.html new file mode 100644 index 0000000..46e7228 --- /dev/null +++ b/doc/classes/Git/Diff/DiffFile.src/M000146.html @@ -0,0 +1,22 @@ +<?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> +<head> + <title>blob (Git::Diff::DiffFile)</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> + <link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" /> +</head> +<body class="standalone-code"> + <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>) + <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">type</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">:src</span> + <span class="ruby-ivar">@base</span>.<span class="ruby-identifier">object</span>(<span class="ruby-ivar">@src</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@src</span> <span class="ruby-operator">!=</span> <span class="ruby-value str">'0000000'</span> + <span class="ruby-keyword kw">else</span> + <span class="ruby-ivar">@base</span>.<span class="ruby-identifier">object</span>(<span class="ruby-ivar">@dst</span>) <span class="ruby-keyword kw">if</span> <span class="ruby-ivar">@dst</span> <span class="ruby-operator">!=</span> <span class="ruby-value str">'0000000'</span> + <span class="ruby-keyword kw">end</span> + <span class="ruby-keyword kw">end</span></pre> +</body> +</html>
\ No newline at end of file diff --git a/doc/classes/Git/GitExecuteError.html b/doc/classes/Git/GitExecuteError.html new file mode 100644 index 0000000..6236a26 --- /dev/null +++ b/doc/classes/Git/GitExecuteError.html @@ -0,0 +1,111 @@ +<?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::GitExecuteError</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::GitExecuteError</td> + </tr> + <tr class="top-aligned-row"> + <td><strong>In:</strong></td> + <td> + <a href="../../files/lib/git/lib_rb.html"> + lib/git/lib.rb + </a> + <br /> + </td> + </tr> + + <tr class="top-aligned-row"> + <td><strong>Parent:</strong></td> + <td> + StandardError + </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/classes/Git/GitTagNameDoesNotExist.html b/doc/classes/Git/GitTagNameDoesNotExist.html new file mode 100644 index 0000000..fea5604 --- /dev/null +++ b/doc/classes/Git/GitTagNameDoesNotExist.html @@ -0,0 +1,111 @@ +<?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::GitTagNameDoesNotExist</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::GitTagNameDoesNotExist</td> + </tr> + <tr class="top-aligned-row"> + <td><strong>In:</strong></td> + <td> + <a href="../../files/lib/git/object_rb.html"> + lib/git/object.rb + </a> + <br /> + </td> + </tr> + + <tr class="top-aligned-row"> + <td><strong>Parent:</strong></td> + <td> + StandardError + </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/classes/Git/Index.html b/doc/classes/Git/Index.html new file mode 100644 index 0000000..2240422 --- /dev/null +++ b/doc/classes/Git/Index.html @@ -0,0 +1,113 @@ +<?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::Index</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::Index</td> + </tr> + <tr class="top-aligned-row"> + <td><strong>In:</strong></td> + <td> + <a href="../../files/lib/git/index_rb.html"> + lib/git/index.rb + </a> + <br /> + </td> + </tr> + + <tr class="top-aligned-row"> + <td><strong>Parent:</strong></td> + <td> + <a href="Path.html"> + Git::Path + </a> + </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/classes/Git/Lib.html b/doc/classes/Git/Lib.html new file mode 100644 index 0000000..fd3c7b0 --- /dev/null +++ b/doc/classes/Git/Lib.html @@ -0,0 +1,1158 @@ +<?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::Lib</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::Lib</td> + </tr> + <tr class="top-aligned-row"> + <td><strong>In:</strong></td> + <td> + <a href="../../files/lib/git/lib_rb.html"> + lib/git/lib.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="#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="#M000052">remote_add</a> + <a href="#M000053">remote_remove</a> + <a href="#M000054">remotes</a> + <a href="#M000045">remove</a> + <a href="#M000059">repack</a> + <a href="#M000047">reset</a> + <a href="#M000028">revparse</a> + <a href="#M000056">tag</a> + <a href="#M000058">tag_sha</a> + <a href="#M000055">tags</a> + </div> + </div> + + </div> + + + <!-- if includes --> + + <div id="section"> + + + + + + + + + <!-- 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">(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"> +<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>) + <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">base</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-ivar">@git_dir</span> = <span class="ruby-identifier">base</span>.<span class="ruby-identifier">repo</span>.<span class="ruby-identifier">path</span> + <span class="ruby-ivar">@git_index_file</span> = <span class="ruby-identifier">base</span>.<span class="ruby-identifier">index</span>.<span class="ruby-identifier">path</span> + <span class="ruby-ivar">@git_work_dir</span> = <span class="ruby-identifier">base</span>.<span class="ruby-identifier">dir</span>.<span class="ruby-identifier">path</span> + <span class="ruby-keyword kw">elsif</span> <span class="ruby-identifier">base</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">Hash</span>) + <span class="ruby-ivar">@git_dir</span> = <span class="ruby-identifier">base</span>[<span class="ruby-identifier">:repository</span>] + <span class="ruby-ivar">@git_index_file</span> = <span class="ruby-identifier">base</span>[<span class="ruby-identifier">:index</span>] + <span class="ruby-ivar">@git_work_dir</span> = <span class="ruby-identifier">base</span>[<span class="ruby-identifier">:working_directory</span>] + <span class="ruby-keyword kw">end</span> + <span class="ruby-keyword kw">end</span> +</pre> + </div> + </div> + </div> + + <h3 class="section-bar">Public Instance methods</h3> + + <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">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"> +<pre> +<span class="ruby-comment cmt"># File lib/git/lib.rb, line 215</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>) + <span class="ruby-keyword kw">end</span> +</pre> + </div> + </div> + </div> + + <div id="method-M000033" class="method-detail"> + <a name="M000033"></a> + + <div class="method-heading"> + <a href="#M000033" 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"> +<pre> +<span class="ruby-comment cmt"># File lib/git/lib.rb, line 96</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> +</pre> + </div> + </div> + </div> + + <div id="method-M000049" class="method-detail"> + <a name="M000049"></a> + + <div class="method-heading"> + <a href="#M000049" 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"> +<pre> +<span class="ruby-comment cmt"># File lib/git/lib.rb, line 248</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> +</pre> + </div> + </div> + </div> + + <div id="method-M000048" class="method-detail"> + <a name="M000048"></a> + + <div class="method-heading"> + <a href="#M000048" 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"> +<pre> +<span class="ruby-comment cmt"># File lib/git/lib.rb, line 244</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> +</pre> + </div> + </div> + </div> + + <div id="method-M000032" class="method-detail"> + <a name="M000032"></a> + + <div class="method-heading"> + <a href="#M000032" 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"> +<pre> +<span class="ruby-comment cmt"># File lib/git/lib.rb, line 86</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> + <span class="ruby-identifier">current</span> = <span class="ruby-keyword kw">false</span> + <span class="ruby-identifier">current</span> = <span class="ruby-keyword kw">true</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">b</span>[<span class="ruby-value">0</span>, <span class="ruby-value">2</span>] <span class="ruby-operator">==</span> <span class="ruby-value str">'* '</span> + <span class="ruby-identifier">arr</span> <span class="ruby-operator"><<</span> [<span class="ruby-identifier">b</span>.<span class="ruby-identifier">gsub</span>(<span class="ruby-value str">'* '</span>, <span class="ruby-value str">''</span>).<span class="ruby-identifier">strip</span>, <span class="ruby-identifier">current</span>] + <span class="ruby-keyword kw">end</span> + <span class="ruby-identifier">arr</span> + <span class="ruby-keyword kw">end</span> +</pre> + </div> + </div> + </div> + + <div id="method-M000050" class="method-detail"> + <a name="M000050"></a> + + <div class="method-heading"> + <a href="#M000050" 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"> +<pre> +<span class="ruby-comment cmt"># File lib/git/lib.rb, line 252</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>] + <span class="ruby-identifier">arr_opts</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">branch</span>.<span class="ruby-identifier">to_s</span> + + <span class="ruby-identifier">command</span>(<span class="ruby-value str">'checkout'</span>, <span class="ruby-identifier">arr_opts</span>) + <span class="ruby-keyword kw">end</span> +</pre> + </div> + </div> + </div> + + <div id="method-M000026" class="method-detail"> + <a name="M000026"></a> + + <div class="method-heading"> + <a href="#M000026" class="method-signature"> + <span class="method-name">clone</span><span class="method-args">(repository, name, opts = {})</span> + </a> + </div> + + <div class="method-description"> + <p> +tries to clone the given repo +</p> +<p> +returns {:repository} (if bare) +</p> +<pre> + {:working_directory} otherwise +</pre> +<p> +accepts options: +</p> +<pre> + :remote - name of remote (rather than 'origin') + :bare - no working directory +</pre> +<p> +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"> +<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> = {}) + <span class="ruby-ivar">@path</span> = <span class="ruby-identifier">opts</span>[<span class="ruby-identifier">:path</span>] <span class="ruby-operator">||</span> <span class="ruby-value str">'.'</span> + <span class="ruby-identifier">opts</span>[<span class="ruby-identifier">:path</span>] <span class="ruby-operator">?</span> <span class="ruby-identifier">clone_dir</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-ivar">@path</span>, <span class="ruby-identifier">name</span>) <span class="ruby-operator">:</span> <span class="ruby-identifier">clone_dir</span> = <span class="ruby-identifier">name</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">"--bare"</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">opts</span>[<span class="ruby-identifier">:bare</span>] + <span class="ruby-identifier">arr_opts</span> <span class="ruby-operator"><<</span> <span class="ruby-node">"-o #{opts[:remote]}"</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">opts</span>[<span class="ruby-identifier">:remote</span>] + <span class="ruby-identifier">arr_opts</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">repository</span> + <span class="ruby-identifier">arr_opts</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">clone_dir</span> + + <span class="ruby-identifier">command</span>(<span class="ruby-value str">'clone'</span>, <span class="ruby-identifier">arr_opts</span>) + + <span class="ruby-identifier">opts</span>[<span class="ruby-identifier">:bare</span>] <span class="ruby-operator">?</span> {<span class="ruby-identifier">:repository</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">clone_dir</span>} <span class="ruby-operator">:</span> {<span class="ruby-identifier">:working_directory</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">clone_dir</span>} + <span class="ruby-keyword kw">end</span> +</pre> + </div> + </div> + </div> + + <div id="method-M000046" class="method-detail"> + <a name="M000046"></a> + + <div class="method-heading"> + <a href="#M000046" 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"> +<pre> +<span class="ruby-comment cmt"># File lib/git/lib.rb, line 230</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>] + <span class="ruby-identifier">command</span>(<span class="ruby-value str">'commit'</span>, <span class="ruby-identifier">arr_opts</span>) + <span class="ruby-keyword kw">end</span> +</pre> + </div> + </div> + </div> + + <div id="method-M000041" class="method-detail"> + <a name="M000041"></a> + + <div class="method-heading"> + <a href="#M000041" 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"> +<pre> +<span class="ruby-comment cmt"># File lib/git/lib.rb, line 196</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> +</pre> + </div> + </div> + </div> + + <div id="method-M000042" class="method-detail"> + <a name="M000042"></a> + + <div class="method-heading"> + <a href="#M000042" 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"> +<pre> +<span class="ruby-comment cmt"># File lib/git/lib.rb, line 200</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> + (<span class="ruby-identifier">key</span>, <span class="ruby-identifier">value</span>) = <span class="ruby-identifier">line</span>.<span class="ruby-identifier">split</span>(<span class="ruby-value str">'='</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-identifier">hsh</span> + <span class="ruby-keyword kw">end</span> +</pre> + </div> + </div> + </div> + + <div id="method-M000040" class="method-detail"> + <a name="M000040"></a> + + <div class="method-heading"> + <a href="#M000040" 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"> +<pre> +<span class="ruby-comment cmt"># File lib/git/lib.rb, line 187</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> + (<span class="ruby-identifier">key</span>, <span class="ruby-identifier">value</span>) = <span class="ruby-identifier">line</span>.<span class="ruby-identifier">split</span> + <span class="ruby-identifier">hsh</span>[<span class="ruby-identifier">key</span>.<span class="ruby-identifier">gsub</span>(<span class="ruby-node">"remote.#{name}."</span>, <span class="ruby-value str">''</span>)] = <span class="ruby-identifier">value</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-M000043" class="method-detail"> + <a name="M000043"></a> + + <div class="method-heading"> + <a href="#M000043" class="method-signature"> + <span class="method-name">config_set</span><span class="method-args">(name, value)</span> + </a> + </div> + + <div class="method-description"> + <p> +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"> +<pre> +<span class="ruby-comment cmt"># File lib/git/lib.rb, line 211</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> +</pre> + </div> + </div> + </div> + + <div id="method-M000037" class="method-detail"> + <a name="M000037"></a> + + <div class="method-heading"> + <a href="#M000037" class="method-signature"> + <span class="method-name">diff_files</span><span class="method-args">()</span> + </a> + </div> + + <div class="method-description"> + <p> +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"> +<pre> +<span class="ruby-comment cmt"># File lib/git/lib.rb, line 153</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> + (<span class="ruby-identifier">info</span>, <span class="ruby-identifier">file</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_src</span>, <span class="ruby-identifier">mode_dest</span>, <span class="ruby-identifier">sha_src</span>, <span class="ruby-identifier">sha_dest</span>, <span class="ruby-identifier">type</span>) = <span class="ruby-identifier">info</span>.<span class="ruby-identifier">split</span> + <span class="ruby-identifier">hsh</span>[<span class="ruby-identifier">file</span>] = {<span class="ruby-identifier">:path</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">file</span>, <span class="ruby-identifier">:mode_file</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">mode_src</span>.<span class="ruby-identifier">to_s</span>[<span class="ruby-value">1</span>, <span class="ruby-value">7</span>], <span class="ruby-identifier">:mode_index</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">mode_dest</span>, + <span class="ruby-identifier">:sha_file</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">sha_src</span>, <span class="ruby-identifier">:sha_index</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">sha_dest</span>, <span class="ruby-identifier">:type</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">type</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-M000035" class="method-detail"> + <a name="M000035"></a> + + <div class="method-heading"> + <a href="#M000035" 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"> +<pre> +<span class="ruby-comment cmt"># File lib/git/lib.rb, line 123</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> + <span class="ruby-identifier">diff_opts</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">obj2</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">obj2</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">String</span>) + <span class="ruby-identifier">diff_opts</span> <span class="ruby-operator"><<</span> (<span class="ruby-value str">'-- '</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">opts</span>[<span class="ruby-identifier">:path_limiter</span>]) <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">opts</span>[<span class="ruby-identifier">:path_limiter</span>].<span class="ruby-identifier">is_a?</span> <span class="ruby-constant">String</span> + + <span class="ruby-identifier">command</span>(<span class="ruby-value str">'diff'</span>, <span class="ruby-identifier">diff_opts</span>) + <span class="ruby-keyword kw">end</span> +</pre> + </div> + </div> + </div> + + <div id="method-M000038" class="method-detail"> + <a name="M000038"></a> + + <div class="method-heading"> + <a href="#M000038" class="method-signature"> + <span class="method-name">diff_index</span><span class="method-args">(treeish)</span> + </a> + </div> + + <div class="method-description"> + <p> +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"> +<pre> +<span class="ruby-comment cmt"># File lib/git/lib.rb, line 165</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> + (<span class="ruby-identifier">info</span>, <span class="ruby-identifier">file</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_src</span>, <span class="ruby-identifier">mode_dest</span>, <span class="ruby-identifier">sha_src</span>, <span class="ruby-identifier">sha_dest</span>, <span class="ruby-identifier">type</span>) = <span class="ruby-identifier">info</span>.<span class="ruby-identifier">split</span> + <span class="ruby-identifier">hsh</span>[<span class="ruby-identifier">file</span>] = {<span class="ruby-identifier">:path</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">file</span>, <span class="ruby-identifier">:mode_repo</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">mode_src</span>.<span class="ruby-identifier">to_s</span>[<span class="ruby-value">1</span>, <span class="ruby-value">7</span>], <span class="ruby-identifier">:mode_index</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">mode_dest</span>, + <span class="ruby-identifier">:sha_repo</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">sha_src</span>, <span class="ruby-identifier">:sha_index</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">sha_dest</span>, <span class="ruby-identifier">:type</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">type</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-M000036" class="method-detail"> + <a name="M000036"></a> + + <div class="method-heading"> + <a href="#M000036" 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"> +<pre> +<span class="ruby-comment cmt"># File lib/git/lib.rb, line 132</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> + <span class="ruby-identifier">diff_opts</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">obj2</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">obj2</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">String</span>) + <span class="ruby-identifier">diff_opts</span> <span class="ruby-operator"><<</span> (<span class="ruby-value str">'-- '</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">opts</span>[<span class="ruby-identifier">:path_limiter</span>]) <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">opts</span>[<span class="ruby-identifier">:path_limiter</span>].<span class="ruby-identifier">is_a?</span> <span class="ruby-constant">String</span> + + <span class="ruby-identifier">hsh</span> = {<span class="ruby-identifier">:total</span> =<span class="ruby-operator">></span> {<span class="ruby-identifier">:insertions</span> =<span class="ruby-operator">></span> <span class="ruby-value">0</span>, <span class="ruby-identifier">:deletions</span> =<span class="ruby-operator">></span> <span class="ruby-value">0</span>, <span class="ruby-identifier">:lines</span> =<span class="ruby-operator">></span> <span class="ruby-value">0</span>, <span class="ruby-identifier">:files</span> =<span class="ruby-operator">></span> <span class="ruby-value">0</span>}, <span class="ruby-identifier">:files</span> =<span class="ruby-operator">></span> {}} + + <span class="ruby-identifier">command_lines</span>(<span class="ruby-value str">'diff'</span>, <span class="ruby-identifier">diff_opts</span>).<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">file</span><span class="ruby-operator">|</span> + (<span class="ruby-identifier">insertions</span>, <span class="ruby-identifier">deletions</span>, <span class="ruby-identifier">filename</span>) = <span class="ruby-identifier">file</span>.<span class="ruby-identifier">split</span>(<span class="ruby-value str">"\t"</span>) + <span class="ruby-identifier">hsh</span>[<span class="ruby-identifier">:total</span>][<span class="ruby-identifier">:insertions</span>] <span class="ruby-operator">+=</span> <span class="ruby-identifier">insertions</span>.<span class="ruby-identifier">to_i</span> + <span class="ruby-identifier">hsh</span>[<span class="ruby-identifier">:total</span>][<span class="ruby-identifier">:deletions</span>] <span class="ruby-operator">+=</span> <span class="ruby-identifier">deletions</span>.<span class="ruby-identifier">to_i</span> + <span class="ruby-identifier">hsh</span>[<span class="ruby-identifier">:total</span>][<span class="ruby-identifier">:lines</span>] = (<span class="ruby-identifier">hsh</span>[<span class="ruby-identifier">:total</span>][<span class="ruby-identifier">:deletions</span>] <span class="ruby-operator">+</span> <span class="ruby-identifier">hsh</span>[<span class="ruby-identifier">:total</span>][<span class="ruby-identifier">:insertions</span>]) + <span class="ruby-identifier">hsh</span>[<span class="ruby-identifier">:total</span>][<span class="ruby-identifier">:files</span>] <span class="ruby-operator">+=</span> <span class="ruby-value">1</span> + <span class="ruby-identifier">hsh</span>[<span class="ruby-identifier">:files</span>][<span class="ruby-identifier">filename</span>] = {<span class="ruby-identifier">:insertions</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">insertions</span>.<span class="ruby-identifier">to_i</span>, <span class="ruby-identifier">:deletions</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">deletions</span>.<span class="ruby-identifier">to_i</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-M000057" class="method-detail"> + <a name="M000057"></a> + + <div class="method-heading"> + <a href="#M000057" 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"> +<pre> +<span class="ruby-comment cmt"># File lib/git/lib.rb, line 295</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> +</pre> + </div> + </div> + </div> + + <div id="method-M000034" class="method-detail"> + <a name="M000034"></a> + + <div class="method-heading"> + <a href="#M000034" class="method-signature"> + <span class="method-name">grep</span><span class="method-args">(string, opts = {})</span> + </a> + </div> + + <div class="method-description"> + <p> +returns hash +</p> +<dl> +<dt>tree-ish</dt><dd>= [[line_no, match], [line_no, match2]] + +</dd> +<dt>tree-ish</dt><dd>= [[line_no, match], [line_no, match2]] + +</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"> +<pre> +<span class="ruby-comment cmt"># File lib/git/lib.rb, line 104</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>] + + <span class="ruby-identifier">grep_opts</span> = [<span class="ruby-value str">'-n'</span>] + <span class="ruby-identifier">grep_opts</span> <span class="ruby-operator"><<</span> <span class="ruby-value str">'-i'</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">opts</span>[<span class="ruby-identifier">:ignore_case</span>] + <span class="ruby-identifier">grep_opts</span> <span class="ruby-operator"><<</span> <span class="ruby-value str">'-v'</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">opts</span>[<span class="ruby-identifier">:invert_match</span>] + <span class="ruby-identifier">grep_opts</span> <span class="ruby-operator"><<</span> <span class="ruby-node">"-e '#{string}'"</span> + <span class="ruby-identifier">grep_opts</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">opts</span>[<span class="ruby-identifier">:object</span>] <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">opts</span>[<span class="ruby-identifier">:object</span>].<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">String</span>) + <span class="ruby-identifier">grep_opts</span> <span class="ruby-operator"><<</span> (<span class="ruby-value str">'-- '</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">opts</span>[<span class="ruby-identifier">:path_limiter</span>]) <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">opts</span>[<span class="ruby-identifier">:path_limiter</span>].<span class="ruby-identifier">is_a?</span> <span class="ruby-constant">String</span> + <span class="ruby-identifier">hsh</span> = {} + <span class="ruby-identifier">command_lines</span>(<span class="ruby-value str">'grep'</span>, <span class="ruby-identifier">grep_opts</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">m</span> = <span class="ruby-regexp re">/(.*)\:(\d+)\:(.*)/</span>.<span class="ruby-identifier">match</span>(<span class="ruby-identifier">line</span>) + <span class="ruby-identifier">hsh</span>[<span class="ruby-identifier">m</span>[<span class="ruby-value">1</span>]] <span class="ruby-operator">||=</span> [] + <span class="ruby-identifier">hsh</span>[<span class="ruby-identifier">m</span>[<span class="ruby-value">1</span>]] <span class="ruby-operator"><<</span> [<span class="ruby-identifier">m</span>[<span class="ruby-value">2</span>].<span class="ruby-identifier">to_i</span>, <span class="ruby-identifier">m</span>[<span class="ruby-value">3</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-M000025" class="method-detail"> + <a name="M000025"></a> + + <div class="method-heading"> + <a href="#M000025" 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"> +<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> + <span class="ruby-identifier">command</span>(<span class="ruby-value str">'init'</span>) + <span class="ruby-keyword kw">end</span> +</pre> + </div> + </div> + </div> + + <div id="method-M000027" class="method-detail"> + <a name="M000027"></a> + + <div class="method-heading"> + <a href="#M000027" class="method-signature"> + <span class="method-name">log_commits</span><span class="method-args">(opts = {})</span> + </a> + </div> + + <div class="method-description"> + <p> +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"> +<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> = {}) + <span class="ruby-identifier">arr_opts</span> = [<span class="ruby-value str">'--pretty=oneline'</span>] + <span class="ruby-identifier">arr_opts</span> <span class="ruby-operator"><<</span> <span class="ruby-node">"-#{opts[:count]}"</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">opts</span>[<span class="ruby-identifier">:count</span>] + <span class="ruby-identifier">arr_opts</span> <span class="ruby-operator"><<</span> <span class="ruby-node">"--since=\"#{opts[:since]}\""</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">opts</span>[<span class="ruby-identifier">:since</span>].<span class="ruby-identifier">is_a?</span> <span class="ruby-constant">String</span> + <span class="ruby-identifier">arr_opts</span> <span class="ruby-operator"><<</span> <span class="ruby-node">"#{opts[:between][0]}..#{opts[:between][1].to_s}"</span> <span class="ruby-keyword kw">if</span> (<span class="ruby-identifier">opts</span>[<span class="ruby-identifier">:between</span>] <span class="ruby-operator">&&</span> <span class="ruby-identifier">opts</span>[<span class="ruby-identifier">:between</span>].<span class="ruby-identifier">size</span> <span class="ruby-operator">==</span> <span class="ruby-value">2</span>) + <span class="ruby-identifier">arr_opts</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">opts</span>[<span class="ruby-identifier">:object</span>] <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">opts</span>[<span class="ruby-identifier">:object</span>].<span class="ruby-identifier">is_a?</span> <span class="ruby-constant">String</span> + <span class="ruby-identifier">arr_opts</span> <span class="ruby-operator"><<</span> <span class="ruby-value str">'-- '</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">opts</span>[<span class="ruby-identifier">:path_limiter</span>] <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">opts</span>[<span class="ruby-identifier">:path_limiter</span>].<span class="ruby-identifier">is_a?</span> <span class="ruby-constant">String</span> + + <span class="ruby-identifier">command_lines</span>(<span class="ruby-value str">'log'</span>, <span class="ruby-identifier">arr_opts</span>).<span class="ruby-identifier">map</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">l</span><span class="ruby-operator">|</span> <span class="ruby-identifier">l</span>.<span class="ruby-identifier">split</span>.<span class="ruby-identifier">first</span> } + <span class="ruby-keyword kw">end</span> +</pre> + </div> + </div> + </div> + + <div id="method-M000039" class="method-detail"> + <a name="M000039"></a> + + <div class="method-heading"> + <a href="#M000039" 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"> +<pre> +<span class="ruby-comment cmt"># File lib/git/lib.rb, line 176</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> + (<span class="ruby-identifier">info</span>, <span class="ruby-identifier">file</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">sha</span>, <span class="ruby-identifier">stage</span>) = <span class="ruby-identifier">info</span>.<span class="ruby-identifier">split</span> + <span class="ruby-identifier">hsh</span>[<span class="ruby-identifier">file</span>] = {<span class="ruby-identifier">:path</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">file</span>, <span class="ruby-identifier">:mode_index</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">mode</span>, <span class="ruby-identifier">:sha_index</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">sha</span>, <span class="ruby-identifier">:stage</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">stage</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-M000051" class="method-detail"> + <a name="M000051"></a> + + <div class="method-heading"> + <a href="#M000051" 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"> +<pre> +<span class="ruby-comment cmt"># File lib/git/lib.rb, line 260</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> + <span class="ruby-identifier">arr_opts</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">branch</span>.<span class="ruby-identifier">to_a</span>.<span class="ruby-identifier">join</span>(<span class="ruby-value str">' '</span>) + <span class="ruby-identifier">command</span>(<span class="ruby-value str">'merge'</span>, <span class="ruby-identifier">arr_opts</span>) + <span class="ruby-keyword kw">end</span> +</pre> + </div> + </div> + </div> + + <div id="method-M000031" class="method-detail"> + <a name="M000031"></a> + + <div class="method-heading"> + <a href="#M000031" 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"> +<pre> +<span class="ruby-comment cmt"># File lib/git/lib.rb, line 82</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> +</pre> + </div> + </div> + </div> + + <div id="method-M000030" class="method-detail"> + <a name="M000030"></a> + + <div class="method-heading"> + <a href="#M000030" 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"> +<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>) + <span class="ruby-identifier">command</span>(<span class="ruby-value str">'cat-file'</span>, [<span class="ruby-value str">'-s'</span>, <span class="ruby-identifier">sha</span>]).<span class="ruby-identifier">to_i</span> + <span class="ruby-keyword kw">end</span> +</pre> + </div> + </div> + </div> + + <div id="method-M000029" class="method-detail"> + <a name="M000029"></a> + + <div class="method-heading"> + <a href="#M000029" 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"> +<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>) + <span class="ruby-identifier">command</span>(<span class="ruby-value str">'cat-file'</span>, [<span class="ruby-value str">'-t'</span>, <span class="ruby-identifier">sha</span>]) + <span class="ruby-keyword kw">end</span> +</pre> + </div> + </div> + </div> + + <div id="method-M000052" class="method-detail"> + <a name="M000052"></a> + + <div class="method-heading"> + <a href="#M000052" 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"> +<pre> +<span class="ruby-comment cmt"># File lib/git/lib.rb, line 267</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>] + <span class="ruby-identifier">arr_opts</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">name</span> + <span class="ruby-identifier">arr_opts</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">url</span> + + <span class="ruby-identifier">command</span>(<span class="ruby-value str">'remote'</span>, <span class="ruby-identifier">arr_opts</span>) + <span class="ruby-keyword kw">end</span> +</pre> + </div> + </div> + </div> + + <div id="method-M000053" class="method-detail"> + <a name="M000053"></a> + + <div class="method-heading"> + <a href="#M000053" class="method-signature"> + <span class="method-name">remote_remove</span><span class="method-args">(name)</span> + </a> + </div> + + <div class="method-description"> + <p> +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"> +<pre> +<span class="ruby-comment cmt"># File lib/git/lib.rb, line 278</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> +</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">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"> +<pre> +<span class="ruby-comment cmt"># File lib/git/lib.rb, line 282</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> +</pre> + </div> + </div> + </div> + + <div id="method-M000045" class="method-detail"> + <a name="M000045"></a> + + <div class="method-heading"> + <a href="#M000045" 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"> +<pre> +<span class="ruby-comment cmt"># File lib/git/lib.rb, line 220</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>) + + <span class="ruby-identifier">arr_opts</span> = [<span class="ruby-value str">'-f'</span>] <span class="ruby-comment cmt"># overrides the up-to-date check by default</span> + <span class="ruby-identifier">arr_opts</span> <span class="ruby-operator"><<</span> [<span class="ruby-value str">'-r'</span>] <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">opts</span>[<span class="ruby-identifier">:recursive</span>] + <span class="ruby-identifier">arr_opts</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">path</span> + + <span class="ruby-identifier">command</span>(<span class="ruby-value str">'rm'</span>, <span class="ruby-identifier">arr_opts</span>) + <span class="ruby-keyword kw">end</span> +</pre> + </div> + </div> + </div> + + <div id="method-M000059" class="method-detail"> + <a name="M000059"></a> + + <div class="method-heading"> + <a href="#M000059" class="method-signature"> + <span class="method-name">repack</span><span class="method-args">()</span> + </a> + </div> + + <div class="method-description"> + <p><a class="source-toggle" href="#" + onclick="toggleCode('M000059-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000059-source"> +<pre> +<span class="ruby-comment cmt"># File lib/git/lib.rb, line 303</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> +</pre> + </div> + </div> + </div> + + <div id="method-M000047" class="method-detail"> + <a name="M000047"></a> + + <div class="method-heading"> + <a href="#M000047" 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"> +<pre> +<span class="ruby-comment cmt"># File lib/git/lib.rb, line 236</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>] + <span class="ruby-identifier">arr_opts</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">commit</span>.<span class="ruby-identifier">to_s</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">commit</span> + <span class="ruby-identifier">command</span>(<span class="ruby-value str">'reset'</span>, <span class="ruby-identifier">arr_opts</span>) + <span class="ruby-keyword kw">end</span> +</pre> + </div> + </div> + </div> + + <div id="method-M000028" class="method-detail"> + <a name="M000028"></a> + + <div class="method-heading"> + <a href="#M000028" 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"> +<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>) + <span class="ruby-identifier">command</span>(<span class="ruby-value str">'rev-parse'</span>, <span class="ruby-identifier">string</span>) + <span class="ruby-keyword kw">end</span> +</pre> + </div> + </div> + </div> + + <div id="method-M000056" class="method-detail"> + <a name="M000056"></a> + + <div class="method-heading"> + <a href="#M000056" 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"> +<pre> +<span class="ruby-comment cmt"># File lib/git/lib.rb, line 290</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> +</pre> + </div> + </div> + </div> + + <div id="method-M000058" class="method-detail"> + <a name="M000058"></a> + + <div class="method-heading"> + <a href="#M000058" class="method-signature"> + <span class="method-name">tag_sha</span><span class="method-args">(tag_name)</span> + </a> + </div> + + <div class="method-description"> + <p><a class="source-toggle" href="#" + onclick="toggleCode('M000058-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000058-source"> +<pre> +<span class="ruby-comment cmt"># File lib/git/lib.rb, line 299</span> + <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">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> +</pre> + </div> + </div> + </div> + + <div id="method-M000055" class="method-detail"> + <a name="M000055"></a> + + <div class="method-heading"> + <a href="#M000055" 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"> +<pre> +<span class="ruby-comment cmt"># File lib/git/lib.rb, line 286</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> +</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/Lib.src/M000024.html b/doc/classes/Git/Lib.src/M000024.html new file mode 100644 index 0000000..ba00001 --- /dev/null +++ b/doc/classes/Git/Lib.src/M000024.html @@ -0,0 +1,26 @@ +<?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> +<head> + <title>new (Git::Lib)</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> + <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" /> +</head> +<body class="standalone-code"> + <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>) + <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">base</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-ivar">@git_dir</span> = <span class="ruby-identifier">base</span>.<span class="ruby-identifier">repo</span>.<span class="ruby-identifier">path</span> + <span class="ruby-ivar">@git_index_file</span> = <span class="ruby-identifier">base</span>.<span class="ruby-identifier">index</span>.<span class="ruby-identifier">path</span> + <span class="ruby-ivar">@git_work_dir</span> = <span class="ruby-identifier">base</span>.<span class="ruby-identifier">dir</span>.<span class="ruby-identifier">path</span> + <span class="ruby-keyword kw">elsif</span> <span class="ruby-identifier">base</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">Hash</span>) + <span class="ruby-ivar">@git_dir</span> = <span class="ruby-identifier">base</span>[<span class="ruby-identifier">:repository</span>] + <span class="ruby-ivar">@git_index_file</span> = <span class="ruby-identifier">base</span>[<span class="ruby-identifier">:index</span>] + <span class="ruby-ivar">@git_work_dir</span> = <span class="ruby-identifier">base</span>[<span class="ruby-identifier">:working_directory</span>] + <span class="ruby-keyword kw">end</span> + <span class="ruby-keyword kw">end</span></pre> +</body> +</html>
\ No newline at end of file diff --git a/doc/classes/Git/Lib.src/M000025.html b/doc/classes/Git/Lib.src/M000025.html new file mode 100644 index 0000000..f132706 --- /dev/null +++ b/doc/classes/Git/Lib.src/M000025.html @@ -0,0 +1,18 @@ +<?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> +<head> + <title>init (Git::Lib)</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> + <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" /> +</head> +<body class="standalone-code"> + <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> + <span class="ruby-identifier">command</span>(<span class="ruby-value str">'init'</span>) + <span class="ruby-keyword kw">end</span></pre> +</body> +</html>
\ No newline at end of file diff --git a/doc/classes/Git/Lib.src/M000026.html b/doc/classes/Git/Lib.src/M000026.html new file mode 100644 index 0000000..195e6aa --- /dev/null +++ b/doc/classes/Git/Lib.src/M000026.html @@ -0,0 +1,29 @@ +<?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> +<head> + <title>clone (Git::Lib)</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> + <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" /> +</head> +<body class="standalone-code"> + <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> = {}) + <span class="ruby-ivar">@path</span> = <span class="ruby-identifier">opts</span>[<span class="ruby-identifier">:path</span>] <span class="ruby-operator">||</span> <span class="ruby-value str">'.'</span> + <span class="ruby-identifier">opts</span>[<span class="ruby-identifier">:path</span>] <span class="ruby-operator">?</span> <span class="ruby-identifier">clone_dir</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-ivar">@path</span>, <span class="ruby-identifier">name</span>) <span class="ruby-operator">:</span> <span class="ruby-identifier">clone_dir</span> = <span class="ruby-identifier">name</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">"--bare"</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">opts</span>[<span class="ruby-identifier">:bare</span>] + <span class="ruby-identifier">arr_opts</span> <span class="ruby-operator"><<</span> <span class="ruby-node">"-o #{opts[:remote]}"</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">opts</span>[<span class="ruby-identifier">:remote</span>] + <span class="ruby-identifier">arr_opts</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">repository</span> + <span class="ruby-identifier">arr_opts</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">clone_dir</span> + + <span class="ruby-identifier">command</span>(<span class="ruby-value str">'clone'</span>, <span class="ruby-identifier">arr_opts</span>) + + <span class="ruby-identifier">opts</span>[<span class="ruby-identifier">:bare</span>] <span class="ruby-operator">?</span> {<span class="ruby-identifier">:repository</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">clone_dir</span>} <span class="ruby-operator">:</span> {<span class="ruby-identifier">:working_directory</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">clone_dir</span>} + <span class="ruby-keyword kw">end</span></pre> +</body> +</html>
\ No newline at end of file diff --git a/doc/classes/Git/Lib.src/M000027.html b/doc/classes/Git/Lib.src/M000027.html new file mode 100644 index 0000000..603256b --- /dev/null +++ b/doc/classes/Git/Lib.src/M000027.html @@ -0,0 +1,25 @@ +<?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> +<head> + <title>log_commits (Git::Lib)</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> + <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" /> +</head> +<body class="standalone-code"> + <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> = {}) + <span class="ruby-identifier">arr_opts</span> = [<span class="ruby-value str">'--pretty=oneline'</span>] + <span class="ruby-identifier">arr_opts</span> <span class="ruby-operator"><<</span> <span class="ruby-node">"-#{opts[:count]}"</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">opts</span>[<span class="ruby-identifier">:count</span>] + <span class="ruby-identifier">arr_opts</span> <span class="ruby-operator"><<</span> <span class="ruby-node">"--since=\"#{opts[:since]}\""</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">opts</span>[<span class="ruby-identifier">:since</span>].<span class="ruby-identifier">is_a?</span> <span class="ruby-constant">String</span> + <span class="ruby-identifier">arr_opts</span> <span class="ruby-operator"><<</span> <span class="ruby-node">"#{opts[:between][0]}..#{opts[:between][1].to_s}"</span> <span class="ruby-keyword kw">if</span> (<span class="ruby-identifier">opts</span>[<span class="ruby-identifier">:between</span>] <span class="ruby-operator">&&</span> <span class="ruby-identifier">opts</span>[<span class="ruby-identifier">:between</span>].<span class="ruby-identifier">size</span> <span class="ruby-operator">==</span> <span class="ruby-value">2</span>) + <span class="ruby-identifier">arr_opts</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">opts</span>[<span class="ruby-identifier">:object</span>] <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">opts</span>[<span class="ruby-identifier">:object</span>].<span class="ruby-identifier">is_a?</span> <span class="ruby-constant">String</span> + <span class="ruby-identifier">arr_opts</span> <span class="ruby-operator"><<</span> <span class="ruby-value str">'-- '</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">opts</span>[<span class="ruby-identifier">:path_limiter</span>] <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">opts</span>[<span class="ruby-identifier">:path_limiter</span>].<span class="ruby-identifier">is_a?</span> <span class="ruby-constant">String</span> + + <span class="ruby-identifier">command_lines</span>(<span class="ruby-value str">'log'</span>, <span class="ruby-identifier">arr_opts</span>).<span class="ruby-identifier">map</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">l</span><span class="ruby-operator">|</span> <span class="ruby-identifier">l</span>.<span class="ruby-identifier">split</span>.<span class="ruby-identifier">first</span> } + <span class="ruby-keyword kw">end</span></pre> +</body> +</html>
\ No newline at end of file diff --git a/doc/classes/Git/Lib.src/M000028.html b/doc/classes/Git/Lib.src/M000028.html new file mode 100644 index 0000000..708f1f6 --- /dev/null +++ b/doc/classes/Git/Lib.src/M000028.html @@ -0,0 +1,18 @@ +<?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> +<head> + <title>revparse (Git::Lib)</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> + <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" /> +</head> +<body class="standalone-code"> + <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>) + <span class="ruby-identifier">command</span>(<span class="ruby-value str">'rev-parse'</span>, <span class="ruby-identifier">string</span>) + <span class="ruby-keyword kw">end</span></pre> +</body> +</html>
\ No newline at end of file diff --git a/doc/classes/Git/Lib.src/M000029.html b/doc/classes/Git/Lib.src/M000029.html new file mode 100644 index 0000000..19ef656 --- /dev/null +++ b/doc/classes/Git/Lib.src/M000029.html @@ -0,0 +1,18 @@ +<?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> +<head> + <title>object_type (Git::Lib)</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> + <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" /> +</head> +<body class="standalone-code"> + <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>) + <span class="ruby-identifier">command</span>(<span class="ruby-value str">'cat-file'</span>, [<span class="ruby-value str">'-t'</span>, <span class="ruby-identifier">sha</span>]) + <span class="ruby-keyword kw">end</span></pre> +</body> +</html>
\ No newline at end of file diff --git a/doc/classes/Git/Lib.src/M000030.html b/doc/classes/Git/Lib.src/M000030.html new file mode 100644 index 0000000..68a9d40 --- /dev/null +++ b/doc/classes/Git/Lib.src/M000030.html @@ -0,0 +1,18 @@ +<?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> +<head> + <title>object_size (Git::Lib)</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> + <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" /> +</head> +<body class="standalone-code"> + <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>) + <span class="ruby-identifier">command</span>(<span class="ruby-value str">'cat-file'</span>, [<span class="ruby-value str">'-s'</span>, <span class="ruby-identifier">sha</span>]).<span class="ruby-identifier">to_i</span> + <span class="ruby-keyword kw">end</span></pre> +</body> +</html>
\ No newline at end of file diff --git a/doc/classes/Git/Lib.src/M000031.html b/doc/classes/Git/Lib.src/M000031.html new file mode 100644 index 0000000..b821baa --- /dev/null +++ b/doc/classes/Git/Lib.src/M000031.html @@ -0,0 +1,18 @@ +<?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> +<head> + <title>object_contents (Git::Lib)</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> + <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" /> +</head> +<body class="standalone-code"> + <pre><span class="ruby-comment cmt"># File lib/git/lib.rb, line 82</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></pre> +</body> +</html>
\ No newline at end of file diff --git a/doc/classes/Git/Lib.src/M000032.html b/doc/classes/Git/Lib.src/M000032.html new file mode 100644 index 0000000..7818e4c --- /dev/null +++ b/doc/classes/Git/Lib.src/M000032.html @@ -0,0 +1,24 @@ +<?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> +<head> + <title>branches_all (Git::Lib)</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> + <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" /> +</head> +<body class="standalone-code"> + <pre><span class="ruby-comment cmt"># File lib/git/lib.rb, line 86</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> + <span class="ruby-identifier">current</span> = <span class="ruby-keyword kw">false</span> + <span class="ruby-identifier">current</span> = <span class="ruby-keyword kw">true</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">b</span>[<span class="ruby-value">0</span>, <span class="ruby-value">2</span>] <span class="ruby-operator">==</span> <span class="ruby-value str">'* '</span> + <span class="ruby-identifier">arr</span> <span class="ruby-operator"><<</span> [<span class="ruby-identifier">b</span>.<span class="ruby-identifier">gsub</span>(<span class="ruby-value str">'* '</span>, <span class="ruby-value str">''</span>).<span class="ruby-identifier">strip</span>, <span class="ruby-identifier">current</span>] + <span class="ruby-keyword kw">end</span> + <span class="ruby-identifier">arr</span> + <span class="ruby-keyword kw">end</span></pre> +</body> +</html>
\ No newline at end of file diff --git a/doc/classes/Git/Lib.src/M000033.html b/doc/classes/Git/Lib.src/M000033.html new file mode 100644 index 0000000..d10ebc0 --- /dev/null +++ b/doc/classes/Git/Lib.src/M000033.html @@ -0,0 +1,18 @@ +<?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> +<head> + <title>branch_current (Git::Lib)</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> + <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" /> +</head> +<body class="standalone-code"> + <pre><span class="ruby-comment cmt"># File lib/git/lib.rb, line 96</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></pre> +</body> +</html>
\ No newline at end of file diff --git a/doc/classes/Git/Lib.src/M000034.html b/doc/classes/Git/Lib.src/M000034.html new file mode 100644 index 0000000..0547151 --- /dev/null +++ b/doc/classes/Git/Lib.src/M000034.html @@ -0,0 +1,33 @@ +<?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> +<head> + <title>grep (Git::Lib)</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> + <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" /> +</head> +<body class="standalone-code"> + <pre><span class="ruby-comment cmt"># File lib/git/lib.rb, line 104</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>] + + <span class="ruby-identifier">grep_opts</span> = [<span class="ruby-value str">'-n'</span>] + <span class="ruby-identifier">grep_opts</span> <span class="ruby-operator"><<</span> <span class="ruby-value str">'-i'</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">opts</span>[<span class="ruby-identifier">:ignore_case</span>] + <span class="ruby-identifier">grep_opts</span> <span class="ruby-operator"><<</span> <span class="ruby-value str">'-v'</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">opts</span>[<span class="ruby-identifier">:invert_match</span>] + <span class="ruby-identifier">grep_opts</span> <span class="ruby-operator"><<</span> <span class="ruby-node">"-e '#{string}'"</span> + <span class="ruby-identifier">grep_opts</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">opts</span>[<span class="ruby-identifier">:object</span>] <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">opts</span>[<span class="ruby-identifier">:object</span>].<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">String</span>) + <span class="ruby-identifier">grep_opts</span> <span class="ruby-operator"><<</span> (<span class="ruby-value str">'-- '</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">opts</span>[<span class="ruby-identifier">:path_limiter</span>]) <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">opts</span>[<span class="ruby-identifier">:path_limiter</span>].<span class="ruby-identifier">is_a?</span> <span class="ruby-constant">String</span> + <span class="ruby-identifier">hsh</span> = {} + <span class="ruby-identifier">command_lines</span>(<span class="ruby-value str">'grep'</span>, <span class="ruby-identifier">grep_opts</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">m</span> = <span class="ruby-regexp re">/(.*)\:(\d+)\:(.*)/</span>.<span class="ruby-identifier">match</span>(<span class="ruby-identifier">line</span>) + <span class="ruby-identifier">hsh</span>[<span class="ruby-identifier">m</span>[<span class="ruby-value">1</span>]] <span class="ruby-operator">||=</span> [] + <span class="ruby-identifier">hsh</span>[<span class="ruby-identifier">m</span>[<span class="ruby-value">1</span>]] <span class="ruby-operator"><<</span> [<span class="ruby-identifier">m</span>[<span class="ruby-value">2</span>].<span class="ruby-identifier">to_i</span>, <span class="ruby-identifier">m</span>[<span class="ruby-value">3</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> +</body> +</html>
\ No newline at end of file diff --git a/doc/classes/Git/Lib.src/M000035.html b/doc/classes/Git/Lib.src/M000035.html new file mode 100644 index 0000000..1fa9b8a --- /dev/null +++ b/doc/classes/Git/Lib.src/M000035.html @@ -0,0 +1,23 @@ +<?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> +<head> + <title>diff_full (Git::Lib)</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> + <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" /> +</head> +<body class="standalone-code"> + <pre><span class="ruby-comment cmt"># File lib/git/lib.rb, line 123</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> + <span class="ruby-identifier">diff_opts</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">obj2</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">obj2</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">String</span>) + <span class="ruby-identifier">diff_opts</span> <span class="ruby-operator"><<</span> (<span class="ruby-value str">'-- '</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">opts</span>[<span class="ruby-identifier">:path_limiter</span>]) <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">opts</span>[<span class="ruby-identifier">:path_limiter</span>].<span class="ruby-identifier">is_a?</span> <span class="ruby-constant">String</span> + + <span class="ruby-identifier">command</span>(<span class="ruby-value str">'diff'</span>, <span class="ruby-identifier">diff_opts</span>) + <span class="ruby-keyword kw">end</span></pre> +</body> +</html>
\ No newline at end of file diff --git a/doc/classes/Git/Lib.src/M000036.html b/doc/classes/Git/Lib.src/M000036.html new file mode 100644 index 0000000..4f5044b --- /dev/null +++ b/doc/classes/Git/Lib.src/M000036.html @@ -0,0 +1,34 @@ +<?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> +<head> + <title>diff_stats (Git::Lib)</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> + <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" /> +</head> +<body class="standalone-code"> + <pre><span class="ruby-comment cmt"># File lib/git/lib.rb, line 132</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> + <span class="ruby-identifier">diff_opts</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">obj2</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">obj2</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">String</span>) + <span class="ruby-identifier">diff_opts</span> <span class="ruby-operator"><<</span> (<span class="ruby-value str">'-- '</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">opts</span>[<span class="ruby-identifier">:path_limiter</span>]) <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">opts</span>[<span class="ruby-identifier">:path_limiter</span>].<span class="ruby-identifier">is_a?</span> <span class="ruby-constant">String</span> + + <span class="ruby-identifier">hsh</span> = {<span class="ruby-identifier">:total</span> =<span class="ruby-operator">></span> {<span class="ruby-identifier">:insertions</span> =<span class="ruby-operator">></span> <span class="ruby-value">0</span>, <span class="ruby-identifier">:deletions</span> =<span class="ruby-operator">></span> <span class="ruby-value">0</span>, <span class="ruby-identifier">:lines</span> =<span class="ruby-operator">></span> <span class="ruby-value">0</span>, <span class="ruby-identifier">:files</span> =<span class="ruby-operator">></span> <span class="ruby-value">0</span>}, <span class="ruby-identifier">:files</span> =<span class="ruby-operator">></span> {}} + + <span class="ruby-identifier">command_lines</span>(<span class="ruby-value str">'diff'</span>, <span class="ruby-identifier">diff_opts</span>).<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">file</span><span class="ruby-operator">|</span> + (<span class="ruby-identifier">insertions</span>, <span class="ruby-identifier">deletions</span>, <span class="ruby-identifier">filename</span>) = <span class="ruby-identifier">file</span>.<span class="ruby-identifier">split</span>(<span class="ruby-value str">"\t"</span>) + <span class="ruby-identifier">hsh</span>[<span class="ruby-identifier">:total</span>][<span class="ruby-identifier">:insertions</span>] <span class="ruby-operator">+=</span> <span class="ruby-identifier">insertions</span>.<span class="ruby-identifier">to_i</span> + <span class="ruby-identifier">hsh</span>[<span class="ruby-identifier">:total</span>][<span class="ruby-identifier">:deletions</span>] <span class="ruby-operator">+=</span> <span class="ruby-identifier">deletions</span>.<span class="ruby-identifier">to_i</span> + <span class="ruby-identifier">hsh</span>[<span class="ruby-identifier">:total</span>][<span class="ruby-identifier">:lines</span>] = (<span class="ruby-identifier">hsh</span>[<span class="ruby-identifier">:total</span>][<span class="ruby-identifier">:deletions</span>] <span class="ruby-operator">+</span> <span class="ruby-identifier">hsh</span>[<span class="ruby-identifier">:total</span>][<span class="ruby-identifier">:insertions</span>]) + <span class="ruby-identifier">hsh</span>[<span class="ruby-identifier">:total</span>][<span class="ruby-identifier">:files</span>] <span class="ruby-operator">+=</span> <span class="ruby-value">1</span> + <span class="ruby-identifier">hsh</span>[<span class="ruby-identifier">:files</span>][<span class="ruby-identifier">filename</span>] = {<span class="ruby-identifier">:insertions</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">insertions</span>.<span class="ruby-identifier">to_i</span>, <span class="ruby-identifier">:deletions</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">deletions</span>.<span class="ruby-identifier">to_i</span>} + <span class="ruby-keyword kw">end</span> + + <span class="ruby-identifier">hsh</span> + <span class="ruby-keyword kw">end</span></pre> +</body> +</html>
\ No newline at end of file diff --git a/doc/classes/Git/Lib.src/M000037.html b/doc/classes/Git/Lib.src/M000037.html new file mode 100644 index 0000000..aada203 --- /dev/null +++ b/doc/classes/Git/Lib.src/M000037.html @@ -0,0 +1,25 @@ +<?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> +<head> + <title>diff_files (Git::Lib)</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> + <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" /> +</head> +<body class="standalone-code"> + <pre><span class="ruby-comment cmt"># File lib/git/lib.rb, line 153</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> + (<span class="ruby-identifier">info</span>, <span class="ruby-identifier">file</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_src</span>, <span class="ruby-identifier">mode_dest</span>, <span class="ruby-identifier">sha_src</span>, <span class="ruby-identifier">sha_dest</span>, <span class="ruby-identifier">type</span>) = <span class="ruby-identifier">info</span>.<span class="ruby-identifier">split</span> + <span class="ruby-identifier">hsh</span>[<span class="ruby-identifier">file</span>] = {<span class="ruby-identifier">:path</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">file</span>, <span class="ruby-identifier">:mode_file</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">mode_src</span>.<span class="ruby-identifier">to_s</span>[<span class="ruby-value">1</span>, <span class="ruby-value">7</span>], <span class="ruby-identifier">:mode_index</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">mode_dest</span>, + <span class="ruby-identifier">:sha_file</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">sha_src</span>, <span class="ruby-identifier">:sha_index</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">sha_dest</span>, <span class="ruby-identifier">:type</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">type</span>} + <span class="ruby-keyword kw">end</span> + <span class="ruby-identifier">hsh</span> + <span class="ruby-keyword kw">end</span></pre> +</body> +</html>
\ No newline at end of file diff --git a/doc/classes/Git/Lib.src/M000038.html b/doc/classes/Git/Lib.src/M000038.html new file mode 100644 index 0000000..2460d42 --- /dev/null +++ b/doc/classes/Git/Lib.src/M000038.html @@ -0,0 +1,25 @@ +<?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> +<head> + <title>diff_index (Git::Lib)</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> + <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" /> +</head> +<body class="standalone-code"> + <pre><span class="ruby-comment cmt"># File lib/git/lib.rb, line 165</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> + (<span class="ruby-identifier">info</span>, <span class="ruby-identifier">file</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_src</span>, <span class="ruby-identifier">mode_dest</span>, <span class="ruby-identifier">sha_src</span>, <span class="ruby-identifier">sha_dest</span>, <span class="ruby-identifier">type</span>) = <span class="ruby-identifier">info</span>.<span class="ruby-identifier">split</span> + <span class="ruby-identifier">hsh</span>[<span class="ruby-identifier">file</span>] = {<span class="ruby-identifier">:path</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">file</span>, <span class="ruby-identifier">:mode_repo</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">mode_src</span>.<span class="ruby-identifier">to_s</span>[<span class="ruby-value">1</span>, <span class="ruby-value">7</span>], <span class="ruby-identifier">:mode_index</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">mode_dest</span>, + <span class="ruby-identifier">:sha_repo</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">sha_src</span>, <span class="ruby-identifier">:sha_index</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">sha_dest</span>, <span class="ruby-identifier">:type</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">type</span>} + <span class="ruby-keyword kw">end</span> + <span class="ruby-identifier">hsh</span> + <span class="ruby-keyword kw">end</span></pre> +</body> +</html>
\ No newline at end of file diff --git a/doc/classes/Git/Lib.src/M000039.html b/doc/classes/Git/Lib.src/M000039.html new file mode 100644 index 0000000..34a272c --- /dev/null +++ b/doc/classes/Git/Lib.src/M000039.html @@ -0,0 +1,24 @@ +<?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> +<head> + <title>ls_files (Git::Lib)</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> + <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" /> +</head> +<body class="standalone-code"> + <pre><span class="ruby-comment cmt"># File lib/git/lib.rb, line 176</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> + (<span class="ruby-identifier">info</span>, <span class="ruby-identifier">file</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">sha</span>, <span class="ruby-identifier">stage</span>) = <span class="ruby-identifier">info</span>.<span class="ruby-identifier">split</span> + <span class="ruby-identifier">hsh</span>[<span class="ruby-identifier">file</span>] = {<span class="ruby-identifier">:path</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">file</span>, <span class="ruby-identifier">:mode_index</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">mode</span>, <span class="ruby-identifier">:sha_index</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">sha</span>, <span class="ruby-identifier">:stage</span> =<span class="ruby-operator">></span> <span class="ruby-identifier">stage</span>} + <span class="ruby-keyword kw">end</span> + <span class="ruby-identifier">hsh</span> + <span class="ruby-keyword kw">end</span></pre> +</body> +</html>
\ No newline at end of file diff --git a/doc/classes/Git/Lib.src/M000040.html b/doc/classes/Git/Lib.src/M000040.html new file mode 100644 index 0000000..9eeed74 --- /dev/null +++ b/doc/classes/Git/Lib.src/M000040.html @@ -0,0 +1,23 @@ +<?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> +<head> + <title>config_remote (Git::Lib)</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> + <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" /> +</head> +<body class="standalone-code"> + <pre><span class="ruby-comment cmt"># File lib/git/lib.rb, line 187</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> + (<span class="ruby-identifier">key</span>, <span class="ruby-identifier">value</span>) = <span class="ruby-identifier">line</span>.<span class="ruby-identifier">split</span> + <span class="ruby-identifier">hsh</span>[<span class="ruby-identifier">key</span>.<span class="ruby-identifier">gsub</span>(<span class="ruby-node">"remote.#{name}."</span>, <span class="ruby-value str">''</span>)] = <span class="ruby-identifier">value</span> + <span class="ruby-keyword kw">end</span> + <span class="ruby-identifier">hsh</span> + <span class="ruby-keyword kw">end</span></pre> +</body> +</html>
\ No newline at end of file diff --git a/doc/classes/Git/Lib.src/M000041.html b/doc/classes/Git/Lib.src/M000041.html new file mode 100644 index 0000000..05b40e2 --- /dev/null +++ b/doc/classes/Git/Lib.src/M000041.html @@ -0,0 +1,18 @@ +<?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> +<head> + <title>config_get (Git::Lib)</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> + <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" /> +</head> +<body class="standalone-code"> + <pre><span class="ruby-comment cmt"># File lib/git/lib.rb, line 196</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></pre> +</body> +</html>
\ No newline at end of file diff --git a/doc/classes/Git/Lib.src/M000042.html b/doc/classes/Git/Lib.src/M000042.html new file mode 100644 index 0000000..d1c0fdd --- /dev/null +++ b/doc/classes/Git/Lib.src/M000042.html @@ -0,0 +1,23 @@ +<?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> +<head> + <title>config_list (Git::Lib)</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> + <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" /> +</head> +<body class="standalone-code"> + <pre><span class="ruby-comment cmt"># File lib/git/lib.rb, line 200</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> + (<span class="ruby-identifier">key</span>, <span class="ruby-identifier">value</span>) = <span class="ruby-identifier">line</span>.<span class="ruby-identifier">split</span>(<span class="ruby-value str">'='</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-identifier">hsh</span> + <span class="ruby-keyword kw">end</span></pre> +</body> +</html>
\ No newline at end of file diff --git a/doc/classes/Git/Lib.src/M000043.html b/doc/classes/Git/Lib.src/M000043.html new file mode 100644 index 0000000..c9eb5b3 --- /dev/null +++ b/doc/classes/Git/Lib.src/M000043.html @@ -0,0 +1,18 @@ +<?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> +<head> + <title>config_set (Git::Lib)</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> + <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" /> +</head> +<body class="standalone-code"> + <pre><span class="ruby-comment cmt"># File lib/git/lib.rb, line 211</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></pre> +</body> +</html>
\ No newline at end of file diff --git a/doc/classes/Git/Lib.src/M000044.html b/doc/classes/Git/Lib.src/M000044.html new file mode 100644 index 0000000..47a4a41 --- /dev/null +++ b/doc/classes/Git/Lib.src/M000044.html @@ -0,0 +1,19 @@ +<?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> +<head> + <title>add (Git::Lib)</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> + <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" /> +</head> +<body class="standalone-code"> + <pre><span class="ruby-comment cmt"># File lib/git/lib.rb, line 215</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>) + <span class="ruby-keyword kw">end</span></pre> +</body> +</html>
\ No newline at end of file diff --git a/doc/classes/Git/Lib.src/M000045.html b/doc/classes/Git/Lib.src/M000045.html new file mode 100644 index 0000000..9de6f9e --- /dev/null +++ b/doc/classes/Git/Lib.src/M000045.html @@ -0,0 +1,24 @@ +<?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> +<head> + <title>remove (Git::Lib)</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> + <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" /> +</head> +<body class="standalone-code"> + <pre><span class="ruby-comment cmt"># File lib/git/lib.rb, line 220</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>) + + <span class="ruby-identifier">arr_opts</span> = [<span class="ruby-value str">'-f'</span>] <span class="ruby-comment cmt"># overrides the up-to-date check by default</span> + <span class="ruby-identifier">arr_opts</span> <span class="ruby-operator"><<</span> [<span class="ruby-value str">'-r'</span>] <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">opts</span>[<span class="ruby-identifier">:recursive</span>] + <span class="ruby-identifier">arr_opts</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">path</span> + + <span class="ruby-identifier">command</span>(<span class="ruby-value str">'rm'</span>, <span class="ruby-identifier">arr_opts</span>) + <span class="ruby-keyword kw">end</span></pre> +</body> +</html>
\ No newline at end of file diff --git a/doc/classes/Git/Lib.src/M000046.html b/doc/classes/Git/Lib.src/M000046.html new file mode 100644 index 0000000..22bbb94 --- /dev/null +++ b/doc/classes/Git/Lib.src/M000046.html @@ -0,0 +1,20 @@ +<?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> +<head> + <title>commit (Git::Lib)</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> + <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" /> +</head> +<body class="standalone-code"> + <pre><span class="ruby-comment cmt"># File lib/git/lib.rb, line 230</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>] + <span class="ruby-identifier">command</span>(<span class="ruby-value str">'commit'</span>, <span class="ruby-identifier">arr_opts</span>) + <span class="ruby-keyword kw">end</span></pre> +</body> +</html>
\ No newline at end of file diff --git a/doc/classes/Git/Lib.src/M000047.html b/doc/classes/Git/Lib.src/M000047.html new file mode 100644 index 0000000..03f68f1 --- /dev/null +++ b/doc/classes/Git/Lib.src/M000047.html @@ -0,0 +1,21 @@ +<?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> +<head> + <title>reset (Git::Lib)</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> + <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" /> +</head> +<body class="standalone-code"> + <pre><span class="ruby-comment cmt"># File lib/git/lib.rb, line 236</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>] + <span class="ruby-identifier">arr_opts</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">commit</span>.<span class="ruby-identifier">to_s</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">commit</span> + <span class="ruby-identifier">command</span>(<span class="ruby-value str">'reset'</span>, <span class="ruby-identifier">arr_opts</span>) + <span class="ruby-keyword kw">end</span></pre> +</body> +</html>
\ No newline at end of file diff --git a/doc/classes/Git/Lib.src/M000048.html b/doc/classes/Git/Lib.src/M000048.html new file mode 100644 index 0000000..b33f1ce --- /dev/null +++ b/doc/classes/Git/Lib.src/M000048.html @@ -0,0 +1,18 @@ +<?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> +<head> + <title>branch_new (Git::Lib)</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> + <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" /> +</head> +<body class="standalone-code"> + <pre><span class="ruby-comment cmt"># File lib/git/lib.rb, line 244</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></pre> +</body> +</html>
\ No newline at end of file diff --git a/doc/classes/Git/Lib.src/M000049.html b/doc/classes/Git/Lib.src/M000049.html new file mode 100644 index 0000000..5910442 --- /dev/null +++ b/doc/classes/Git/Lib.src/M000049.html @@ -0,0 +1,18 @@ +<?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> +<head> + <title>branch_delete (Git::Lib)</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> + <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" /> +</head> +<body class="standalone-code"> + <pre><span class="ruby-comment cmt"># File lib/git/lib.rb, line 248</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></pre> +</body> +</html>
\ No newline at end of file diff --git a/doc/classes/Git/Lib.src/M000050.html b/doc/classes/Git/Lib.src/M000050.html new file mode 100644 index 0000000..cb3c14e --- /dev/null +++ b/doc/classes/Git/Lib.src/M000050.html @@ -0,0 +1,22 @@ +<?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> +<head> + <title>checkout (Git::Lib)</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> + <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" /> +</head> +<body class="standalone-code"> + <pre><span class="ruby-comment cmt"># File lib/git/lib.rb, line 252</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>] + <span class="ruby-identifier">arr_opts</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">branch</span>.<span class="ruby-identifier">to_s</span> + + <span class="ruby-identifier">command</span>(<span class="ruby-value str">'checkout'</span>, <span class="ruby-identifier">arr_opts</span>) + <span class="ruby-keyword kw">end</span></pre> +</body> +</html>
\ No newline at end of file diff --git a/doc/classes/Git/Lib.src/M000051.html b/doc/classes/Git/Lib.src/M000051.html new file mode 100644 index 0000000..6df355b --- /dev/null +++ b/doc/classes/Git/Lib.src/M000051.html @@ -0,0 +1,21 @@ +<?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> +<head> + <title>merge (Git::Lib)</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> + <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" /> +</head> +<body class="standalone-code"> + <pre><span class="ruby-comment cmt"># File lib/git/lib.rb, line 260</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> + <span class="ruby-identifier">arr_opts</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">branch</span>.<span class="ruby-identifier">to_a</span>.<span class="ruby-identifier">join</span>(<span class="ruby-value str">' '</span>) + <span class="ruby-identifier">command</span>(<span class="ruby-value str">'merge'</span>, <span class="ruby-identifier">arr_opts</span>) + <span class="ruby-keyword kw">end</span></pre> +</body> +</html>
\ No newline at end of file diff --git a/doc/classes/Git/Lib.src/M000052.html b/doc/classes/Git/Lib.src/M000052.html new file mode 100644 index 0000000..275232d --- /dev/null +++ b/doc/classes/Git/Lib.src/M000052.html @@ -0,0 +1,23 @@ +<?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> +<head> + <title>remote_add (Git::Lib)</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> + <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" /> +</head> +<body class="standalone-code"> + <pre><span class="ruby-comment cmt"># File lib/git/lib.rb, line 267</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>] + <span class="ruby-identifier">arr_opts</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">name</span> + <span class="ruby-identifier">arr_opts</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">url</span> + + <span class="ruby-identifier">command</span>(<span class="ruby-value str">'remote'</span>, <span class="ruby-identifier">arr_opts</span>) + <span class="ruby-keyword kw">end</span></pre> +</body> +</html>
\ No newline at end of file diff --git a/doc/classes/Git/Lib.src/M000053.html b/doc/classes/Git/Lib.src/M000053.html new file mode 100644 index 0000000..14665fa --- /dev/null +++ b/doc/classes/Git/Lib.src/M000053.html @@ -0,0 +1,18 @@ +<?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> +<head> + <title>remote_remove (Git::Lib)</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> + <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" /> +</head> +<body class="standalone-code"> + <pre><span class="ruby-comment cmt"># File lib/git/lib.rb, line 278</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></pre> +</body> +</html>
\ No newline at end of file diff --git a/doc/classes/Git/Lib.src/M000054.html b/doc/classes/Git/Lib.src/M000054.html new file mode 100644 index 0000000..12b9aa6 --- /dev/null +++ b/doc/classes/Git/Lib.src/M000054.html @@ -0,0 +1,18 @@ +<?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> +<head> + <title>remotes (Git::Lib)</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> + <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" /> +</head> +<body class="standalone-code"> + <pre><span class="ruby-comment cmt"># File lib/git/lib.rb, line 282</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></pre> +</body> +</html>
\ No newline at end of file diff --git a/doc/classes/Git/Lib.src/M000055.html b/doc/classes/Git/Lib.src/M000055.html new file mode 100644 index 0000000..b8ee19c --- /dev/null +++ b/doc/classes/Git/Lib.src/M000055.html @@ -0,0 +1,18 @@ +<?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> +<head> + <title>tags (Git::Lib)</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> + <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" /> +</head> +<body class="standalone-code"> + <pre><span class="ruby-comment cmt"># File lib/git/lib.rb, line 286</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></pre> +</body> +</html>
\ No newline at end of file diff --git a/doc/classes/Git/Lib.src/M000056.html b/doc/classes/Git/Lib.src/M000056.html new file mode 100644 index 0000000..341892d --- /dev/null +++ b/doc/classes/Git/Lib.src/M000056.html @@ -0,0 +1,18 @@ +<?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> +<head> + <title>tag (Git::Lib)</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> + <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" /> +</head> +<body class="standalone-code"> + <pre><span class="ruby-comment cmt"># File lib/git/lib.rb, line 290</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></pre> +</body> +</html>
\ No newline at end of file diff --git a/doc/classes/Git/Lib.src/M000057.html b/doc/classes/Git/Lib.src/M000057.html new file mode 100644 index 0000000..26bb882 --- /dev/null +++ b/doc/classes/Git/Lib.src/M000057.html @@ -0,0 +1,18 @@ +<?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> +<head> + <title>fetch (Git::Lib)</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> + <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" /> +</head> +<body class="standalone-code"> + <pre><span class="ruby-comment cmt"># File lib/git/lib.rb, line 295</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></pre> +</body> +</html>
\ No newline at end of file diff --git a/doc/classes/Git/Lib.src/M000058.html b/doc/classes/Git/Lib.src/M000058.html new file mode 100644 index 0000000..8bea02a --- /dev/null +++ b/doc/classes/Git/Lib.src/M000058.html @@ -0,0 +1,18 @@ +<?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> +<head> + <title>tag_sha (Git::Lib)</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> + <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" /> +</head> +<body class="standalone-code"> + <pre><span class="ruby-comment cmt"># File lib/git/lib.rb, line 299</span> + <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">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></pre> +</body> +</html>
\ No newline at end of file diff --git a/doc/classes/Git/Lib.src/M000059.html b/doc/classes/Git/Lib.src/M000059.html new file mode 100644 index 0000000..7a16479 --- /dev/null +++ b/doc/classes/Git/Lib.src/M000059.html @@ -0,0 +1,18 @@ +<?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> +<head> + <title>repack (Git::Lib)</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> + <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" /> +</head> +<body class="standalone-code"> + <pre><span class="ruby-comment cmt"># File lib/git/lib.rb, line 303</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></pre> +</body> +</html>
\ No newline at end of file diff --git a/doc/classes/Git/Log.html b/doc/classes/Git/Log.html new file mode 100644 index 0000000..08fff11 --- /dev/null +++ b/doc/classes/Git/Log.html @@ -0,0 +1,373 @@ +<?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::Log</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::Log</td> + </tr> + <tr class="top-aligned-row"> + <td><strong>In:</strong></td> + <td> + <a href="../../files/lib/git/log_rb.html"> + lib/git/log.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 id="description"> + <p> +object that holds the last X commits on given branch +</p> + + </div> + + + </div> + + <div id="method-list"> + <h3 class="section-bar">Methods</h3> + + <div class="name-list"> + <a href="#M000019">between</a> + <a href="#M000022">each</a> + <a href="#M000023">first</a> + <a href="#M000015">new</a> + <a href="#M000016">object</a> + <a href="#M000017">path</a> + <a href="#M000018">since</a> + <a href="#M000021">size</a> + <a href="#M000020">to_s</a> + </div> + </div> + + </div> + + + <!-- if includes --> + <div id="includes"> + <h3 class="section-bar">Included Modules</h3> + + <div id="includes-list"> + <span class="include-name">Enumerable</span> + </div> + </div> + + <div id="section"> + + + + + + + + + <!-- if method_list --> + <div id="methods"> + <h3 class="section-bar">Public Class methods</h3> + + <div id="method-M000015" class="method-detail"> + <a name="M000015"></a> + + <div class="method-heading"> + <a href="#M000015" class="method-signature"> + <span class="method-name">new</span><span class="method-args">(base, count = 30)</span> + </a> + </div> + + <div class="method-description"> + <p><a class="source-toggle" href="#" + onclick="toggleCode('M000015-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000015-source"> +<pre> +<span class="ruby-comment cmt"># File lib/git/log.rb, line 18</span> + <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">base</span>, <span class="ruby-identifier">count</span> = <span class="ruby-value">30</span>) + <span class="ruby-identifier">dirty_log</span> + <span class="ruby-ivar">@base</span> = <span class="ruby-identifier">base</span> + <span class="ruby-ivar">@count</span> = <span class="ruby-identifier">count</span> + <span class="ruby-keyword kw">end</span> +</pre> + </div> + </div> + </div> + + <h3 class="section-bar">Public Instance methods</h3> + + <div id="method-M000019" class="method-detail"> + <a name="M000019"></a> + + <div class="method-heading"> + <a href="#M000019" class="method-signature"> + <span class="method-name">between</span><span class="method-args">(sha1, sha2 = nil)</span> + </a> + </div> + + <div class="method-description"> + <p><a class="source-toggle" href="#" + onclick="toggleCode('M000019-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000019-source"> +<pre> +<span class="ruby-comment cmt"># File lib/git/log.rb, line 42</span> + <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">between</span>(<span class="ruby-identifier">sha1</span>, <span class="ruby-identifier">sha2</span> = <span class="ruby-keyword kw">nil</span>) + <span class="ruby-identifier">dirty_log</span> + <span class="ruby-ivar">@between</span> = [<span class="ruby-ivar">@base</span>.<span class="ruby-identifier">lib</span>.<span class="ruby-identifier">revparse</span>(<span class="ruby-identifier">sha1</span>), <span class="ruby-ivar">@base</span>.<span class="ruby-identifier">lib</span>.<span class="ruby-identifier">revparse</span>(<span class="ruby-identifier">sha2</span>)] + <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">self</span> + <span class="ruby-keyword kw">end</span> +</pre> + </div> + </div> + </div> + + <div id="method-M000022" class="method-detail"> + <a name="M000022"></a> + + <div class="method-heading"> + <a href="#M000022" class="method-signature"> + <span class="method-name">each</span><span class="method-args">() {|c| ...}</span> + </a> + </div> + + <div class="method-description"> + <p><a class="source-toggle" href="#" + onclick="toggleCode('M000022-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000022-source"> +<pre> +<span class="ruby-comment cmt"># File lib/git/log.rb, line 60</span> + <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">each</span> + <span class="ruby-identifier">check_log</span> + <span class="ruby-ivar">@commits</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">c</span><span class="ruby-operator">|</span> + <span class="ruby-keyword kw">yield</span> <span class="ruby-identifier">c</span> + <span class="ruby-keyword kw">end</span> + <span class="ruby-keyword kw">end</span> +</pre> + </div> + </div> + </div> + + <div id="method-M000023" class="method-detail"> + <a name="M000023"></a> + + <div class="method-heading"> + <a href="#M000023" class="method-signature"> + <span class="method-name">first</span><span class="method-args">()</span> + </a> + </div> + + <div class="method-description"> + <p><a class="source-toggle" href="#" + onclick="toggleCode('M000023-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000023-source"> +<pre> +<span class="ruby-comment cmt"># File lib/git/log.rb, line 67</span> + <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">first</span> + <span class="ruby-identifier">check_log</span> + <span class="ruby-ivar">@commits</span>.<span class="ruby-identifier">first</span> <span class="ruby-keyword kw">rescue</span> <span class="ruby-keyword kw">nil</span> + <span class="ruby-keyword kw">end</span> +</pre> + </div> + </div> + </div> + + <div id="method-M000016" class="method-detail"> + <a name="M000016"></a> + + <div class="method-heading"> + <a href="#M000016" class="method-signature"> + <span class="method-name">object</span><span class="method-args">(objectish)</span> + </a> + </div> + + <div class="method-description"> + <p><a class="source-toggle" href="#" + onclick="toggleCode('M000016-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000016-source"> +<pre> +<span class="ruby-comment cmt"># File lib/git/log.rb, line 24</span> + <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">object</span>(<span class="ruby-identifier">objectish</span>) + <span class="ruby-identifier">dirty_log</span> + <span class="ruby-ivar">@object</span> = <span class="ruby-identifier">objectish</span> + <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">self</span> + <span class="ruby-keyword kw">end</span> +</pre> + </div> + </div> + </div> + + <div id="method-M000017" class="method-detail"> + <a name="M000017"></a> + + <div class="method-heading"> + <a href="#M000017" 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('M000017-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000017-source"> +<pre> +<span class="ruby-comment cmt"># File lib/git/log.rb, line 30</span> + <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">path</span>(<span class="ruby-identifier">path</span>) + <span class="ruby-identifier">dirty_log</span> + <span class="ruby-ivar">@path</span> = <span class="ruby-identifier">path</span> + <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">self</span> + <span class="ruby-keyword kw">end</span> +</pre> + </div> + </div> + </div> + + <div id="method-M000018" class="method-detail"> + <a name="M000018"></a> + + <div class="method-heading"> + <a href="#M000018" class="method-signature"> + <span class="method-name">since</span><span class="method-args">(date)</span> + </a> + </div> + + <div class="method-description"> + <p><a class="source-toggle" href="#" + onclick="toggleCode('M000018-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000018-source"> +<pre> +<span class="ruby-comment cmt"># File lib/git/log.rb, line 36</span> + <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">since</span>(<span class="ruby-identifier">date</span>) + <span class="ruby-identifier">dirty_log</span> + <span class="ruby-ivar">@since</span> = <span class="ruby-identifier">date</span> + <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">self</span> + <span class="ruby-keyword kw">end</span> +</pre> + </div> + </div> + </div> + + <div id="method-M000021" class="method-detail"> + <a name="M000021"></a> + + <div class="method-heading"> + <a href="#M000021" class="method-signature"> + <span class="method-name">size</span><span class="method-args">()</span> + </a> + </div> + + <div class="method-description"> + <p> +forces git log to run +</p> + <p><a class="source-toggle" href="#" + onclick="toggleCode('M000021-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000021-source"> +<pre> +<span class="ruby-comment cmt"># File lib/git/log.rb, line 55</span> + <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">size</span> + <span class="ruby-identifier">check_log</span> + <span class="ruby-ivar">@commits</span>.<span class="ruby-identifier">size</span> <span class="ruby-keyword kw">rescue</span> <span class="ruby-keyword kw">nil</span> + <span class="ruby-keyword kw">end</span> +</pre> + </div> + </div> + </div> + + <div id="method-M000020" class="method-detail"> + <a name="M000020"></a> + + <div class="method-heading"> + <a href="#M000020" 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('M000020-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000020-source"> +<pre> +<span class="ruby-comment cmt"># File lib/git/log.rb, line 48</span> + <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_s</span> + <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">map</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">c</span><span class="ruby-operator">|</span> <span class="ruby-identifier">c</span>.<span class="ruby-identifier">sha</span> }.<span class="ruby-identifier">join</span>(<span class="ruby-value str">"\n"</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/Log.src/M000015.html b/doc/classes/Git/Log.src/M000015.html new file mode 100644 index 0000000..b271cff --- /dev/null +++ b/doc/classes/Git/Log.src/M000015.html @@ -0,0 +1,20 @@ +<?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> +<head> + <title>new (Git::Log)</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> + <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" /> +</head> +<body class="standalone-code"> + <pre><span class="ruby-comment cmt"># File lib/git/log.rb, line 18</span> + <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">base</span>, <span class="ruby-identifier">count</span> = <span class="ruby-value">30</span>) + <span class="ruby-identifier">dirty_log</span> + <span class="ruby-ivar">@base</span> = <span class="ruby-identifier">base</span> + <span class="ruby-ivar">@count</span> = <span class="ruby-identifier">count</span> + <span class="ruby-keyword kw">end</span></pre> +</body> +</html>
\ No newline at end of file diff --git a/doc/classes/Git/Log.src/M000016.html b/doc/classes/Git/Log.src/M000016.html new file mode 100644 index 0000000..cfa23ec --- /dev/null +++ b/doc/classes/Git/Log.src/M000016.html @@ -0,0 +1,20 @@ +<?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> +<head> + <title>object (Git::Log)</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> + <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" /> +</head> +<body class="standalone-code"> + <pre><span class="ruby-comment cmt"># File lib/git/log.rb, line 24</span> + <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">object</span>(<span class="ruby-identifier">objectish</span>) + <span class="ruby-identifier">dirty_log</span> + <span class="ruby-ivar">@object</span> = <span class="ruby-identifier">objectish</span> + <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">self</span> + <span class="ruby-keyword kw">end</span></pre> +</body> +</html>
\ No newline at end of file diff --git a/doc/classes/Git/Log.src/M000017.html b/doc/classes/Git/Log.src/M000017.html new file mode 100644 index 0000000..f23edde --- /dev/null +++ b/doc/classes/Git/Log.src/M000017.html @@ -0,0 +1,20 @@ +<?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> +<head> + <title>path (Git::Log)</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> + <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" /> +</head> +<body class="standalone-code"> + <pre><span class="ruby-comment cmt"># File lib/git/log.rb, line 30</span> + <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">path</span>(<span class="ruby-identifier">path</span>) + <span class="ruby-identifier">dirty_log</span> + <span class="ruby-ivar">@path</span> = <span class="ruby-identifier">path</span> + <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">self</span> + <span class="ruby-keyword kw">end</span></pre> +</body> +</html>
\ No newline at end of file diff --git a/doc/classes/Git/Log.src/M000018.html b/doc/classes/Git/Log.src/M000018.html new file mode 100644 index 0000000..a246fa9 --- /dev/null +++ b/doc/classes/Git/Log.src/M000018.html @@ -0,0 +1,20 @@ +<?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> +<head> + <title>since (Git::Log)</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> + <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" /> +</head> +<body class="standalone-code"> + <pre><span class="ruby-comment cmt"># File lib/git/log.rb, line 36</span> + <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">since</span>(<span class="ruby-identifier">date</span>) + <span class="ruby-identifier">dirty_log</span> + <span class="ruby-ivar">@since</span> = <span class="ruby-identifier">date</span> + <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">self</span> + <span class="ruby-keyword kw">end</span></pre> +</body> +</html>
\ No newline at end of file diff --git a/doc/classes/Git/Log.src/M000019.html b/doc/classes/Git/Log.src/M000019.html new file mode 100644 index 0000000..ca0e931 --- /dev/null +++ b/doc/classes/Git/Log.src/M000019.html @@ -0,0 +1,20 @@ +<?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> +<head> + <title>between (Git::Log)</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> + <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" /> +</head> +<body class="standalone-code"> + <pre><span class="ruby-comment cmt"># File lib/git/log.rb, line 42</span> + <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">between</span>(<span class="ruby-identifier">sha1</span>, <span class="ruby-identifier">sha2</span> = <span class="ruby-keyword kw">nil</span>) + <span class="ruby-identifier">dirty_log</span> + <span class="ruby-ivar">@between</span> = [<span class="ruby-ivar">@base</span>.<span class="ruby-identifier">lib</span>.<span class="ruby-identifier">revparse</span>(<span class="ruby-identifier">sha1</span>), <span class="ruby-ivar">@base</span>.<span class="ruby-identifier">lib</span>.<span class="ruby-identifier">revparse</span>(<span class="ruby-identifier">sha2</span>)] + <span class="ruby-keyword kw">return</span> <span class="ruby-keyword kw">self</span> + <span class="ruby-keyword kw">end</span></pre> +</body> +</html>
\ No newline at end of file diff --git a/doc/classes/Git/Log.src/M000020.html b/doc/classes/Git/Log.src/M000020.html new file mode 100644 index 0000000..89cc408 --- /dev/null +++ b/doc/classes/Git/Log.src/M000020.html @@ -0,0 +1,18 @@ +<?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> +<head> + <title>to_s (Git::Log)</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> + <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" /> +</head> +<body class="standalone-code"> + <pre><span class="ruby-comment cmt"># File lib/git/log.rb, line 48</span> + <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_s</span> + <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">map</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">c</span><span class="ruby-operator">|</span> <span class="ruby-identifier">c</span>.<span class="ruby-identifier">sha</span> }.<span class="ruby-identifier">join</span>(<span class="ruby-value str">"\n"</span>) + <span class="ruby-keyword kw">end</span></pre> +</body> +</html>
\ No newline at end of file diff --git a/doc/classes/Git/Log.src/M000021.html b/doc/classes/Git/Log.src/M000021.html new file mode 100644 index 0000000..96836a9 --- /dev/null +++ b/doc/classes/Git/Log.src/M000021.html @@ -0,0 +1,19 @@ +<?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> +<head> + <title>size (Git::Log)</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> + <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" /> +</head> +<body class="standalone-code"> + <pre><span class="ruby-comment cmt"># File lib/git/log.rb, line 55</span> + <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">size</span> + <span class="ruby-identifier">check_log</span> + <span class="ruby-ivar">@commits</span>.<span class="ruby-identifier">size</span> <span class="ruby-keyword kw">rescue</span> <span class="ruby-keyword kw">nil</span> + <span class="ruby-keyword kw">end</span></pre> +</body> +</html>
\ No newline at end of file diff --git a/doc/classes/Git/Log.src/M000022.html b/doc/classes/Git/Log.src/M000022.html new file mode 100644 index 0000000..f231ce1 --- /dev/null +++ b/doc/classes/Git/Log.src/M000022.html @@ -0,0 +1,21 @@ +<?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> +<head> + <title>each (Git::Log)</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> + <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" /> +</head> +<body class="standalone-code"> + <pre><span class="ruby-comment cmt"># File lib/git/log.rb, line 60</span> + <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">each</span> + <span class="ruby-identifier">check_log</span> + <span class="ruby-ivar">@commits</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">c</span><span class="ruby-operator">|</span> + <span class="ruby-keyword kw">yield</span> <span class="ruby-identifier">c</span> + <span class="ruby-keyword kw">end</span> + <span class="ruby-keyword kw">end</span></pre> +</body> +</html>
\ No newline at end of file diff --git a/doc/classes/Git/Log.src/M000023.html b/doc/classes/Git/Log.src/M000023.html new file mode 100644 index 0000000..f6a7520 --- /dev/null +++ b/doc/classes/Git/Log.src/M000023.html @@ -0,0 +1,19 @@ +<?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> +<head> + <title>first (Git::Log)</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> + <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" /> +</head> +<body class="standalone-code"> + <pre><span class="ruby-comment cmt"># File lib/git/log.rb, line 67</span> + <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">first</span> + <span class="ruby-identifier">check_log</span> + <span class="ruby-ivar">@commits</span>.<span class="ruby-identifier">first</span> <span class="ruby-keyword kw">rescue</span> <span class="ruby-keyword kw">nil</span> + <span class="ruby-keyword kw">end</span></pre> +</body> +</html>
\ No newline at end of file diff --git a/doc/classes/Git/Object.html b/doc/classes/Git/Object.html new file mode 100644 index 0000000..499a044 --- /dev/null +++ b/doc/classes/Git/Object.html @@ -0,0 +1,179 @@ +<?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::Object</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::Object</td> + </tr> + <tr class="top-aligned-row"> + <td><strong>In:</strong></td> + <td> + <a href="../../files/lib/git/object_rb.html"> + lib/git/object.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="#M000120">new</a> + </div> + </div> + + </div> + + + <!-- if includes --> + + <div id="section"> + + <div id="class-list"> + <h3 class="section-bar">Classes and Modules</h3> + + Class <a href="Object/AbstractObject.html" class="link">Git::Object::AbstractObject</a><br /> +Class <a href="Object/Blob.html" class="link">Git::Object::Blob</a><br /> +Class <a href="Object/Commit.html" class="link">Git::Object::Commit</a><br /> +Class <a href="Object/Tag.html" class="link">Git::Object::Tag</a><br /> +Class <a href="Object/Tree.html" class="link">Git::Object::Tree</a><br /> + + </div> + + + + + + + + <!-- if method_list --> + <div id="methods"> + <h3 class="section-bar">Public Class methods</h3> + + <div id="method-M000120" class="method-detail"> + <a name="M000120"></a> + + <div class="method-heading"> + <a href="#M000120" class="method-signature"> + <span class="method-name">new</span><span class="method-args">(base, objectish, is_tag = false)</span> + </a> + </div> + + <div class="method-description"> + <p> +if we’re calling this, we don’t know what type it is yet so +this is our little factory method +</p> + <p><a class="source-toggle" href="#" + onclick="toggleCode('M000120-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000120-source"> +<pre> +<span class="ruby-comment cmt"># File lib/git/object.rb, line 87</span> + <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">new</span>(<span class="ruby-identifier">base</span>, <span class="ruby-identifier">objectish</span>, <span class="ruby-identifier">is_tag</span> = <span class="ruby-keyword kw">false</span>) + <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>) + <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">sha</span> <span class="ruby-operator">==</span> <span class="ruby-value str">''</span> + <span class="ruby-identifier">raise</span> <span class="ruby-constant">Git</span><span class="ruby-operator">::</span><span class="ruby-constant">GitTagNameDoesNotExist</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">objectish</span>) + <span class="ruby-keyword kw">end</span> + <span class="ruby-keyword kw">return</span> <span class="ruby-constant">Tag</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">base</span>, <span class="ruby-identifier">sha</span>, <span class="ruby-identifier">objectish</span>) + <span class="ruby-keyword kw">else</span> + <span class="ruby-identifier">sha</span> = <span class="ruby-identifier">base</span>.<span class="ruby-identifier">lib</span>.<span class="ruby-identifier">revparse</span>(<span class="ruby-identifier">objectish</span>) + <span class="ruby-identifier">type</span> = <span class="ruby-identifier">base</span>.<span class="ruby-identifier">lib</span>.<span class="ruby-identifier">object_type</span>(<span class="ruby-identifier">sha</span>) + <span class="ruby-keyword kw">end</span> + + <span class="ruby-identifier">klass</span> = + <span class="ruby-keyword kw">case</span> <span class="ruby-identifier">type</span> + <span class="ruby-keyword kw">when</span> <span class="ruby-regexp re">/blob/</span><span class="ruby-operator">:</span> <span class="ruby-constant">Blob</span> + <span class="ruby-keyword kw">when</span> <span class="ruby-regexp re">/commit/</span><span class="ruby-operator">:</span> <span class="ruby-constant">Commit</span> + <span class="ruby-keyword kw">when</span> <span class="ruby-regexp re">/tree/</span><span class="ruby-operator">:</span> <span class="ruby-constant">Tree</span> + <span class="ruby-keyword kw">end</span> + <span class="ruby-identifier">klass</span><span class="ruby-operator">::</span><span class="ruby-identifier">new</span>(<span class="ruby-identifier">base</span>, <span class="ruby-identifier">sha</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/Object.src/M000120.html b/doc/classes/Git/Object.src/M000120.html new file mode 100644 index 0000000..72e5490 --- /dev/null +++ b/doc/classes/Git/Object.src/M000120.html @@ -0,0 +1,35 @@ +<?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> +<head> + <title>new (Git::Object)</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> + <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" /> +</head> +<body class="standalone-code"> + <pre><span class="ruby-comment cmt"># File lib/git/object.rb, line 87</span> + <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">new</span>(<span class="ruby-identifier">base</span>, <span class="ruby-identifier">objectish</span>, <span class="ruby-identifier">is_tag</span> = <span class="ruby-keyword kw">false</span>) + <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>) + <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">sha</span> <span class="ruby-operator">==</span> <span class="ruby-value str">''</span> + <span class="ruby-identifier">raise</span> <span class="ruby-constant">Git</span><span class="ruby-operator">::</span><span class="ruby-constant">GitTagNameDoesNotExist</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">objectish</span>) + <span class="ruby-keyword kw">end</span> + <span class="ruby-keyword kw">return</span> <span class="ruby-constant">Tag</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">base</span>, <span class="ruby-identifier">sha</span>, <span class="ruby-identifier">objectish</span>) + <span class="ruby-keyword kw">else</span> + <span class="ruby-identifier">sha</span> = <span class="ruby-identifier">base</span>.<span class="ruby-identifier">lib</span>.<span class="ruby-identifier">revparse</span>(<span class="ruby-identifier">objectish</span>) + <span class="ruby-identifier">type</span> = <span class="ruby-identifier">base</span>.<span class="ruby-identifier">lib</span>.<span class="ruby-identifier">object_type</span>(<span class="ruby-identifier">sha</span>) + <span class="ruby-keyword kw">end</span> + + <span class="ruby-identifier">klass</span> = + <span class="ruby-keyword kw">case</span> <span class="ruby-identifier">type</span> + <span class="ruby-keyword kw">when</span> <span class="ruby-regexp re">/blob/</span><span class="ruby-operator">:</span> <span class="ruby-constant">Blob</span> + <span class="ruby-keyword kw">when</span> <span class="ruby-regexp re">/commit/</span><span class="ruby-operator">:</span> <span class="ruby-constant">Commit</span> + <span class="ruby-keyword kw">when</span> <span class="ruby-regexp re">/tree/</span><span class="ruby-operator">:</span> <span class="ruby-constant">Tree</span> + <span class="ruby-keyword kw">end</span> + <span class="ruby-identifier">klass</span><span class="ruby-operator">::</span><span class="ruby-identifier">new</span>(<span class="ruby-identifier">base</span>, <span class="ruby-identifier">sha</span>) + <span class="ruby-keyword kw">end</span></pre> +</body> +</html>
\ No newline at end of file diff --git a/doc/classes/Git/Object/AbstractObject.html b/doc/classes/Git/Object/AbstractObject.html new file mode 100644 index 0000000..e2569c4 --- /dev/null +++ b/doc/classes/Git/Object/AbstractObject.html @@ -0,0 +1,349 @@ +<?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::Object::AbstractObject</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::Object::AbstractObject</td> + </tr> + <tr class="top-aligned-row"> + <td><strong>In:</strong></td> + <td> + <a href="../../../files/lib/git/object_rb.html"> + lib/git/object.rb + </a> + <br /> + </td> + </tr> + + <tr class="top-aligned-row"> + <td><strong>Parent:</strong></td> + <td> + Object + </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="#M000123">contents</a> + <a href="#M000124">contents_array</a> + <a href="#M000128">diff</a> + <a href="#M000127">grep</a> + <a href="#M000129">log</a> + <a href="#M000122">new</a> + <a href="#M000125">setup</a> + <a href="#M000126">to_s</a> + </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">mode</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">sha</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">size</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">type</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-M000122" class="method-detail"> + <a name="M000122"></a> + + <div class="method-heading"> + <a href="#M000122" class="method-signature"> + <span class="method-name">new</span><span class="method-args">(base, sha)</span> + </a> + </div> + + <div class="method-description"> + <p><a class="source-toggle" href="#" + onclick="toggleCode('M000122-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000122-source"> +<pre> +<span class="ruby-comment cmt"># File lib/git/object.rb, line 13</span> + <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">base</span>, <span class="ruby-identifier">sha</span>) + <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">@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> +</pre> + </div> + </div> + </div> + + <h3 class="section-bar">Public Instance methods</h3> + + <div id="method-M000123" class="method-detail"> + <a name="M000123"></a> + + <div class="method-heading"> + <a href="#M000123" class="method-signature"> + <span class="method-name">contents</span><span class="method-args">()</span> + </a> + </div> + + <div class="method-description"> + <p><a class="source-toggle" href="#" + onclick="toggleCode('M000123-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000123-source"> +<pre> +<span class="ruby-comment cmt"># File lib/git/object.rb, line 20</span> + <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">contents</span> + <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> +</pre> + </div> + </div> + </div> + + <div id="method-M000124" class="method-detail"> + <a name="M000124"></a> + + <div class="method-heading"> + <a href="#M000124" class="method-signature"> + <span class="method-name">contents_array</span><span class="method-args">()</span> + </a> + </div> + + <div class="method-description"> + <p><a class="source-toggle" href="#" + onclick="toggleCode('M000124-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000124-source"> +<pre> +<span class="ruby-comment cmt"># File lib/git/object.rb, line 24</span> + <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">contents_array</span> + <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> +</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">diff</span><span class="method-args">(objectish)</span> + </a> + </div> + + <div class="method-description"> + <p><a class="source-toggle" href="#" + onclick="toggleCode('M000128-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000128-source"> +<pre> +<span class="ruby-comment cmt"># File lib/git/object.rb, line 42</span> + <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">diff</span>(<span class="ruby-identifier">objectish</span>) + <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> +</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">grep</span><span class="method-args">(string, path_limiter = nil, opts = {})</span> + </a> + </div> + + <div class="method-description"> + <p><a class="source-toggle" href="#" + onclick="toggleCode('M000127-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000127-source"> +<pre> +<span class="ruby-comment cmt"># File lib/git/object.rb, line 36</span> + <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">grep</span>(<span class="ruby-identifier">string</span>, <span class="ruby-identifier">path_limiter</span> = <span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">opts</span> = {}) + <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>) + <span class="ruby-ivar">@base</span>.<span class="ruby-identifier">lib</span>.<span class="ruby-identifier">grep</span>(<span class="ruby-identifier">string</span>, <span class="ruby-identifier">grep_options</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">log</span><span class="method-args">(count = 30)</span> + </a> + </div> + + <div class="method-description"> + <p><a class="source-toggle" href="#" + onclick="toggleCode('M000129-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000129-source"> +<pre> +<span class="ruby-comment cmt"># File lib/git/object.rb, line 46</span> + <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">log</span>(<span class="ruby-identifier">count</span> = <span class="ruby-value">30</span>) + <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> +</pre> + </div> + </div> + </div> + + <div id="method-M000125" class="method-detail"> + <a name="M000125"></a> + + <div class="method-heading"> + <a href="#M000125" class="method-signature"> + <span class="method-name">setup</span><span class="method-args">()</span> + </a> + </div> + + <div class="method-description"> + <p><a class="source-toggle" href="#" + onclick="toggleCode('M000125-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000125-source"> +<pre> +<span class="ruby-comment cmt"># File lib/git/object.rb, line 28</span> + <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">setup</span> + <span class="ruby-identifier">raise</span> <span class="ruby-constant">NotImplementedError</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">to_s</span><span class="method-args">()</span> + </a> + </div> + + <div class="method-description"> + <p><a class="source-toggle" href="#" + onclick="toggleCode('M000126-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000126-source"> +<pre> +<span class="ruby-comment cmt"># File lib/git/object.rb, line 32</span> + <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_s</span> + <span class="ruby-ivar">@sha</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/Object/AbstractObject.src/M000122.html b/doc/classes/Git/Object/AbstractObject.src/M000122.html new file mode 100644 index 0000000..a43468f --- /dev/null +++ b/doc/classes/Git/Object/AbstractObject.src/M000122.html @@ -0,0 +1,21 @@ +<?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> +<head> + <title>new (Git::Object::AbstractObject)</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> + <link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" /> +</head> +<body class="standalone-code"> + <pre><span class="ruby-comment cmt"># File lib/git/object.rb, line 13</span> + <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">base</span>, <span class="ruby-identifier">sha</span>) + <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">@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></pre> +</body> +</html>
\ No newline at end of file diff --git a/doc/classes/Git/Object/AbstractObject.src/M000123.html b/doc/classes/Git/Object/AbstractObject.src/M000123.html new file mode 100644 index 0000000..261ed9d --- /dev/null +++ b/doc/classes/Git/Object/AbstractObject.src/M000123.html @@ -0,0 +1,18 @@ +<?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> +<head> + <title>contents (Git::Object::AbstractObject)</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> + <link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" /> +</head> +<body class="standalone-code"> + <pre><span class="ruby-comment cmt"># File lib/git/object.rb, line 20</span> + <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">contents</span> + <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></pre> +</body> +</html>
\ No newline at end of file diff --git a/doc/classes/Git/Object/AbstractObject.src/M000124.html b/doc/classes/Git/Object/AbstractObject.src/M000124.html new file mode 100644 index 0000000..2bfbdc8 --- /dev/null +++ b/doc/classes/Git/Object/AbstractObject.src/M000124.html @@ -0,0 +1,18 @@ +<?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> +<head> + <title>contents_array (Git::Object::AbstractObject)</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> + <link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" /> +</head> +<body class="standalone-code"> + <pre><span class="ruby-comment cmt"># File lib/git/object.rb, line 24</span> + <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">contents_array</span> + <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></pre> +</body> +</html>
\ No newline at end of file diff --git a/doc/classes/Git/Object/AbstractObject.src/M000125.html b/doc/classes/Git/Object/AbstractObject.src/M000125.html new file mode 100644 index 0000000..88e36d8 --- /dev/null +++ b/doc/classes/Git/Object/AbstractObject.src/M000125.html @@ -0,0 +1,18 @@ +<?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> +<head> + <title>setup (Git::Object::AbstractObject)</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> + <link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" /> +</head> +<body class="standalone-code"> + <pre><span class="ruby-comment cmt"># File lib/git/object.rb, line 28</span> + <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">setup</span> + <span class="ruby-identifier">raise</span> <span class="ruby-constant">NotImplementedError</span> + <span class="ruby-keyword kw">end</span></pre> +</body> +</html>
\ No newline at end of file diff --git a/doc/classes/Git/Object/AbstractObject.src/M000126.html b/doc/classes/Git/Object/AbstractObject.src/M000126.html new file mode 100644 index 0000000..b37a7fe --- /dev/null +++ b/doc/classes/Git/Object/AbstractObject.src/M000126.html @@ -0,0 +1,18 @@ +<?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> +<head> + <title>to_s (Git::Object::AbstractObject)</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> + <link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" /> +</head> +<body class="standalone-code"> + <pre><span class="ruby-comment cmt"># File lib/git/object.rb, line 32</span> + <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_s</span> + <span class="ruby-ivar">@sha</span> + <span class="ruby-keyword kw">end</span></pre> +</body> +</html>
\ No newline at end of file diff --git a/doc/classes/Git/Object/AbstractObject.src/M000127.html b/doc/classes/Git/Object/AbstractObject.src/M000127.html new file mode 100644 index 0000000..11b43c6 --- /dev/null +++ b/doc/classes/Git/Object/AbstractObject.src/M000127.html @@ -0,0 +1,20 @@ +<?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> +<head> + <title>grep (Git::Object::AbstractObject)</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> + <link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" /> +</head> +<body class="standalone-code"> + <pre><span class="ruby-comment cmt"># File lib/git/object.rb, line 36</span> + <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">grep</span>(<span class="ruby-identifier">string</span>, <span class="ruby-identifier">path_limiter</span> = <span class="ruby-keyword kw">nil</span>, <span class="ruby-identifier">opts</span> = {}) + <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>) + <span class="ruby-ivar">@base</span>.<span class="ruby-identifier">lib</span>.<span class="ruby-identifier">grep</span>(<span class="ruby-identifier">string</span>, <span class="ruby-identifier">grep_options</span>) + <span class="ruby-keyword kw">end</span></pre> +</body> +</html>
\ No newline at end of file diff --git a/doc/classes/Git/Object/AbstractObject.src/M000128.html b/doc/classes/Git/Object/AbstractObject.src/M000128.html new file mode 100644 index 0000000..8a352c7 --- /dev/null +++ b/doc/classes/Git/Object/AbstractObject.src/M000128.html @@ -0,0 +1,18 @@ +<?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> +<head> + <title>diff (Git::Object::AbstractObject)</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> + <link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" /> +</head> +<body class="standalone-code"> + <pre><span class="ruby-comment cmt"># File lib/git/object.rb, line 42</span> + <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">diff</span>(<span class="ruby-identifier">objectish</span>) + <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></pre> +</body> +</html>
\ No newline at end of file diff --git a/doc/classes/Git/Object/AbstractObject.src/M000129.html b/doc/classes/Git/Object/AbstractObject.src/M000129.html new file mode 100644 index 0000000..c7b1dac --- /dev/null +++ b/doc/classes/Git/Object/AbstractObject.src/M000129.html @@ -0,0 +1,18 @@ +<?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> +<head> + <title>log (Git::Object::AbstractObject)</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> + <link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" /> +</head> +<body class="standalone-code"> + <pre><span class="ruby-comment cmt"># File lib/git/object.rb, line 46</span> + <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">log</span>(<span class="ruby-identifier">count</span> = <span class="ruby-value">30</span>) + <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></pre> +</body> +</html>
\ No newline at end of file diff --git a/doc/classes/Git/Object/Blob.html b/doc/classes/Git/Object/Blob.html new file mode 100644 index 0000000..dd3048d --- /dev/null +++ b/doc/classes/Git/Object/Blob.html @@ -0,0 +1,148 @@ +<?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::Object::Blob</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::Object::Blob</td> + </tr> + <tr class="top-aligned-row"> + <td><strong>In:</strong></td> + <td> + <a href="../../../files/lib/git/object_rb.html"> + lib/git/object.rb + </a> + <br /> + </td> + </tr> + + <tr class="top-aligned-row"> + <td><strong>Parent:</strong></td> + <td> + <a href="AbstractObject.html"> + AbstractObject + </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="#M000132">setup</a> + </div> + </div> + + </div> + + + <!-- if includes --> + + <div id="section"> + + + + + + + + + <!-- if method_list --> + <div id="methods"> + <h3 class="section-bar">Public Instance methods</h3> + + <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">setup</span><span class="method-args">()</span> + </a> + </div> + + <div class="method-description"> + <p><a class="source-toggle" href="#" + onclick="toggleCode('M000132-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000132-source"> +<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-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/Object/Blob.src/M000132.html b/doc/classes/Git/Object/Blob.src/M000132.html new file mode 100644 index 0000000..73983e4 --- /dev/null +++ b/doc/classes/Git/Object/Blob.src/M000132.html @@ -0,0 +1,18 @@ +<?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> +<head> + <title>setup (Git::Object::Blob)</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> + <link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" /> +</head> +<body class="standalone-code"> + <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-keyword kw">end</span></pre> +</body> +</html>
\ No newline at end of file diff --git a/doc/classes/Git/Object/Commit.html b/doc/classes/Git/Object/Commit.html new file mode 100644 index 0000000..18d4e1b --- /dev/null +++ b/doc/classes/Git/Object/Commit.html @@ -0,0 +1,148 @@ +<?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::Object::Commit</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::Object::Commit</td> + </tr> + <tr class="top-aligned-row"> + <td><strong>In:</strong></td> + <td> + <a href="../../../files/lib/git/object_rb.html"> + lib/git/object.rb + </a> + <br /> + </td> + </tr> + + <tr class="top-aligned-row"> + <td><strong>Parent:</strong></td> + <td> + <a href="AbstractObject.html"> + AbstractObject + </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="#M000121">setup</a> + </div> + </div> + + </div> + + + <!-- if includes --> + + <div id="section"> + + + + + + + + + <!-- if method_list --> + <div id="methods"> + <h3 class="section-bar">Public Instance methods</h3> + + <div id="method-M000121" class="method-detail"> + <a name="M000121"></a> + + <div class="method-heading"> + <a href="#M000121" class="method-signature"> + <span class="method-name">setup</span><span class="method-args">()</span> + </a> + </div> + + <div class="method-description"> + <p><a class="source-toggle" href="#" + onclick="toggleCode('M000121-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000121-source"> +<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-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/Object/Commit.src/M000121.html b/doc/classes/Git/Object/Commit.src/M000121.html new file mode 100644 index 0000000..4391b29 --- /dev/null +++ b/doc/classes/Git/Object/Commit.src/M000121.html @@ -0,0 +1,18 @@ +<?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> +<head> + <title>setup (Git::Object::Commit)</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> + <link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" /> +</head> +<body class="standalone-code"> + <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-keyword kw">end</span></pre> +</body> +</html>
\ No newline at end of file diff --git a/doc/classes/Git/Object/Tag.html b/doc/classes/Git/Object/Tag.html new file mode 100644 index 0000000..9055eff --- /dev/null +++ b/doc/classes/Git/Object/Tag.html @@ -0,0 +1,188 @@ +<?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::Object::Tag</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::Object::Tag</td> + </tr> + <tr class="top-aligned-row"> + <td><strong>In:</strong></td> + <td> + <a href="../../../files/lib/git/object_rb.html"> + lib/git/object.rb + </a> + <br /> + </td> + </tr> + + <tr class="top-aligned-row"> + <td><strong>Parent:</strong></td> + <td> + <a href="AbstractObject.html"> + AbstractObject + </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="#M000130">new</a> + <a href="#M000131">setup</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">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-M000130" class="method-detail"> + <a name="M000130"></a> + + <div class="method-heading"> + <a href="#M000130" class="method-signature"> + <span class="method-name">new</span><span class="method-args">(base, sha, name)</span> + </a> + </div> + + <div class="method-description"> + <p><a class="source-toggle" href="#" + onclick="toggleCode('M000130-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000130-source"> +<pre> +<span class="ruby-comment cmt"># File lib/git/object.rb, line 74</span> + <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">base</span>, <span class="ruby-identifier">sha</span>, <span class="ruby-identifier">name</span>) + <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> + <span class="ruby-keyword kw">end</span> +</pre> + </div> + </div> + </div> + + <h3 class="section-bar">Public Instance methods</h3> + + <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">setup</span><span class="method-args">()</span> + </a> + </div> + + <div class="method-description"> + <p><a class="source-toggle" href="#" + onclick="toggleCode('M000131-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000131-source"> +<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> + + + </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/Object/Tag.src/M000130.html b/doc/classes/Git/Object/Tag.src/M000130.html new file mode 100644 index 0000000..5bc3f6c --- /dev/null +++ b/doc/classes/Git/Object/Tag.src/M000130.html @@ -0,0 +1,19 @@ +<?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> +<head> + <title>new (Git::Object::Tag)</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> + <link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" /> +</head> +<body class="standalone-code"> + <pre><span class="ruby-comment cmt"># File lib/git/object.rb, line 74</span> + <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">base</span>, <span class="ruby-identifier">sha</span>, <span class="ruby-identifier">name</span>) + <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> + <span class="ruby-keyword kw">end</span></pre> +</body> +</html>
\ No newline at end of file diff --git a/doc/classes/Git/Object/Tag.src/M000131.html b/doc/classes/Git/Object/Tag.src/M000131.html new file mode 100644 index 0000000..1daa7e2 --- /dev/null +++ b/doc/classes/Git/Object/Tag.src/M000131.html @@ -0,0 +1,18 @@ +<?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> +<head> + <title>setup (Git::Object::Tag)</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> + <link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" /> +</head> +<body class="standalone-code"> + <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> +</body> +</html>
\ No newline at end of file diff --git a/doc/classes/Git/Object/Tree.html b/doc/classes/Git/Object/Tree.html new file mode 100644 index 0000000..9204e5f --- /dev/null +++ b/doc/classes/Git/Object/Tree.html @@ -0,0 +1,148 @@ +<?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::Object::Tree</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::Object::Tree</td> + </tr> + <tr class="top-aligned-row"> + <td><strong>In:</strong></td> + <td> + <a href="../../../files/lib/git/object_rb.html"> + lib/git/object.rb + </a> + <br /> + </td> + </tr> + + <tr class="top-aligned-row"> + <td><strong>Parent:</strong></td> + <td> + <a href="AbstractObject.html"> + AbstractObject + </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="#M000133">setup</a> + </div> + </div> + + </div> + + + <!-- if includes --> + + <div id="section"> + + + + + + + + + <!-- if method_list --> + <div id="methods"> + <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 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-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/Object/Tree.src/M000133.html b/doc/classes/Git/Object/Tree.src/M000133.html new file mode 100644 index 0000000..eb465c8 --- /dev/null +++ b/doc/classes/Git/Object/Tree.src/M000133.html @@ -0,0 +1,18 @@ +<?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> +<head> + <title>setup (Git::Object::Tree)</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> + <link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" /> +</head> +<body class="standalone-code"> + <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-keyword kw">end</span></pre> +</body> +</html>
\ No newline at end of file diff --git a/doc/classes/Git/Path.html b/doc/classes/Git/Path.html new file mode 100644 index 0000000..0b1f892 --- /dev/null +++ b/doc/classes/Git/Path.html @@ -0,0 +1,215 @@ +<?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::Path</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::Path</td> + </tr> + <tr class="top-aligned-row"> + <td><strong>In:</strong></td> + <td> + <a href="../../files/lib/git/path_rb.html"> + lib/git/path.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="#M000117">new</a> + <a href="#M000118">readable?</a> + <a href="#M000119">writable?</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">path</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-M000117" class="method-detail"> + <a name="M000117"></a> + + <div class="method-heading"> + <a href="#M000117" class="method-signature"> + <span class="method-name">new</span><span class="method-args">(path, check_path = true)</span> + </a> + </div> + + <div class="method-description"> + <p><a class="source-toggle" href="#" + onclick="toggleCode('M000117-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000117-source"> +<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>) + <span class="ruby-keyword kw">if</span> <span class="ruby-operator">!</span><span class="ruby-identifier">check_path</span> <span class="ruby-operator">||</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">exists?</span>(<span class="ruby-identifier">path</span>) + <span class="ruby-ivar">@path</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">expand_path</span>(<span class="ruby-identifier">path</span>) + <span class="ruby-keyword kw">else</span> + <span class="ruby-identifier">raise</span> <span class="ruby-constant">ArgumentError</span>, <span class="ruby-value str">"path does not exist"</span>, <span class="ruby-constant">File</span>.<span class="ruby-identifier">expand_path</span>(<span class="ruby-identifier">path</span>) + <span class="ruby-keyword kw">end</span> + <span class="ruby-keyword kw">end</span> +</pre> + </div> + </div> + </div> + + <h3 class="section-bar">Public Instance methods</h3> + + <div id="method-M000118" class="method-detail"> + <a name="M000118"></a> + + <div class="method-heading"> + <a href="#M000118" class="method-signature"> + <span class="method-name">readable?</span><span class="method-args">()</span> + </a> + </div> + + <div class="method-description"> + <p><a class="source-toggle" href="#" + onclick="toggleCode('M000118-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000118-source"> +<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> + <span class="ruby-constant">File</span>.<span class="ruby-identifier">readable?</span>(<span class="ruby-ivar">@path</span>) + <span class="ruby-keyword kw">end</span> +</pre> + </div> + </div> + </div> + + <div id="method-M000119" class="method-detail"> + <a name="M000119"></a> + + <div class="method-heading"> + <a href="#M000119" class="method-signature"> + <span class="method-name">writable?</span><span class="method-args">()</span> + </a> + </div> + + <div class="method-description"> + <p><a class="source-toggle" href="#" + onclick="toggleCode('M000119-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000119-source"> +<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> + <span class="ruby-constant">File</span>.<span class="ruby-identifier">writable?</span>(<span class="ruby-ivar">@path</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/Path.src/M000117.html b/doc/classes/Git/Path.src/M000117.html new file mode 100644 index 0000000..3dbb37e --- /dev/null +++ b/doc/classes/Git/Path.src/M000117.html @@ -0,0 +1,22 @@ +<?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> +<head> + <title>new (Git::Path)</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> + <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" /> +</head> +<body class="standalone-code"> + <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>) + <span class="ruby-keyword kw">if</span> <span class="ruby-operator">!</span><span class="ruby-identifier">check_path</span> <span class="ruby-operator">||</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">exists?</span>(<span class="ruby-identifier">path</span>) + <span class="ruby-ivar">@path</span> = <span class="ruby-constant">File</span>.<span class="ruby-identifier">expand_path</span>(<span class="ruby-identifier">path</span>) + <span class="ruby-keyword kw">else</span> + <span class="ruby-identifier">raise</span> <span class="ruby-constant">ArgumentError</span>, <span class="ruby-value str">"path does not exist"</span>, <span class="ruby-constant">File</span>.<span class="ruby-identifier">expand_path</span>(<span class="ruby-identifier">path</span>) + <span class="ruby-keyword kw">end</span> + <span class="ruby-keyword kw">end</span></pre> +</body> +</html>
\ No newline at end of file diff --git a/doc/classes/Git/Path.src/M000118.html b/doc/classes/Git/Path.src/M000118.html new file mode 100644 index 0000000..8e32c35 --- /dev/null +++ b/doc/classes/Git/Path.src/M000118.html @@ -0,0 +1,18 @@ +<?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> +<head> + <title>readable? (Git::Path)</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> + <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" /> +</head> +<body class="standalone-code"> + <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> + <span class="ruby-constant">File</span>.<span class="ruby-identifier">readable?</span>(<span class="ruby-ivar">@path</span>) + <span class="ruby-keyword kw">end</span></pre> +</body> +</html>
\ No newline at end of file diff --git a/doc/classes/Git/Path.src/M000119.html b/doc/classes/Git/Path.src/M000119.html new file mode 100644 index 0000000..ad963a4 --- /dev/null +++ b/doc/classes/Git/Path.src/M000119.html @@ -0,0 +1,18 @@ +<?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> +<head> + <title>writable? (Git::Path)</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> + <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" /> +</head> +<body class="standalone-code"> + <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> + <span class="ruby-constant">File</span>.<span class="ruby-identifier">writable?</span>(<span class="ruby-ivar">@path</span>) + <span class="ruby-keyword kw">end</span></pre> +</body> +</html>
\ No newline at end of file diff --git a/doc/classes/Git/Remote.html b/doc/classes/Git/Remote.html new file mode 100644 index 0000000..fbef922 --- /dev/null +++ b/doc/classes/Git/Remote.html @@ -0,0 +1,324 @@ +<?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::Remote</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::Remote</td> + </tr> + <tr class="top-aligned-row"> + <td><strong>In:</strong></td> + <td> + <a href="../../files/lib/git/remote_rb.html"> + lib/git/remote.rb + </a> + <br /> + </td> + </tr> + + <tr class="top-aligned-row"> + <td><strong>Parent:</strong></td> + <td> + <a href="Path.html"> + Path + </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="#M000151">branch</a> + <a href="#M000149">fetch</a> + <a href="#M000150">merge</a> + <a href="#M000147">new</a> + <a href="#M000148">remove</a> + <a href="#M000152">remove</a> + <a href="#M000153">to_s</a> + </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">fetch_opts</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> + <tr class="top-aligned-row context-row"> + <td class="context-item-name">url</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-M000147" class="method-detail"> + <a name="M000147"></a> + + <div class="method-heading"> + <a href="#M000147" class="method-signature"> + <span class="method-name">new</span><span class="method-args">(base, name)</span> + </a> + </div> + + <div class="method-description"> + <p><a class="source-toggle" href="#" + onclick="toggleCode('M000147-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000147-source"> +<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>) + <span class="ruby-ivar">@base</span> = <span class="ruby-identifier">base</span> + <span class="ruby-identifier">config</span> = <span class="ruby-ivar">@base</span>.<span class="ruby-identifier">lib</span>.<span class="ruby-identifier">config_remote</span>(<span class="ruby-identifier">name</span>) + <span class="ruby-ivar">@name</span> = <span class="ruby-identifier">name</span> + <span class="ruby-ivar">@url</span> = <span class="ruby-identifier">config</span>[<span class="ruby-value str">'url'</span>] + <span class="ruby-ivar">@fetch_opts</span> = <span class="ruby-identifier">config</span>[<span class="ruby-value str">'fetch'</span>] + <span class="ruby-keyword kw">end</span> +</pre> + </div> + </div> + </div> + + <h3 class="section-bar">Public Instance methods</h3> + + <div id="method-M000151" class="method-detail"> + <a name="M000151"></a> + + <div class="method-heading"> + <a href="#M000151" class="method-signature"> + <span class="method-name">branch</span><span class="method-args">(branch = 'master')</span> + </a> + </div> + + <div class="method-description"> + <p><a class="source-toggle" href="#" + onclick="toggleCode('M000151-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000151-source"> +<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>) + <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-ivar">@base</span>, <span class="ruby-node">"#{@name}/#{branch}"</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"> + <a href="#M000149" class="method-signature"> + <span class="method-name">fetch</span><span class="method-args">()</span> + </a> + </div> + + <div class="method-description"> + <p><a class="source-toggle" href="#" + onclick="toggleCode('M000149-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000149-source"> +<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> + <span class="ruby-ivar">@base</span>.<span class="ruby-identifier">fetch</span>(<span class="ruby-ivar">@name</span>) + <span class="ruby-keyword kw">end</span> +</pre> + </div> + </div> + </div> + + <div id="method-M000150" class="method-detail"> + <a name="M000150"></a> + + <div class="method-heading"> + <a href="#M000150" class="method-signature"> + <span class="method-name">merge</span><span class="method-args">(branch = 'master')</span> + </a> + </div> + + <div class="method-description"> + <p> +merge this remote locally +</p> + <p><a class="source-toggle" href="#" + onclick="toggleCode('M000150-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000150-source"> +<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>) + <span class="ruby-ivar">@base</span>.<span class="ruby-identifier">merge</span>(<span class="ruby-node">"#{@name}/#{branch}"</span>) + <span class="ruby-keyword kw">end</span> +</pre> + </div> + </div> + </div> + + <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">remove</span><span class="method-args">()</span> + </a> + </div> + + <div class="method-description"> + <p><a class="source-toggle" href="#" + onclick="toggleCode('M000148-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000148-source"> +<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> + <span class="ruby-ivar">@base</span>.<span class="ruby-identifier">remote_remove</span>(<span class="ruby-ivar">@name</span>) + <span class="ruby-keyword kw">end</span> +</pre> + </div> + </div> + </div> + + <div id="method-M000152" class="method-detail"> + <a name="M000152"></a> + + <div class="method-heading"> + <a href="#M000152" class="method-signature"> + <span class="method-name">remove</span><span class="method-args">()</span> + </a> + </div> + + <div class="method-description"> + <p><a class="source-toggle" href="#" + onclick="toggleCode('M000152-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000152-source"> +<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> + <span class="ruby-ivar">@base</span>.<span class="ruby-identifier">lib</span>.<span class="ruby-identifier">remote_remove</span>(<span class="ruby-ivar">@name</span>) + <span class="ruby-keyword kw">end</span> +</pre> + </div> + </div> + </div> + + <div id="method-M000153" class="method-detail"> + <a name="M000153"></a> + + <div class="method-heading"> + <a href="#M000153" class="method-signature"> + <span class="method-name">to_s</span><span class="method-args">()</span> + </a> + </div> + + <div class="method-description"> + <p><a class="source-toggle" href="#" + onclick="toggleCode('M000153-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000153-source"> +<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> + <span class="ruby-ivar">@name</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/Remote.src/M000147.html b/doc/classes/Git/Remote.src/M000147.html new file mode 100644 index 0000000..f1de21e --- /dev/null +++ b/doc/classes/Git/Remote.src/M000147.html @@ -0,0 +1,22 @@ +<?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> +<head> + <title>new (Git::Remote)</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> + <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" /> +</head> +<body class="standalone-code"> + <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>) + <span class="ruby-ivar">@base</span> = <span class="ruby-identifier">base</span> + <span class="ruby-identifier">config</span> = <span class="ruby-ivar">@base</span>.<span class="ruby-identifier">lib</span>.<span class="ruby-identifier">config_remote</span>(<span class="ruby-identifier">name</span>) + <span class="ruby-ivar">@name</span> = <span class="ruby-identifier">name</span> + <span class="ruby-ivar">@url</span> = <span class="ruby-identifier">config</span>[<span class="ruby-value str">'url'</span>] + <span class="ruby-ivar">@fetch_opts</span> = <span class="ruby-identifier">config</span>[<span class="ruby-value str">'fetch'</span>] + <span class="ruby-keyword kw">end</span></pre> +</body> +</html>
\ No newline at end of file diff --git a/doc/classes/Git/Remote.src/M000148.html b/doc/classes/Git/Remote.src/M000148.html new file mode 100644 index 0000000..ff83d29 --- /dev/null +++ b/doc/classes/Git/Remote.src/M000148.html @@ -0,0 +1,18 @@ +<?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> +<head> + <title>remove (Git::Remote)</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> + <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" /> +</head> +<body class="standalone-code"> + <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> + <span class="ruby-ivar">@base</span>.<span class="ruby-identifier">remote_remove</span>(<span class="ruby-ivar">@name</span>) + <span class="ruby-keyword kw">end</span></pre> +</body> +</html>
\ No newline at end of file diff --git a/doc/classes/Git/Remote.src/M000149.html b/doc/classes/Git/Remote.src/M000149.html new file mode 100644 index 0000000..170a1bd --- /dev/null +++ b/doc/classes/Git/Remote.src/M000149.html @@ -0,0 +1,18 @@ +<?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> +<head> + <title>fetch (Git::Remote)</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> + <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" /> +</head> +<body class="standalone-code"> + <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> + <span class="ruby-ivar">@base</span>.<span class="ruby-identifier">fetch</span>(<span class="ruby-ivar">@name</span>) + <span class="ruby-keyword kw">end</span></pre> +</body> +</html>
\ No newline at end of file diff --git a/doc/classes/Git/Remote.src/M000150.html b/doc/classes/Git/Remote.src/M000150.html new file mode 100644 index 0000000..78c200e --- /dev/null +++ b/doc/classes/Git/Remote.src/M000150.html @@ -0,0 +1,18 @@ +<?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> +<head> + <title>merge (Git::Remote)</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> + <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" /> +</head> +<body class="standalone-code"> + <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>) + <span class="ruby-ivar">@base</span>.<span class="ruby-identifier">merge</span>(<span class="ruby-node">"#{@name}/#{branch}"</span>) + <span class="ruby-keyword kw">end</span></pre> +</body> +</html>
\ No newline at end of file diff --git a/doc/classes/Git/Remote.src/M000151.html b/doc/classes/Git/Remote.src/M000151.html new file mode 100644 index 0000000..e21742d --- /dev/null +++ b/doc/classes/Git/Remote.src/M000151.html @@ -0,0 +1,18 @@ +<?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> +<head> + <title>branch (Git::Remote)</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> + <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" /> +</head> +<body class="standalone-code"> + <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>) + <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-ivar">@base</span>, <span class="ruby-node">"#{@name}/#{branch}"</span>) + <span class="ruby-keyword kw">end</span></pre> +</body> +</html>
\ No newline at end of file diff --git a/doc/classes/Git/Remote.src/M000152.html b/doc/classes/Git/Remote.src/M000152.html new file mode 100644 index 0000000..300f6fc --- /dev/null +++ b/doc/classes/Git/Remote.src/M000152.html @@ -0,0 +1,18 @@ +<?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> +<head> + <title>remove (Git::Remote)</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> + <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" /> +</head> +<body class="standalone-code"> + <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> + <span class="ruby-ivar">@base</span>.<span class="ruby-identifier">lib</span>.<span class="ruby-identifier">remote_remove</span>(<span class="ruby-ivar">@name</span>) + <span class="ruby-keyword kw">end</span></pre> +</body> +</html>
\ No newline at end of file diff --git a/doc/classes/Git/Remote.src/M000153.html b/doc/classes/Git/Remote.src/M000153.html new file mode 100644 index 0000000..4469ace --- /dev/null +++ b/doc/classes/Git/Remote.src/M000153.html @@ -0,0 +1,18 @@ +<?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> +<head> + <title>to_s (Git::Remote)</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> + <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" /> +</head> +<body class="standalone-code"> + <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> + <span class="ruby-ivar">@name</span> + <span class="ruby-keyword kw">end</span></pre> +</body> +</html>
\ No newline at end of file diff --git a/doc/classes/Git/Repository.html b/doc/classes/Git/Repository.html new file mode 100644 index 0000000..9d8927a --- /dev/null +++ b/doc/classes/Git/Repository.html @@ -0,0 +1,113 @@ +<?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::Repository</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::Repository</td> + </tr> + <tr class="top-aligned-row"> + <td><strong>In:</strong></td> + <td> + <a href="../../files/lib/git/repository_rb.html"> + lib/git/repository.rb + </a> + <br /> + </td> + </tr> + + <tr class="top-aligned-row"> + <td><strong>Parent:</strong></td> + <td> + <a href="Path.html"> + Path + </a> + </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/classes/Git/Status.html b/doc/classes/Git/Status.html new file mode 100644 index 0000000..81f64d9 --- /dev/null +++ b/doc/classes/Git/Status.html @@ -0,0 +1,348 @@ +<?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::Status</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::Status</td> + </tr> + <tr class="top-aligned-row"> + <td><strong>In:</strong></td> + <td> + <a href="../../files/lib/git/status_rb.html"> + lib/git/status.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="#M000011">[]</a> + <a href="#M000007">added</a> + <a href="#M000006">changed</a> + <a href="#M000008">deleted</a> + <a href="#M000012">each</a> + <a href="#M000005">new</a> + <a href="#M000010">pretty</a> + <a href="#M000009">untracked</a> + </div> + </div> + + </div> + + + <!-- if includes --> + <div id="includes"> + <h3 class="section-bar">Included Modules</h3> + + <div id="includes-list"> + <span class="include-name">Enumerable</span> + </div> + </div> + + <div id="section"> + + <div id="class-list"> + <h3 class="section-bar">Classes and Modules</h3> + + Class <a href="Status/StatusFile.html" class="link">Git::Status::StatusFile</a><br /> + + </div> + + + + + + + + <!-- if method_list --> + <div id="methods"> + <h3 class="section-bar">Public Class methods</h3> + + <div id="method-M000005" class="method-detail"> + <a name="M000005"></a> + + <div class="method-heading"> + <a href="#M000005" 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('M000005-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000005-source"> +<pre> +<span class="ruby-comment cmt"># File lib/git/status.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-ivar">@base</span> = <span class="ruby-identifier">base</span> + <span class="ruby-identifier">construct_status</span> + <span class="ruby-keyword kw">end</span> +</pre> + </div> + </div> + </div> + + <h3 class="section-bar">Public Instance methods</h3> + + <div id="method-M000011" class="method-detail"> + <a name="M000011"></a> + + <div class="method-heading"> + <a href="#M000011" class="method-signature"> + <span class="method-name">[]</span><span class="method-args">(file)</span> + </a> + </div> + + <div class="method-description"> + <p> +enumerable method +</p> + <p><a class="source-toggle" href="#" + onclick="toggleCode('M000011-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000011-source"> +<pre> +<span class="ruby-comment cmt"># File lib/git/status.rb, line 47</span> + <span class="ruby-keyword kw">def</span> <span class="ruby-operator">[]</span>(<span class="ruby-identifier">file</span>) + <span class="ruby-ivar">@files</span>[<span class="ruby-identifier">file</span>] + <span class="ruby-keyword kw">end</span> +</pre> + </div> + </div> + </div> + + <div id="method-M000007" class="method-detail"> + <a name="M000007"></a> + + <div class="method-heading"> + <a href="#M000007" class="method-signature"> + <span class="method-name">added</span><span class="method-args">()</span> + </a> + </div> + + <div class="method-description"> + <p><a class="source-toggle" href="#" + onclick="toggleCode('M000007-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000007-source"> +<pre> +<span class="ruby-comment cmt"># File lib/git/status.rb, line 18</span> + <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">added</span> + <span class="ruby-ivar">@files</span>.<span class="ruby-identifier">select</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">k</span>, <span class="ruby-identifier">f</span><span class="ruby-operator">|</span> <span class="ruby-identifier">f</span>.<span class="ruby-identifier">type</span> <span class="ruby-operator">==</span> <span class="ruby-value str">'A'</span> } + <span class="ruby-keyword kw">end</span> +</pre> + </div> + </div> + </div> + + <div id="method-M000006" class="method-detail"> + <a name="M000006"></a> + + <div class="method-heading"> + <a href="#M000006" class="method-signature"> + <span class="method-name">changed</span><span class="method-args">()</span> + </a> + </div> + + <div class="method-description"> + <p><a class="source-toggle" href="#" + onclick="toggleCode('M000006-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000006-source"> +<pre> +<span class="ruby-comment cmt"># File lib/git/status.rb, line 14</span> + <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">changed</span> + <span class="ruby-ivar">@files</span>.<span class="ruby-identifier">select</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">k</span>, <span class="ruby-identifier">f</span><span class="ruby-operator">|</span> <span class="ruby-identifier">f</span>.<span class="ruby-identifier">type</span> <span class="ruby-operator">==</span> <span class="ruby-value str">'M'</span> } + <span class="ruby-keyword kw">end</span> +</pre> + </div> + </div> + </div> + + <div id="method-M000008" class="method-detail"> + <a name="M000008"></a> + + <div class="method-heading"> + <a href="#M000008" class="method-signature"> + <span class="method-name">deleted</span><span class="method-args">()</span> + </a> + </div> + + <div class="method-description"> + <p><a class="source-toggle" href="#" + onclick="toggleCode('M000008-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000008-source"> +<pre> +<span class="ruby-comment cmt"># File lib/git/status.rb, line 22</span> + <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">deleted</span> + <span class="ruby-ivar">@files</span>.<span class="ruby-identifier">select</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">k</span>, <span class="ruby-identifier">f</span><span class="ruby-operator">|</span> <span class="ruby-identifier">f</span>.<span class="ruby-identifier">type</span> <span class="ruby-operator">==</span> <span class="ruby-value str">'D'</span> } + <span class="ruby-keyword kw">end</span> +</pre> + </div> + </div> + </div> + + <div id="method-M000012" class="method-detail"> + <a name="M000012"></a> + + <div class="method-heading"> + <a href="#M000012" class="method-signature"> + <span class="method-name">each</span><span class="method-args">() {|file| ...}</span> + </a> + </div> + + <div class="method-description"> + <p><a class="source-toggle" href="#" + onclick="toggleCode('M000012-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000012-source"> +<pre> +<span class="ruby-comment cmt"># File lib/git/status.rb, line 51</span> + <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">each</span> + <span class="ruby-ivar">@files</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">k</span>, <span class="ruby-identifier">file</span><span class="ruby-operator">|</span> + <span class="ruby-keyword kw">yield</span> <span class="ruby-identifier">file</span> + <span class="ruby-keyword kw">end</span> + <span class="ruby-keyword kw">end</span> +</pre> + </div> + </div> + </div> + + <div id="method-M000010" class="method-detail"> + <a name="M000010"></a> + + <div class="method-heading"> + <a href="#M000010" class="method-signature"> + <span class="method-name">pretty</span><span class="method-args">()</span> + </a> + </div> + + <div class="method-description"> + <p><a class="source-toggle" href="#" + onclick="toggleCode('M000010-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000010-source"> +<pre> +<span class="ruby-comment cmt"># File lib/git/status.rb, line 30</span> + <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">pretty</span> + <span class="ruby-identifier">out</span> = <span class="ruby-value str">''</span> + <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">file</span><span class="ruby-operator">|</span> + <span class="ruby-identifier">out</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">file</span>.<span class="ruby-identifier">path</span> + <span class="ruby-identifier">out</span> <span class="ruby-operator"><<</span> <span class="ruby-value str">"\n\tsha(r) "</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">file</span>.<span class="ruby-identifier">sha_repo</span>.<span class="ruby-identifier">to_s</span> <span class="ruby-operator">+</span> <span class="ruby-value str">' '</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">file</span>.<span class="ruby-identifier">mode_repo</span>.<span class="ruby-identifier">to_s</span> + <span class="ruby-identifier">out</span> <span class="ruby-operator"><<</span> <span class="ruby-value str">"\n\tsha(i) "</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">file</span>.<span class="ruby-identifier">sha_index</span>.<span class="ruby-identifier">to_s</span> <span class="ruby-operator">+</span> <span class="ruby-value str">' '</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">file</span>.<span class="ruby-identifier">mode_index</span>.<span class="ruby-identifier">to_s</span> + <span class="ruby-identifier">out</span> <span class="ruby-operator"><<</span> <span class="ruby-value str">"\n\ttype "</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">file</span>.<span class="ruby-identifier">type</span>.<span class="ruby-identifier">to_s</span> + <span class="ruby-identifier">out</span> <span class="ruby-operator"><<</span> <span class="ruby-value str">"\n\tstage "</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">file</span>.<span class="ruby-identifier">stage</span>.<span class="ruby-identifier">to_s</span> + <span class="ruby-identifier">out</span> <span class="ruby-operator"><<</span> <span class="ruby-value str">"\n\tuntrac "</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">file</span>.<span class="ruby-identifier">untracked</span>.<span class="ruby-identifier">to_s</span> + <span class="ruby-identifier">out</span> <span class="ruby-operator"><<</span> <span class="ruby-value str">"\n"</span> + <span class="ruby-keyword kw">end</span> + <span class="ruby-identifier">out</span> <span class="ruby-operator"><<</span> <span class="ruby-value str">"\n"</span> + <span class="ruby-identifier">out</span> + <span class="ruby-keyword kw">end</span> +</pre> + </div> + </div> + </div> + + <div id="method-M000009" class="method-detail"> + <a name="M000009"></a> + + <div class="method-heading"> + <a href="#M000009" class="method-signature"> + <span class="method-name">untracked</span><span class="method-args">()</span> + </a> + </div> + + <div class="method-description"> + <p><a class="source-toggle" href="#" + onclick="toggleCode('M000009-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000009-source"> +<pre> +<span class="ruby-comment cmt"># File lib/git/status.rb, line 26</span> + <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">untracked</span> + <span class="ruby-ivar">@files</span>.<span class="ruby-identifier">select</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">k</span>, <span class="ruby-identifier">f</span><span class="ruby-operator">|</span> <span class="ruby-identifier">f</span>.<span class="ruby-identifier">untracked</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/Status.src/M000005.html b/doc/classes/Git/Status.src/M000005.html new file mode 100644 index 0000000..7a61284 --- /dev/null +++ b/doc/classes/Git/Status.src/M000005.html @@ -0,0 +1,19 @@ +<?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> +<head> + <title>new (Git::Status)</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> + <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" /> +</head> +<body class="standalone-code"> + <pre><span class="ruby-comment cmt"># File lib/git/status.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-ivar">@base</span> = <span class="ruby-identifier">base</span> + <span class="ruby-identifier">construct_status</span> + <span class="ruby-keyword kw">end</span></pre> +</body> +</html>
\ No newline at end of file diff --git a/doc/classes/Git/Status.src/M000006.html b/doc/classes/Git/Status.src/M000006.html new file mode 100644 index 0000000..cefe7e6 --- /dev/null +++ b/doc/classes/Git/Status.src/M000006.html @@ -0,0 +1,18 @@ +<?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> +<head> + <title>changed (Git::Status)</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> + <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" /> +</head> +<body class="standalone-code"> + <pre><span class="ruby-comment cmt"># File lib/git/status.rb, line 14</span> + <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">changed</span> + <span class="ruby-ivar">@files</span>.<span class="ruby-identifier">select</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">k</span>, <span class="ruby-identifier">f</span><span class="ruby-operator">|</span> <span class="ruby-identifier">f</span>.<span class="ruby-identifier">type</span> <span class="ruby-operator">==</span> <span class="ruby-value str">'M'</span> } + <span class="ruby-keyword kw">end</span></pre> +</body> +</html>
\ No newline at end of file diff --git a/doc/classes/Git/Status.src/M000007.html b/doc/classes/Git/Status.src/M000007.html new file mode 100644 index 0000000..09fd966 --- /dev/null +++ b/doc/classes/Git/Status.src/M000007.html @@ -0,0 +1,18 @@ +<?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> +<head> + <title>added (Git::Status)</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> + <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" /> +</head> +<body class="standalone-code"> + <pre><span class="ruby-comment cmt"># File lib/git/status.rb, line 18</span> + <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">added</span> + <span class="ruby-ivar">@files</span>.<span class="ruby-identifier">select</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">k</span>, <span class="ruby-identifier">f</span><span class="ruby-operator">|</span> <span class="ruby-identifier">f</span>.<span class="ruby-identifier">type</span> <span class="ruby-operator">==</span> <span class="ruby-value str">'A'</span> } + <span class="ruby-keyword kw">end</span></pre> +</body> +</html>
\ No newline at end of file diff --git a/doc/classes/Git/Status.src/M000008.html b/doc/classes/Git/Status.src/M000008.html new file mode 100644 index 0000000..67834e4 --- /dev/null +++ b/doc/classes/Git/Status.src/M000008.html @@ -0,0 +1,18 @@ +<?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> +<head> + <title>deleted (Git::Status)</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> + <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" /> +</head> +<body class="standalone-code"> + <pre><span class="ruby-comment cmt"># File lib/git/status.rb, line 22</span> + <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">deleted</span> + <span class="ruby-ivar">@files</span>.<span class="ruby-identifier">select</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">k</span>, <span class="ruby-identifier">f</span><span class="ruby-operator">|</span> <span class="ruby-identifier">f</span>.<span class="ruby-identifier">type</span> <span class="ruby-operator">==</span> <span class="ruby-value str">'D'</span> } + <span class="ruby-keyword kw">end</span></pre> +</body> +</html>
\ No newline at end of file diff --git a/doc/classes/Git/Status.src/M000009.html b/doc/classes/Git/Status.src/M000009.html new file mode 100644 index 0000000..d3bf8f1 --- /dev/null +++ b/doc/classes/Git/Status.src/M000009.html @@ -0,0 +1,18 @@ +<?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> +<head> + <title>untracked (Git::Status)</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> + <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" /> +</head> +<body class="standalone-code"> + <pre><span class="ruby-comment cmt"># File lib/git/status.rb, line 26</span> + <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">untracked</span> + <span class="ruby-ivar">@files</span>.<span class="ruby-identifier">select</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">k</span>, <span class="ruby-identifier">f</span><span class="ruby-operator">|</span> <span class="ruby-identifier">f</span>.<span class="ruby-identifier">untracked</span> } + <span class="ruby-keyword kw">end</span></pre> +</body> +</html>
\ No newline at end of file diff --git a/doc/classes/Git/Status.src/M000010.html b/doc/classes/Git/Status.src/M000010.html new file mode 100644 index 0000000..cd8897e --- /dev/null +++ b/doc/classes/Git/Status.src/M000010.html @@ -0,0 +1,29 @@ +<?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> +<head> + <title>pretty (Git::Status)</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> + <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" /> +</head> +<body class="standalone-code"> + <pre><span class="ruby-comment cmt"># File lib/git/status.rb, line 30</span> + <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">pretty</span> + <span class="ruby-identifier">out</span> = <span class="ruby-value str">''</span> + <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">file</span><span class="ruby-operator">|</span> + <span class="ruby-identifier">out</span> <span class="ruby-operator"><<</span> <span class="ruby-identifier">file</span>.<span class="ruby-identifier">path</span> + <span class="ruby-identifier">out</span> <span class="ruby-operator"><<</span> <span class="ruby-value str">"\n\tsha(r) "</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">file</span>.<span class="ruby-identifier">sha_repo</span>.<span class="ruby-identifier">to_s</span> <span class="ruby-operator">+</span> <span class="ruby-value str">' '</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">file</span>.<span class="ruby-identifier">mode_repo</span>.<span class="ruby-identifier">to_s</span> + <span class="ruby-identifier">out</span> <span class="ruby-operator"><<</span> <span class="ruby-value str">"\n\tsha(i) "</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">file</span>.<span class="ruby-identifier">sha_index</span>.<span class="ruby-identifier">to_s</span> <span class="ruby-operator">+</span> <span class="ruby-value str">' '</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">file</span>.<span class="ruby-identifier">mode_index</span>.<span class="ruby-identifier">to_s</span> + <span class="ruby-identifier">out</span> <span class="ruby-operator"><<</span> <span class="ruby-value str">"\n\ttype "</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">file</span>.<span class="ruby-identifier">type</span>.<span class="ruby-identifier">to_s</span> + <span class="ruby-identifier">out</span> <span class="ruby-operator"><<</span> <span class="ruby-value str">"\n\tstage "</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">file</span>.<span class="ruby-identifier">stage</span>.<span class="ruby-identifier">to_s</span> + <span class="ruby-identifier">out</span> <span class="ruby-operator"><<</span> <span class="ruby-value str">"\n\tuntrac "</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">file</span>.<span class="ruby-identifier">untracked</span>.<span class="ruby-identifier">to_s</span> + <span class="ruby-identifier">out</span> <span class="ruby-operator"><<</span> <span class="ruby-value str">"\n"</span> + <span class="ruby-keyword kw">end</span> + <span class="ruby-identifier">out</span> <span class="ruby-operator"><<</span> <span class="ruby-value str">"\n"</span> + <span class="ruby-identifier">out</span> + <span class="ruby-keyword kw">end</span></pre> +</body> +</html>
\ No newline at end of file diff --git a/doc/classes/Git/Status.src/M000011.html b/doc/classes/Git/Status.src/M000011.html new file mode 100644 index 0000000..146326a --- /dev/null +++ b/doc/classes/Git/Status.src/M000011.html @@ -0,0 +1,18 @@ +<?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> +<head> + <title>[] (Git::Status)</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> + <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" /> +</head> +<body class="standalone-code"> + <pre><span class="ruby-comment cmt"># File lib/git/status.rb, line 47</span> + <span class="ruby-keyword kw">def</span> <span class="ruby-operator">[]</span>(<span class="ruby-identifier">file</span>) + <span class="ruby-ivar">@files</span>[<span class="ruby-identifier">file</span>] + <span class="ruby-keyword kw">end</span></pre> +</body> +</html>
\ No newline at end of file diff --git a/doc/classes/Git/Status.src/M000012.html b/doc/classes/Git/Status.src/M000012.html new file mode 100644 index 0000000..03b742b --- /dev/null +++ b/doc/classes/Git/Status.src/M000012.html @@ -0,0 +1,20 @@ +<?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> +<head> + <title>each (Git::Status)</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> + <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" /> +</head> +<body class="standalone-code"> + <pre><span class="ruby-comment cmt"># File lib/git/status.rb, line 51</span> + <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">each</span> + <span class="ruby-ivar">@files</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">k</span>, <span class="ruby-identifier">file</span><span class="ruby-operator">|</span> + <span class="ruby-keyword kw">yield</span> <span class="ruby-identifier">file</span> + <span class="ruby-keyword kw">end</span> + <span class="ruby-keyword kw">end</span></pre> +</body> +</html>
\ No newline at end of file diff --git a/doc/classes/Git/Status/StatusFile.html b/doc/classes/Git/Status/StatusFile.html new file mode 100644 index 0000000..c1a0b2f --- /dev/null +++ b/doc/classes/Git/Status/StatusFile.html @@ -0,0 +1,232 @@ +<?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::Status::StatusFile</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::Status::StatusFile</td> + </tr> + <tr class="top-aligned-row"> + <td><strong>In:</strong></td> + <td> + <a href="../../../files/lib/git/status_rb.html"> + lib/git/status.rb + </a> + <br /> + </td> + </tr> + + <tr class="top-aligned-row"> + <td><strong>Parent:</strong></td> + <td> + Object + </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="#M000014">blob</a> + <a href="#M000013">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">mode_index</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">mode_repo</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">path</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">sha_index</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">sha_repo</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">stage</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">type</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">untracked</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-M000013" class="method-detail"> + <a name="M000013"></a> + + <div class="method-heading"> + <a href="#M000013" 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('M000013-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000013-source"> +<pre> +<span class="ruby-comment cmt"># File lib/git/status.rb, line 64</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>) + <span class="ruby-ivar">@base</span> = <span class="ruby-identifier">base</span> + <span class="ruby-ivar">@path</span> = <span class="ruby-identifier">hash</span>[<span class="ruby-identifier">:path</span>] + <span class="ruby-ivar">@type</span> = <span class="ruby-identifier">hash</span>[<span class="ruby-identifier">:type</span>] + <span class="ruby-ivar">@stage</span> = <span class="ruby-identifier">hash</span>[<span class="ruby-identifier">:stage</span>] + <span class="ruby-ivar">@mode_index</span> = <span class="ruby-identifier">hash</span>[<span class="ruby-identifier">:mode_index</span>] + <span class="ruby-ivar">@mode_repo</span> = <span class="ruby-identifier">hash</span>[<span class="ruby-identifier">:mode_repo</span>] + <span class="ruby-ivar">@sha_index</span> = <span class="ruby-identifier">hash</span>[<span class="ruby-identifier">:sha_index</span>] + <span class="ruby-ivar">@sha_repo</span> = <span class="ruby-identifier">hash</span>[<span class="ruby-identifier">:sha_repo</span>] + <span class="ruby-ivar">@untracked</span> = <span class="ruby-identifier">hash</span>[<span class="ruby-identifier">:untracked</span>] + <span class="ruby-keyword kw">end</span> +</pre> + </div> + </div> + </div> + + <h3 class="section-bar">Public Instance methods</h3> + + <div id="method-M000014" class="method-detail"> + <a name="M000014"></a> + + <div class="method-heading"> + <a href="#M000014" class="method-signature"> + <span class="method-name">blob</span><span class="method-args">(type = :index)</span> + </a> + </div> + + <div class="method-description"> + <p><a class="source-toggle" href="#" + onclick="toggleCode('M000014-source');return false;">[Source]</a></p> + <div class="method-source-code" id="M000014-source"> +<pre> +<span class="ruby-comment cmt"># File lib/git/status.rb, line 76</span> + <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">blob</span>(<span class="ruby-identifier">type</span> = <span class="ruby-identifier">:index</span>) + <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">type</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">:repo</span> + <span class="ruby-ivar">@base</span>.<span class="ruby-identifier">object</span>(<span class="ruby-ivar">@sha_repo</span>) + <span class="ruby-keyword kw">else</span> + <span class="ruby-ivar">@base</span>.<span class="ruby-identifier">object</span>(<span class="ruby-ivar">@sha_index</span>) <span class="ruby-keyword kw">rescue</span> <span class="ruby-ivar">@base</span>.<span class="ruby-identifier">object</span>(<span class="ruby-ivar">@sha_repo</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/Status/StatusFile.src/M000013.html b/doc/classes/Git/Status/StatusFile.src/M000013.html new file mode 100644 index 0000000..3a1699b --- /dev/null +++ b/doc/classes/Git/Status/StatusFile.src/M000013.html @@ -0,0 +1,26 @@ +<?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> +<head> + <title>new (Git::Status::StatusFile)</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> + <link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" /> +</head> +<body class="standalone-code"> + <pre><span class="ruby-comment cmt"># File lib/git/status.rb, line 64</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>) + <span class="ruby-ivar">@base</span> = <span class="ruby-identifier">base</span> + <span class="ruby-ivar">@path</span> = <span class="ruby-identifier">hash</span>[<span class="ruby-identifier">:path</span>] + <span class="ruby-ivar">@type</span> = <span class="ruby-identifier">hash</span>[<span class="ruby-identifier">:type</span>] + <span class="ruby-ivar">@stage</span> = <span class="ruby-identifier">hash</span>[<span class="ruby-identifier">:stage</span>] + <span class="ruby-ivar">@mode_index</span> = <span class="ruby-identifier">hash</span>[<span class="ruby-identifier">:mode_index</span>] + <span class="ruby-ivar">@mode_repo</span> = <span class="ruby-identifier">hash</span>[<span class="ruby-identifier">:mode_repo</span>] + <span class="ruby-ivar">@sha_index</span> = <span class="ruby-identifier">hash</span>[<span class="ruby-identifier">:sha_index</span>] + <span class="ruby-ivar">@sha_repo</span> = <span class="ruby-identifier">hash</span>[<span class="ruby-identifier">:sha_repo</span>] + <span class="ruby-ivar">@untracked</span> = <span class="ruby-identifier">hash</span>[<span class="ruby-identifier">:untracked</span>] + <span class="ruby-keyword kw">end</span></pre> +</body> +</html>
\ No newline at end of file diff --git a/doc/classes/Git/Status/StatusFile.src/M000014.html b/doc/classes/Git/Status/StatusFile.src/M000014.html new file mode 100644 index 0000000..6ddc339 --- /dev/null +++ b/doc/classes/Git/Status/StatusFile.src/M000014.html @@ -0,0 +1,22 @@ +<?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> +<head> + <title>blob (Git::Status::StatusFile)</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> + <link rel="stylesheet" href="../../../.././rdoc-style.css" type="text/css" media="screen" /> +</head> +<body class="standalone-code"> + <pre><span class="ruby-comment cmt"># File lib/git/status.rb, line 76</span> + <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">blob</span>(<span class="ruby-identifier">type</span> = <span class="ruby-identifier">:index</span>) + <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">type</span> <span class="ruby-operator">==</span> <span class="ruby-identifier">:repo</span> + <span class="ruby-ivar">@base</span>.<span class="ruby-identifier">object</span>(<span class="ruby-ivar">@sha_repo</span>) + <span class="ruby-keyword kw">else</span> + <span class="ruby-ivar">@base</span>.<span class="ruby-identifier">object</span>(<span class="ruby-ivar">@sha_index</span>) <span class="ruby-keyword kw">rescue</span> <span class="ruby-ivar">@base</span>.<span class="ruby-identifier">object</span>(<span class="ruby-ivar">@sha_repo</span>) + <span class="ruby-keyword kw">end</span> + <span class="ruby-keyword kw">end</span></pre> +</body> +</html>
\ No newline at end of file diff --git a/doc/classes/Git/WorkingDirectory.html b/doc/classes/Git/WorkingDirectory.html new file mode 100644 index 0000000..89b1753 --- /dev/null +++ b/doc/classes/Git/WorkingDirectory.html @@ -0,0 +1,113 @@ +<?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::WorkingDirectory</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::WorkingDirectory</td> + </tr> + <tr class="top-aligned-row"> + <td><strong>In:</strong></td> + <td> + <a href="../../files/lib/git/working_directory_rb.html"> + lib/git/working_directory.rb + </a> + <br /> + </td> + </tr> + + <tr class="top-aligned-row"> + <td><strong>Parent:</strong></td> + <td> + <a href="Path.html"> + Git::Path + </a> + </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/created.rid b/doc/created.rid new file mode 100644 index 0000000..e14a536 --- /dev/null +++ b/doc/created.rid @@ -0,0 +1 @@ +Sun Nov 11 17:55:02 PST 2007 diff --git a/doc/files/EXAMPLES.html b/doc/files/EXAMPLES.html new file mode 100644 index 0000000..ef92243 --- /dev/null +++ b/doc/files/EXAMPLES.html @@ -0,0 +1,268 @@ +<?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: EXAMPLES</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>EXAMPLES</h1> + <table class="header-table"> + <tr class="top-aligned-row"> + <td><strong>Path:</strong></td> + <td>EXAMPLES + </td> + </tr> + <tr class="top-aligned-row"> + <td><strong>Last Update:</strong></td> + <td>Sun Nov 11 17:51:57 PST 2007</td> + </tr> + </table> + </div> + <!-- banner header --> + + <div id="bodyContent"> + + + + <div id="contextContent"> + + <div id="description"> + <p> +require ‘git’ +</p> +<p> +# needs read permission only +</p> +<p> +g = <a href="../classes/Git.html#M000002">Git.open</a> (working_dir = +’.’) +</p> +<pre> + (git_dir, index_file) +</pre> +<p> +g.index g.index.readable? g.index.writable? g.repo g.dir +</p> +<p> +g.log # returns array of Git::Commit objects g.log.since(‘2 weeks +ago’) g.log.between(‘v2.5’, ‘v2.6’) +g.log.each {|l| puts l.sha } +g.gblob(‘v2.5:Makefile’).log.since(‘2 weeks ago’) +</p> +<p> +g.object(‘HEAD^’).to_s # git show / git rev-parse +g.object(‘HEAD^’).contents +g.object(‘v2.5:Makefile’).size +g.object(‘v2.5:Makefile’).sha +</p> +<p> +g.gtree(treeish) g.gblob(treeish) g.gcommit(treeish) +</p> +<p> +g.revparse(‘v2.5:Makefile’) +</p> +<p> +g.branches # returns <a href="../classes/Git/Branch.html">Git::Branch</a> +objects g.branches.local g.branches.remote g.branches[:master].gcommit +g.branches[‘origin/master’].gcommit +</p> +<p> +g.grep(‘hello’) # implies HEAD +g.blob(‘v2.5:Makefile’).grep(‘hello’) +g.tag(‘v2.5’).grep(‘hello’, ‘docs/’) +</p> +<p> +g.diff(commit1, commit2).size g.diff(commit1, commit2).stats +g.gtree(‘v2.5’).diff(‘v2.6’).insertions +g.diff(‘gitsearch1’, +‘v2.5’).path(‘lib/’) +g.diff(‘gitsearch1’, @git.gtree(‘v2.5’)) +g.diff(‘gitsearch1’, +‘v2.5’).path(‘docs/’).patch +g.gtree(‘v2.5’).diff(‘v2.6’).patch +</p> +<p> +g.gtree(‘v2.5’).diff(‘v2.6’).each do |file_diff| +</p> +<pre> + puts file_diff.path + puts file_diff.patch + puts file_diff.blob(:src).contents +</pre> +<p> +end +</p> +<p> +g.config(‘user.name’) # returns ‘Scott Chacon’ +g.config # returns whole config hash +</p> +<p> +g.tag # returns array of Git::Tag objects +</p> +<p> +# needs write permission +</p> +<p> +g = <a href="../classes/Git.html#M000003">Git.init</a> +</p> +<pre> + Git.init('project') + Git.init('/home/schacon/proj', + { :git_dir => '/opt/git/proj.git', + :index_file => '/tmp/index'} ) +</pre> +<p> +g = <a href="../classes/Git.html#M000004">Git.clone</a>(URI, :name => +‘name’, :path => ’/tmp/checkout‘ +</p> +<pre> + (git_dir, index_file) +</pre> +<p> +g.config(‘user.name’, ‘Scott Chacon’) +g.config(‘user.email’, ‘email@email.com’) +</p> +<p> +g.add(’.’) g.add([file1, file2]) +</p> +<p> +g.remove(‘file.txt’) g.remove([‘file.txt’, +‘file2.txt’]) +</p> +<p> +g.commit(‘message’) g.commit_all(‘message’) +</p> +<p> +g = <a href="../classes/Git.html#M000004">Git.clone</a>(repo, +‘myrepo’) Dir.chdir(‘myrepo’) do +</p> +<pre> + new_file('test-file', 'blahblahblah') + g.status.untracked.each do |file| + puts file.blob(:index).contents + end +</pre> +<p> +end +</p> +<p> +g.reset # defaults to HEAD g.reset_hard(Git::Commit) +</p> +<p> +g.branch(‘new_branch’) # creates new or fetches existing +g.branch(‘new_branch’).checkout +g.branch(‘new_branch’).delete +g.branch(‘existing_branch’).checkout +</p> +<p> +g.checkout(‘new_branch’) +g.checkout(g.branch(‘new_branch’)) +</p> +<p> +g.branch(name).merge(branch2) g.branch(branch2).merge # merges HEAD with +branch2 +</p> +<p> +g.branch(name).in_branch(message) { # add files } # auto-commits +g.merge(‘new_branch’) +g.merge(‘origin/remote_branch’) +g.merge(b.branch(‘master’)) g.merge([branch1, branch2]) +</p> +<p> +r = g.add_remote(name, uri) # <a +href="../classes/Git/Remote.html">Git::Remote</a> r = g.add_remote(name, <a +href="../classes/Git/Base.html">Git::Base</a>) # <a +href="../classes/Git/Remote.html">Git::Remote</a> +</p> +<p> +g.remotes # array of Git::Remotes g.remote(name).fetch +g.remote(name).remove g.remote(name).merge g.remote(name).merge(branch) +</p> +<p> +g.fetch g.fetch(g.remotes.first) +</p> +<p> +g.pull g.pull(Git::Repo, <a +href="../classes/Git/Branch.html">Git::Branch</a>) # fetch and a merge +</p> +<p> +g.add_tag(‘tag_name’) # returns Git::Tag +</p> +<p> +g.repack +</p> + + </div> + + + </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/README.html b/doc/files/README.html new file mode 100644 index 0000000..3179ce1 --- /dev/null +++ b/doc/files/README.html @@ -0,0 +1,119 @@ +<?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: README</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>README</h1> + <table class="header-table"> + <tr class="top-aligned-row"> + <td><strong>Path:</strong></td> + <td>README + </td> + </tr> + <tr class="top-aligned-row"> + <td><strong>Last Update:</strong></td> + <td>Sun Nov 11 17:55:00 PST 2007</td> + </tr> + </table> + </div> + <!-- banner header --> + + <div id="bodyContent"> + + + + <div id="contextContent"> + + <div id="description"> + <h2><a href="../classes/Git.html">Git</a> Library for Ruby</h2> +<h1>What it is</h1> +<p> +Library for using <a href="../classes/Git.html">Git</a> in Ruby. +</p> +<h1>Roadmap</h1> +<p> +Right now I’m forking calls to the ‘git’ binary, but +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> +<p> +See EXAMPLES file for, well, examples. +</p> + + </div> + + + </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 new file mode 100644 index 0000000..4e8dfee --- /dev/null +++ b/doc/files/lib/git/base_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: base.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>base.rb</h1> + <table class="header-table"> + <tr class="top-aligned-row"> + <td><strong>Path:</strong></td> + <td>lib/git/base.rb + </td> + </tr> + <tr class="top-aligned-row"> + <td><strong>Last Update:</strong></td> + <td>Sun Nov 11 16:46:30 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/branch_rb.html b/doc/files/lib/git/branch_rb.html new file mode 100644 index 0000000..2c79e83 --- /dev/null +++ b/doc/files/lib/git/branch_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: branch.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>branch.rb</h1> + <table class="header-table"> + <tr class="top-aligned-row"> + <td><strong>Path:</strong></td> + <td>lib/git/branch.rb + </td> + </tr> + <tr class="top-aligned-row"> + <td><strong>Last Update:</strong></td> + <td>Sun Nov 11 17:19:18 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/branches_rb.html b/doc/files/lib/git/branches_rb.html new file mode 100644 index 0000000..52608d1 --- /dev/null +++ b/doc/files/lib/git/branches_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: branches.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>branches.rb</h1> + <table class="header-table"> + <tr class="top-aligned-row"> + <td><strong>Path:</strong></td> + <td>lib/git/branches.rb + </td> + </tr> + <tr class="top-aligned-row"> + <td><strong>Last Update:</strong></td> + <td>Sun Nov 11 12:10:49 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/diff_rb.html b/doc/files/lib/git/diff_rb.html new file mode 100644 index 0000000..79849e7 --- /dev/null +++ b/doc/files/lib/git/diff_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: diff.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>diff.rb</h1> + <table class="header-table"> + <tr class="top-aligned-row"> + <td><strong>Path:</strong></td> + <td>lib/git/diff.rb + </td> + </tr> + <tr class="top-aligned-row"> + <td><strong>Last Update:</strong></td> + <td>Sat Nov 10 11:50:45 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/index_rb.html b/doc/files/lib/git/index_rb.html new file mode 100644 index 0000000..c4d1cfa --- /dev/null +++ b/doc/files/lib/git/index_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: index.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>index.rb</h1> + <table class="header-table"> + <tr class="top-aligned-row"> + <td><strong>Path:</strong></td> + <td>lib/git/index.rb + </td> + </tr> + <tr class="top-aligned-row"> + <td><strong>Last Update:</strong></td> + <td>Wed Nov 07 15:40:20 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/lib_rb.html b/doc/files/lib/git/lib_rb.html new file mode 100644 index 0000000..7bbabc2 --- /dev/null +++ b/doc/files/lib/git/lib_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: lib.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>lib.rb</h1> + <table class="header-table"> + <tr class="top-aligned-row"> + <td><strong>Path:</strong></td> + <td>lib/git/lib.rb + </td> + </tr> + <tr class="top-aligned-row"> + <td><strong>Last Update:</strong></td> + <td>Sun Nov 11 17:17:50 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/log_rb.html b/doc/files/lib/git/log_rb.html new file mode 100644 index 0000000..0d10862 --- /dev/null +++ b/doc/files/lib/git/log_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: log.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>log.rb</h1> + <table class="header-table"> + <tr class="top-aligned-row"> + <td><strong>Path:</strong></td> + <td>lib/git/log.rb + </td> + </tr> + <tr class="top-aligned-row"> + <td><strong>Last Update:</strong></td> + <td>Fri Nov 09 12:34:33 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/object_rb.html b/doc/files/lib/git/object_rb.html new file mode 100644 index 0000000..8ea73f7 --- /dev/null +++ b/doc/files/lib/git/object_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: object.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>object.rb</h1> + <table class="header-table"> + <tr class="top-aligned-row"> + <td><strong>Path:</strong></td> + <td>lib/git/object.rb + </td> + </tr> + <tr class="top-aligned-row"> + <td><strong>Last Update:</strong></td> + <td>Sun Nov 11 15:59:01 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/path_rb.html b/doc/files/lib/git/path_rb.html new file mode 100644 index 0000000..edc7fbf --- /dev/null +++ b/doc/files/lib/git/path_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: path.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>path.rb</h1> + <table class="header-table"> + <tr class="top-aligned-row"> + <td><strong>Path:</strong></td> + <td>lib/git/path.rb + </td> + </tr> + <tr class="top-aligned-row"> + <td><strong>Last Update:</strong></td> + <td>Sat Nov 10 15:17:16 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/remote_rb.html b/doc/files/lib/git/remote_rb.html new file mode 100644 index 0000000..4f89827 --- /dev/null +++ b/doc/files/lib/git/remote_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: remote.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>remote.rb</h1> + <table class="header-table"> + <tr class="top-aligned-row"> + <td><strong>Path:</strong></td> + <td>lib/git/remote.rb + </td> + </tr> + <tr class="top-aligned-row"> + <td><strong>Last Update:</strong></td> + <td>Sun Nov 11 15:16:54 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/repository_rb.html b/doc/files/lib/git/repository_rb.html new file mode 100644 index 0000000..0880eb3 --- /dev/null +++ b/doc/files/lib/git/repository_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: repository.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>repository.rb</h1> + <table class="header-table"> + <tr class="top-aligned-row"> + <td><strong>Path:</strong></td> + <td>lib/git/repository.rb + </td> + </tr> + <tr class="top-aligned-row"> + <td><strong>Last Update:</strong></td> + <td>Thu Nov 08 17:43:06 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/status_rb.html b/doc/files/lib/git/status_rb.html new file mode 100644 index 0000000..3ebce23 --- /dev/null +++ b/doc/files/lib/git/status_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: status.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>status.rb</h1> + <table class="header-table"> + <tr class="top-aligned-row"> + <td><strong>Path:</strong></td> + <td>lib/git/status.rb + </td> + </tr> + <tr class="top-aligned-row"> + <td><strong>Last Update:</strong></td> + <td>Sun Nov 11 11:20:53 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/working_directory_rb.html b/doc/files/lib/git/working_directory_rb.html new file mode 100644 index 0000000..c90324d --- /dev/null +++ b/doc/files/lib/git/working_directory_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: working_directory.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>working_directory.rb</h1> + <table class="header-table"> + <tr class="top-aligned-row"> + <td><strong>Path:</strong></td> + <td>lib/git/working_directory.rb + </td> + </tr> + <tr class="top-aligned-row"> + <td><strong>Last Update:</strong></td> + <td>Sat Nov 10 16:15:20 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_rb.html b/doc/files/lib/git_rb.html new file mode 100644 index 0000000..49e7ce6 --- /dev/null +++ b/doc/files/lib/git_rb.html @@ -0,0 +1,127 @@ +<?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: git.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>git.rb</h1> + <table class="header-table"> + <tr class="top-aligned-row"> + <td><strong>Path:</strong></td> + <td>lib/git.rb + </td> + </tr> + <tr class="top-aligned-row"> + <td><strong>Last Update:</strong></td> + <td>Sat Nov 10 16:21:26 PST 2007</td> + </tr> + </table> + </div> + <!-- banner header --> + + <div id="bodyContent"> + + + + <div id="contextContent"> + + <div id="description"> + <p> +Add the directory containing this file to the start of the load path if it +isn’t there already. +</p> + + </div> + + <div id="requires-list"> + <h3 class="section-bar">Required files</h3> + + <div class="name-list"> + git/base + git/path + git/lib + git/repository + git/index + git/working_directory + git/log + git/object + git/branches + git/branch + git/remote + git/diff + git/status + </div> + </div> + + </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/fr_class_index.html b/doc/fr_class_index.html new file mode 100644 index 0000000..2d3002e --- /dev/null +++ b/doc/fr_class_index.html @@ -0,0 +1,49 @@ + +<?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"> + +<!-- + + Classes + + --> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head> + <title>Classes</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> + <link rel="stylesheet" href="rdoc-style.css" type="text/css" /> + <base target="docwin" /> +</head> +<body> +<div id="index"> + <h1 class="section-bar">Classes</h1> + <div id="index-entries"> + <a href="classes/Git.html">Git</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 /> + <a href="classes/Git/Diff.html">Git::Diff</a><br /> + <a href="classes/Git/Diff/DiffFile.html">Git::Diff::DiffFile</a><br /> + <a href="classes/Git/GitExecuteError.html">Git::GitExecuteError</a><br /> + <a href="classes/Git/GitTagNameDoesNotExist.html">Git::GitTagNameDoesNotExist</a><br /> + <a href="classes/Git/Index.html">Git::Index</a><br /> + <a href="classes/Git/Lib.html">Git::Lib</a><br /> + <a href="classes/Git/Log.html">Git::Log</a><br /> + <a href="classes/Git/Object.html">Git::Object</a><br /> + <a href="classes/Git/Object/AbstractObject.html">Git::Object::AbstractObject</a><br /> + <a href="classes/Git/Object/Blob.html">Git::Object::Blob</a><br /> + <a href="classes/Git/Object/Commit.html">Git::Object::Commit</a><br /> + <a href="classes/Git/Object/Tag.html">Git::Object::Tag</a><br /> + <a href="classes/Git/Object/Tree.html">Git::Object::Tree</a><br /> + <a href="classes/Git/Path.html">Git::Path</a><br /> + <a href="classes/Git/Remote.html">Git::Remote</a><br /> + <a href="classes/Git/Repository.html">Git::Repository</a><br /> + <a href="classes/Git/Status.html">Git::Status</a><br /> + <a href="classes/Git/Status/StatusFile.html">Git::Status::StatusFile</a><br /> + <a href="classes/Git/WorkingDirectory.html">Git::WorkingDirectory</a><br /> + </div> +</div> +</body> +</html>
\ No newline at end of file diff --git a/doc/fr_file_index.html b/doc/fr_file_index.html new file mode 100644 index 0000000..83c920c --- /dev/null +++ b/doc/fr_file_index.html @@ -0,0 +1,42 @@ + +<?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"> + +<!-- + + Files + + --> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head> + <title>Files</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> + <link rel="stylesheet" href="rdoc-style.css" type="text/css" /> + <base target="docwin" /> +</head> +<body> +<div id="index"> + <h1 class="section-bar">Files</h1> + <div id="index-entries"> + <a href="files/EXAMPLES.html">EXAMPLES</a><br /> + <a href="files/README.html">README</a><br /> + <a href="files/lib/git_rb.html">lib/git.rb</a><br /> + <a href="files/lib/git/base_rb.html">lib/git/base.rb</a><br /> + <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 /> + <a href="files/lib/git/diff_rb.html">lib/git/diff.rb</a><br /> + <a href="files/lib/git/index_rb.html">lib/git/index.rb</a><br /> + <a href="files/lib/git/lib_rb.html">lib/git/lib.rb</a><br /> + <a href="files/lib/git/log_rb.html">lib/git/log.rb</a><br /> + <a href="files/lib/git/object_rb.html">lib/git/object.rb</a><br /> + <a href="files/lib/git/path_rb.html">lib/git/path.rb</a><br /> + <a href="files/lib/git/remote_rb.html">lib/git/remote.rb</a><br /> + <a href="files/lib/git/repository_rb.html">lib/git/repository.rb</a><br /> + <a href="files/lib/git/status_rb.html">lib/git/status.rb</a><br /> + <a href="files/lib/git/working_directory_rb.html">lib/git/working_directory.rb</a><br /> + </div> +</div> +</body> +</html>
\ No newline at end of file diff --git a/doc/fr_method_index.html b/doc/fr_method_index.html new file mode 100644 index 0000000..4a3b21f --- /dev/null +++ b/doc/fr_method_index.html @@ -0,0 +1,179 @@ + +<?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"> + +<!-- + + Methods + + --> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head> + <title>Methods</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> + <link rel="stylesheet" href="rdoc-style.css" type="text/css" /> + <base target="docwin" /> +</head> +<body> +<div id="index"> + <h1 class="section-bar">Methods</h1> + <div id="index-entries"> + <a href="classes/Git/Branches.html#M000065">[] (Git::Branches)</a><br /> + <a href="classes/Git/Status.html#M000011">[] (Git::Status)</a><br /> + <a href="classes/Git/Diff.html#M000143">[] (Git::Diff)</a><br /> + <a href="classes/Git/Base.html#M000099">add (Git::Base)</a><br /> + <a href="classes/Git/Lib.html#M000044">add (Git::Lib)</a><br /> + <a href="classes/Git/Base.html#M000110">add_remote (Git::Base)</a><br /> + <a href="classes/Git/Base.html#M000113">add_tag (Git::Base)</a><br /> + <a href="classes/Git/Status.html#M000007">added (Git::Status)</a><br /> + <a href="classes/Git.html#M000001">bare (Git)</a><br /> + <a href="classes/Git/Base.html#M000076">bare (Git::Base)</a><br /> + <a href="classes/Git/Log.html#M000019">between (Git::Log)</a><br /> + <a href="classes/Git/Diff/DiffFile.html#M000146">blob (Git::Diff::DiffFile)</a><br /> + <a href="classes/Git/Status/StatusFile.html#M000014">blob (Git::Status::StatusFile)</a><br /> + <a href="classes/Git/Remote.html#M000151">branch (Git::Remote)</a><br /> + <a href="classes/Git/Base.html#M000094">branch (Git::Base)</a><br /> + <a href="classes/Git/Lib.html#M000033">branch_current (Git::Lib)</a><br /> + <a href="classes/Git/Lib.html#M000049">branch_delete (Git::Lib)</a><br /> + <a href="classes/Git/Lib.html#M000048">branch_new (Git::Lib)</a><br /> + <a href="classes/Git/Base.html#M000093">branches (Git::Base)</a><br /> + <a href="classes/Git/Lib.html#M000032">branches_all (Git::Lib)</a><br /> + <a href="classes/Git/Status.html#M000006">changed (Git::Status)</a><br /> + <a href="classes/Git/Base.html#M000084">chdir (Git::Base)</a><br /> + <a href="classes/Git/Lib.html#M000050">checkout (Git::Lib)</a><br /> + <a href="classes/Git/Base.html#M000105">checkout (Git::Base)</a><br /> + <a href="classes/Git/Branch.html#M000068">checkout (Git::Branch)</a><br /> + <a href="classes/Git/Lib.html#M000026">clone (Git::Lib)</a><br /> + <a href="classes/Git.html#M000004">clone (Git)</a><br /> + <a href="classes/Git/Base.html#M000079">clone (Git::Base)</a><br /> + <a href="classes/Git/Lib.html#M000046">commit (Git::Lib)</a><br /> + <a href="classes/Git/Base.html#M000103">commit (Git::Base)</a><br /> + <a href="classes/Git/Base.html#M000104">commit_all (Git::Base)</a><br /> + <a href="classes/Git/Base.html#M000086">config (Git::Base)</a><br /> + <a href="classes/Git/Lib.html#M000041">config_get (Git::Lib)</a><br /> + <a href="classes/Git/Lib.html#M000042">config_list (Git::Lib)</a><br /> + <a href="classes/Git/Lib.html#M000040">config_remote (Git::Lib)</a><br /> + <a href="classes/Git/Lib.html#M000043">config_set (Git::Lib)</a><br /> + <a href="classes/Git/Object/AbstractObject.html#M000123">contents (Git::Object::AbstractObject)</a><br /> + <a href="classes/Git/Object/AbstractObject.html#M000124">contents_array (Git::Object::AbstractObject)</a><br /> + <a href="classes/Git/Branch.html#M000070">create (Git::Branch)</a><br /> + <a href="classes/Git/Branch.html#M000072">current (Git::Branch)</a><br /> + <a href="classes/Git/Base.html#M000116">current_branch (Git::Base)</a><br /> + <a href="classes/Git/Branch.html#M000071">delete (Git::Branch)</a><br /> + <a href="classes/Git/Status.html#M000008">deleted (Git::Status)</a><br /> + <a href="classes/Git/Diff.html#M000138">deletions (Git::Diff)</a><br /> + <a href="classes/Git/Base.html#M000098">diff (Git::Base)</a><br /> + <a href="classes/Git/Object/AbstractObject.html#M000128">diff (Git::Object::AbstractObject)</a><br /> + <a href="classes/Git/Lib.html#M000037">diff_files (Git::Lib)</a><br /> + <a href="classes/Git/Lib.html#M000035">diff_full (Git::Lib)</a><br /> + <a href="classes/Git/Lib.html#M000038">diff_index (Git::Lib)</a><br /> + <a href="classes/Git/Lib.html#M000036">diff_stats (Git::Lib)</a><br /> + <a href="classes/Git/Base.html#M000081">dir (Git::Base)</a><br /> + <a href="classes/Git/Log.html#M000022">each (Git::Log)</a><br /> + <a href="classes/Git/Status.html#M000012">each (Git::Status)</a><br /> + <a href="classes/Git/Diff.html#M000144">each (Git::Diff)</a><br /> + <a href="classes/Git/Branches.html#M000064">each (Git::Branches)</a><br /> + <a href="classes/Git/Remote.html#M000149">fetch (Git::Remote)</a><br /> + <a href="classes/Git/Lib.html#M000057">fetch (Git::Lib)</a><br /> + <a href="classes/Git/Base.html#M000106">fetch (Git::Base)</a><br /> + <a href="classes/Git/Log.html#M000023">first (Git::Log)</a><br /> + <a href="classes/Git/Base.html#M000090">gblob (Git::Base)</a><br /> + <a href="classes/Git/Branch.html#M000067">gcommit (Git::Branch)</a><br /> + <a href="classes/Git/Base.html#M000089">gcommit (Git::Base)</a><br /> + <a href="classes/Git/Object/AbstractObject.html#M000127">grep (Git::Object::AbstractObject)</a><br /> + <a href="classes/Git/Lib.html#M000034">grep (Git::Lib)</a><br /> + <a href="classes/Git/Base.html#M000097">grep (Git::Base)</a><br /> + <a href="classes/Git/Base.html#M000088">gtree (Git::Base)</a><br /> + <a href="classes/Git/Branch.html#M000069">in_branch (Git::Branch)</a><br /> + <a href="classes/Git/Base.html#M000083">index (Git::Base)</a><br /> + <a href="classes/Git/Lib.html#M000025">init (Git::Lib)</a><br /> + <a href="classes/Git/Base.html#M000078">init (Git::Base)</a><br /> + <a href="classes/Git.html#M000003">init (Git)</a><br /> + <a href="classes/Git/Diff.html#M000139">insertions (Git::Diff)</a><br /> + <a href="classes/Git/Base.html#M000096">lib (Git::Base)</a><br /> + <a href="classes/Git/Diff.html#M000137">lines (Git::Diff)</a><br /> + <a href="classes/Git/Branches.html#M000061">local (Git::Branches)</a><br /> + <a href="classes/Git/Base.html#M000091">log (Git::Base)</a><br /> + <a href="classes/Git/Object/AbstractObject.html#M000129">log (Git::Object::AbstractObject)</a><br /> + <a href="classes/Git/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/Lib.html#M000051">merge (Git::Lib)</a><br /> + <a href="classes/Git/Branch.html#M000073">merge (Git::Branch)</a><br /> + <a href="classes/Git/Remote.html#M000150">merge (Git::Remote)</a><br /> + <a href="classes/Git/Base.html#M000107">merge (Git::Base)</a><br /> + <a href="classes/Git/Remote.html#M000147">new (Git::Remote)</a><br /> + <a href="classes/Git/Status/StatusFile.html#M000013">new (Git::Status::StatusFile)</a><br /> + <a href="classes/Git/Diff.html#M000134">new (Git::Diff)</a><br /> + <a href="classes/Git/Branch.html#M000066">new (Git::Branch)</a><br /> + <a href="classes/Git/Diff/DiffFile.html#M000145">new (Git::Diff::DiffFile)</a><br /> + <a href="classes/Git/Object/Tag.html#M000130">new (Git::Object::Tag)</a><br /> + <a href="classes/Git/Base.html#M000080">new (Git::Base)</a><br /> + <a href="classes/Git/Log.html#M000015">new (Git::Log)</a><br /> + <a href="classes/Git/Object/AbstractObject.html#M000122">new (Git::Object::AbstractObject)</a><br /> + <a href="classes/Git/Lib.html#M000024">new (Git::Lib)</a><br /> + <a href="classes/Git/Object.html#M000120">new (Git::Object)</a><br /> + <a href="classes/Git/Status.html#M000005">new (Git::Status)</a><br /> + <a href="classes/Git/Branches.html#M000060">new (Git::Branches)</a><br /> + <a href="classes/Git/Path.html#M000117">new (Git::Path)</a><br /> + <a href="classes/Git/Log.html#M000016">object (Git::Log)</a><br /> + <a href="classes/Git/Base.html#M000087">object (Git::Base)</a><br /> + <a href="classes/Git/Lib.html#M000031">object_contents (Git::Lib)</a><br /> + <a href="classes/Git/Lib.html#M000030">object_size (Git::Lib)</a><br /> + <a href="classes/Git/Lib.html#M000029">object_type (Git::Lib)</a><br /> + <a href="classes/Git.html#M000002">open (Git)</a><br /> + <a href="classes/Git/Base.html#M000077">open (Git::Base)</a><br /> + <a href="classes/Git/Diff.html#M000141">patch (Git::Diff)</a><br /> + <a href="classes/Git/Diff.html#M000135">path (Git::Diff)</a><br /> + <a href="classes/Git/Log.html#M000017">path (Git::Log)</a><br /> + <a href="classes/Git/Status.html#M000010">pretty (Git::Status)</a><br /> + <a href="classes/Git/Base.html#M000108">pull (Git::Base)</a><br /> + <a href="classes/Git/Path.html#M000118">readable? (Git::Path)</a><br /> + <a href="classes/Git/Branches.html#M000062">remote (Git::Branches)</a><br /> + <a href="classes/Git/Base.html#M000095">remote (Git::Base)</a><br /> + <a href="classes/Git/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/Lib.html#M000054">remotes (Git::Lib)</a><br /> + <a href="classes/Git/Base.html#M000109">remotes (Git::Base)</a><br /> + <a href="classes/Git/Base.html#M000100">remove (Git::Base)</a><br /> + <a href="classes/Git/Remote.html#M000152">remove (Git::Remote)</a><br /> + <a href="classes/Git/Remote.html#M000148">remove (Git::Remote)</a><br /> + <a href="classes/Git/Lib.html#M000045">remove (Git::Lib)</a><br /> + <a href="classes/Git/Lib.html#M000059">repack (Git::Lib)</a><br /> + <a href="classes/Git/Base.html#M000114">repack (Git::Base)</a><br /> + <a href="classes/Git/Base.html#M000082">repo (Git::Base)</a><br /> + <a href="classes/Git/Base.html#M000085">repo_size (Git::Base)</a><br /> + <a href="classes/Git/Base.html#M000101">reset (Git::Base)</a><br /> + <a href="classes/Git/Lib.html#M000047">reset (Git::Lib)</a><br /> + <a href="classes/Git/Base.html#M000102">reset_hard (Git::Base)</a><br /> + <a href="classes/Git/Base.html#M000115">revparse (Git::Base)</a><br /> + <a href="classes/Git/Lib.html#M000028">revparse (Git::Lib)</a><br /> + <a href="classes/Git/Object/Blob.html#M000132">setup (Git::Object::Blob)</a><br /> + <a href="classes/Git/Object/Tag.html#M000131">setup (Git::Object::Tag)</a><br /> + <a href="classes/Git/Object/Commit.html#M000121">setup (Git::Object::Commit)</a><br /> + <a href="classes/Git/Object/AbstractObject.html#M000125">setup (Git::Object::AbstractObject)</a><br /> + <a href="classes/Git/Object/Tree.html#M000133">setup (Git::Object::Tree)</a><br /> + <a href="classes/Git/Log.html#M000018">since (Git::Log)</a><br /> + <a href="classes/Git/Log.html#M000021">size (Git::Log)</a><br /> + <a href="classes/Git/Diff.html#M000136">size (Git::Diff)</a><br /> + <a href="classes/Git/Branches.html#M000063">size (Git::Branches)</a><br /> + <a href="classes/Git/Diff.html#M000140">stats (Git::Diff)</a><br /> + <a href="classes/Git/Base.html#M000092">status (Git::Base)</a><br /> + <a href="classes/Git/Base.html#M000112">tag (Git::Base)</a><br /> + <a href="classes/Git/Lib.html#M000056">tag (Git::Lib)</a><br /> + <a href="classes/Git/Lib.html#M000058">tag_sha (Git::Lib)</a><br /> + <a href="classes/Git/Lib.html#M000055">tags (Git::Lib)</a><br /> + <a href="classes/Git/Base.html#M000111">tags (Git::Base)</a><br /> + <a href="classes/Git/Branch.html#M000074">to_a (Git::Branch)</a><br /> + <a href="classes/Git/Diff.html#M000142">to_s (Git::Diff)</a><br /> + <a href="classes/Git/Object/AbstractObject.html#M000126">to_s (Git::Object::AbstractObject)</a><br /> + <a href="classes/Git/Branch.html#M000075">to_s (Git::Branch)</a><br /> + <a href="classes/Git/Log.html#M000020">to_s (Git::Log)</a><br /> + <a href="classes/Git/Remote.html#M000153">to_s (Git::Remote)</a><br /> + <a href="classes/Git/Status.html#M000009">untracked (Git::Status)</a><br /> + <a href="classes/Git/Path.html#M000119">writable? (Git::Path)</a><br /> + </div> +</div> +</body> +</html>
\ No newline at end of file diff --git a/doc/index.html b/doc/index.html new file mode 100644 index 0000000..fa5d583 --- /dev/null +++ b/doc/index.html @@ -0,0 +1,24 @@ +<?xml version="1.0" encoding="iso-8859-1"?> +<!DOCTYPE html + PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" + "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd"> + +<!-- + + RDoc Documentation + + --> +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head> + <title>RDoc Documentation</title> + <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> +</head> +<frameset rows="20%, 80%"> + <frameset cols="25%,35%,45%"> + <frame src="fr_file_index.html" title="Files" name="Files" /> + <frame src="fr_class_index.html" name="Classes" /> + <frame src="fr_method_index.html" name="Methods" /> + </frameset> + <frame src="files/README.html" name="docwin" /> +</frameset> +</html>
\ No newline at end of file diff --git a/doc/rdoc-style.css b/doc/rdoc-style.css new file mode 100644 index 0000000..44c7b3d --- /dev/null +++ b/doc/rdoc-style.css @@ -0,0 +1,208 @@ + +body { + font-family: Verdana,Arial,Helvetica,sans-serif; + font-size: 90%; + margin: 0; + margin-left: 40px; + padding: 0; + background: white; +} + +h1,h2,h3,h4 { margin: 0; color: #efefef; background: transparent; } +h1 { font-size: 150%; } +h2,h3,h4 { margin-top: 1em; } + +a { background: #eef; color: #039; text-decoration: none; } +a:hover { background: #039; color: #eef; } + +/* Override the base stylesheet's Anchor inside a table cell */ +td > a { + background: transparent; + color: #039; + text-decoration: none; +} + +/* and inside a section title */ +.section-title > a { + background: transparent; + color: #eee; + text-decoration: none; +} + +/* === Structural elements =================================== */ + +div#index { + margin: 0; + margin-left: -40px; + padding: 0; + font-size: 90%; +} + + +div#index a { + margin-left: 0.7em; +} + +div#index .section-bar { + margin-left: 0px; + padding-left: 0.7em; + background: #ccc; + font-size: small; +} + + +div#classHeader, div#fileHeader { + width: auto; + color: white; + padding: 0.5em 1.5em 0.5em 1.5em; + margin: 0; + margin-left: -40px; + border-bottom: 3px solid #006; +} + +div#classHeader a, div#fileHeader a { + background: inherit; + color: white; +} + +div#classHeader td, div#fileHeader td { + background: inherit; + color: white; +} + + +div#fileHeader { + background: #057; +} + +div#classHeader { + background: #048; +} + + +.class-name-in-header { + font-size: 180%; + font-weight: bold; +} + + +div#bodyContent { + padding: 0 1.5em 0 1.5em; +} + +div#description { + padding: 0.5em 1.5em; + background: #efefef; + border: 1px dotted #999; +} + +div#description h1,h2,h3,h4,h5,h6 { + color: #125;; + background: transparent; +} + +div#validator-badges { + text-align: center; +} +div#validator-badges img { border: 0; } + +div#copyright { + color: #333; + background: #efefef; + font: 0.75em sans-serif; + margin-top: 5em; + margin-bottom: 0; + padding: 0.5em 2em; +} + + +/* === Classes =================================== */ + +table.header-table { + color: white; + font-size: small; +} + +.type-note { + font-size: small; + color: #DEDEDE; +} + +.xxsection-bar { + background: #eee; + color: #333; + padding: 3px; +} + +.section-bar { + color: #333; + border-bottom: 1px solid #999; + margin-left: -20px; +} + + +.section-title { + background: #79a; + color: #eee; + padding: 3px; + margin-top: 2em; + margin-left: -30px; + border: 1px solid #999; +} + +.top-aligned-row { vertical-align: top } +.bottom-aligned-row { vertical-align: bottom } + +/* --- Context section classes ----------------------- */ + +.context-row { } +.context-item-name { font-family: monospace; font-weight: bold; color: black; } +.context-item-value { font-size: small; color: #448; } +.context-item-desc { color: #333; padding-left: 2em; } + +/* --- Method classes -------------------------- */ +.method-detail { + background: #efefef; + padding: 0; + margin-top: 0.5em; + margin-bottom: 1em; + border: 1px dotted #ccc; +} +.method-heading { + color: black; + background: #ccc; + border-bottom: 1px solid #666; + padding: 0.2em 0.5em 0 0.5em; +} +.method-signature { color: black; background: inherit; } +.method-name { font-weight: bold; } +.method-args { font-style: italic; } +.method-description { padding: 0 0.5em 0 0.5em; } + +/* --- Source code sections -------------------- */ + +a.source-toggle { font-size: 90%; } +div.method-source-code { + background: #262626; + color: #ffdead; + margin: 1em; + padding: 0.5em; + border: 1px dashed #999; + overflow: hidden; +} + +div.method-source-code pre { color: #ffdead; overflow: hidden; } + +/* --- Ruby keyword styles --------------------- */ + +.standalone-code { background: #221111; color: #ffdead; overflow: hidden; } + +.ruby-constant { color: #7fffd4; background: transparent; } +.ruby-keyword { color: #00ffff; background: transparent; } +.ruby-ivar { color: #eedd82; background: transparent; } +.ruby-operator { color: #00ffee; background: transparent; } +.ruby-identifier { color: #ffdead; background: transparent; } +.ruby-node { color: #ffa07a; background: transparent; } +.ruby-comment { color: #b22222; font-weight: bold; background: transparent; } +.ruby-regexp { color: #ffa07a; background: transparent; } +.ruby-value { color: #7fffd4; background: transparent; }
\ No newline at end of file |