summaryrefslogtreecommitdiffstats
path: root/doc/files
diff options
context:
space:
mode:
Diffstat (limited to 'doc/files')
-rw-r--r--doc/files/README.html51
-rw-r--r--doc/files/lib/git/author_rb.html101
-rw-r--r--doc/files/lib/git/base_rb.html2
-rw-r--r--doc/files/lib/git/lib_rb.html2
-rw-r--r--doc/files/lib/git/object_rb.html2
-rw-r--r--doc/files/lib/git_rb.html3
6 files changed, 156 insertions, 5 deletions
diff --git a/doc/files/README.html b/doc/files/README.html
index 0a797bb..0832d66 100644
--- a/doc/files/README.html
+++ b/doc/files/README.html
@@ -56,7 +56,7 @@
</tr>
<tr class="top-aligned-row">
<td><strong>Last Update:</strong></td>
- <td>Mon Nov 12 11:07:58 PST 2007</td>
+ <td>Tue Nov 13 06:53:10 PST 2007</td>
</tr>
</table>
</div>
@@ -95,6 +95,39 @@ eventually I&#8217;ll replace that with either C bindings to libgit or
libgit-thin, or I&#8217;ll write pure ruby handlers for at least some of
the <a href="../classes/Git.html">Git</a> stuff.
</p>
+<h1>Major Objects</h1>
+<p>
+<a href="../classes/Git/Base.html">Git::Base</a> - this is the object
+returned from a <a href="../classes/Git.html#M000002">Git.open</a> or <a
+href="../classes/Git.html#M000004">Git.clone</a>. Most major actions are
+called from this object.
+</p>
+<p>
+<a href="../classes/Git/Object.html">Git::Object</a> - this is the base
+object for your tree, blob and commit objects, returned from @git.gtree or
+@git.object calls. the Git::AbstractObject will have most of the calls in
+common for all those objects.
+</p>
+<p>
+<a href="../classes/Git/Diff.html">Git::Diff</a> - returns from a @git.diff
+command. It is an Enumerable that returns <a
+href="../classes/Git/Diff.html">Git::Diff</a>:DiffFile objects from which
+you can get per file patches and insertion/deletion statistics. You can
+also get total statistics from the <a
+href="../classes/Git/Diff.html">Git::Diff</a> object directly.
+</p>
+<p>
+<a href="../classes/Git/Status.html">Git::Status</a>
+</p>
+<p>
+<a href="../classes/Git/Branches.html">Git::Branches</a>
+</p>
+<p>
+<a href="../classes/Git/Remote.html">Git::Remote</a>
+</p>
+<p>
+<a href="../classes/Git/Log.html">Git::Log</a>
+</p>
<h1>Examples</h1>
<p>
Here are a bunch of examples of how to use the Ruby/<a
@@ -136,6 +169,22 @@ Here are the operations that need read permission only.
g.gblob(treeish)
g.gcommit(treeish)
+ commit = g.gcommit('1cc8667014381')
+ commit.gtree
+ commit.parent.sha
+ commit.parents.size
+ commit.author.name
+ commit.author.email
+ commit.author.date.strftime(&quot;%m-%d-%y&quot;)
+ commit.committer.name
+ commit.date.strftime(&quot;%m-%d-%y&quot;)
+ commit.message
+
+ tree = g.gtree(&quot;HEAD^{tree}&quot;)
+ tree.blobs
+ tree.subtrees
+ tree.children # blobs and subtrees
+
g.revparse('v2.5:Makefile')
g.branches # returns Git::Branch objects
diff --git a/doc/files/lib/git/author_rb.html b/doc/files/lib/git/author_rb.html
new file mode 100644
index 0000000..3453fa4
--- /dev/null
+++ b/doc/files/lib/git/author_rb.html
@@ -0,0 +1,101 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE html
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+ <title>File: author.rb</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+ <meta http-equiv="Content-Script-Type" content="text/javascript" />
+ <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
+ <script type="text/javascript">
+ // <![CDATA[
+
+ function popupCode( url ) {
+ window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
+ }
+
+ function toggleCode( id ) {
+ if ( document.getElementById )
+ elem = document.getElementById( id );
+ else if ( document.all )
+ elem = eval( "document.all." + id );
+ else
+ return false;
+
+ elemStyle = elem.style;
+
+ if ( elemStyle.display != "block" ) {
+ elemStyle.display = "block"
+ } else {
+ elemStyle.display = "none"
+ }
+
+ return true;
+ }
+
+ // Make codeblocks hidden by default
+ document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
+
+ // ]]>
+ </script>
+
+</head>
+<body>
+
+
+
+ <div id="fileHeader">
+ <h1>author.rb</h1>
+ <table class="header-table">
+ <tr class="top-aligned-row">
+ <td><strong>Path:</strong></td>
+ <td>lib/git/author.rb
+ </td>
+ </tr>
+ <tr class="top-aligned-row">
+ <td><strong>Last Update:</strong></td>
+ <td>Mon Nov 12 17:21:28 PST 2007</td>
+ </tr>
+ </table>
+ </div>
+ <!-- banner header -->
+
+ <div id="bodyContent">
+
+
+
+ <div id="contextContent">
+
+
+
+ </div>
+
+
+ </div>
+
+
+ <!-- if includes -->
+
+ <div id="section">
+
+
+
+
+
+
+
+
+ <!-- if method_list -->
+
+
+ </div>
+
+
+<div id="validator-badges">
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
+</div>
+
+</body>
+</html> \ No newline at end of file
diff --git a/doc/files/lib/git/base_rb.html b/doc/files/lib/git/base_rb.html
index 980bf39..b88352c 100644
--- a/doc/files/lib/git/base_rb.html
+++ b/doc/files/lib/git/base_rb.html
@@ -56,7 +56,7 @@
</tr>
<tr class="top-aligned-row">
<td><strong>Last Update:</strong></td>
- <td>Mon Nov 12 10:49:59 PST 2007</td>
+ <td>Tue Nov 13 07:35:24 PST 2007</td>
</tr>
</table>
</div>
diff --git a/doc/files/lib/git/lib_rb.html b/doc/files/lib/git/lib_rb.html
index ff92663..2462126 100644
--- a/doc/files/lib/git/lib_rb.html
+++ b/doc/files/lib/git/lib_rb.html
@@ -56,7 +56,7 @@
</tr>
<tr class="top-aligned-row">
<td><strong>Last Update:</strong></td>
- <td>Mon Nov 12 10:50:14 PST 2007</td>
+ <td>Mon Nov 12 17:40:54 PST 2007</td>
</tr>
</table>
</div>
diff --git a/doc/files/lib/git/object_rb.html b/doc/files/lib/git/object_rb.html
index 8ea73f7..b1cfe7d 100644
--- a/doc/files/lib/git/object_rb.html
+++ b/doc/files/lib/git/object_rb.html
@@ -56,7 +56,7 @@
</tr>
<tr class="top-aligned-row">
<td><strong>Last Update:</strong></td>
- <td>Sun Nov 11 15:59:01 PST 2007</td>
+ <td>Tue Nov 13 06:37:18 PST 2007</td>
</tr>
</table>
</div>
diff --git a/doc/files/lib/git_rb.html b/doc/files/lib/git_rb.html
index 8864d94..192691a 100644
--- a/doc/files/lib/git_rb.html
+++ b/doc/files/lib/git_rb.html
@@ -56,7 +56,7 @@
</tr>
<tr class="top-aligned-row">
<td><strong>Last Update:</strong></td>
- <td>Mon Nov 12 10:59:30 PST 2007</td>
+ <td>Tue Nov 13 07:04:48 PST 2007</td>
</tr>
</table>
</div>
@@ -93,6 +93,7 @@ isn&#8217;t there already.
git/remote&nbsp;&nbsp;
git/diff&nbsp;&nbsp;
git/status&nbsp;&nbsp;
+ git/author&nbsp;&nbsp;
</div>
</div>