1 <?xml version=
"1.0" encoding=
"iso-8859-1"?>
3 PUBLIC
"-//W3C//DTD XHTML 1.0 Transitional//EN"
4 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
6 <html xmlns=
"http://www.w3.org/1999/xhtml" xml:
lang=
"en" lang=
"en">
8 <title>Module: Git
</title>
9 <meta http-equiv=
"Content-Type" content=
"text/html; charset=iso-8859-1" />
10 <meta http-equiv=
"Content-Script-Type" content=
"text/javascript" />
11 <link rel=
"stylesheet" href=
".././rdoc-style.css" type=
"text/css" media=
"screen" />
12 <script type=
"text/javascript">
15 function popupCode( url ) {
16 window.open(url,
"Code",
"resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
19 function toggleCode( id ) {
20 if ( document.getElementById )
21 elem = document.getElementById( id );
22 else if ( document.all )
23 elem = eval(
"document.all." + id );
27 elemStyle = elem.style;
29 if ( elemStyle.display !=
"block" ) {
30 elemStyle.display =
"block"
32 elemStyle.display =
"none"
38 // Make codeblocks hidden by default
39 document.writeln(
"<style type=\"text/css\
">div.method-source-code { display: none }</style>" )
49 <div id=
"classHeader">
50 <table class=
"header-table">
51 <tr class=
"top-aligned-row">
52 <td><strong>Module
</strong></td>
53 <td class=
"class-name-in-header">Git
</td>
55 <tr class=
"top-aligned-row">
56 <td><strong>In:
</strong></td>
58 <a href=
"../files/lib/git/base_rb.html">
62 <a href=
"../files/lib/git/branch_rb.html">
66 <a href=
"../files/lib/git/branches_rb.html">
70 <a href=
"../files/lib/git/diff_rb.html">
74 <a href=
"../files/lib/git/index_rb.html">
78 <a href=
"../files/lib/git/lib_rb.html">
82 <a href=
"../files/lib/git/log_rb.html">
86 <a href=
"../files/lib/git/object_rb.html">
90 <a href=
"../files/lib/git/path_rb.html">
94 <a href=
"../files/lib/git/remote_rb.html">
98 <a href=
"../files/lib/git/repository_rb.html">
102 <a href=
"../files/lib/git/status_rb.html">
106 <a href=
"../files/lib/git/working_directory_rb.html">
107 lib/git/working_directory.rb
110 <a href=
"../files/lib/git_rb.html">
119 <!-- banner header -->
121 <div id=
"bodyContent">
125 <div id=
"contextContent">
131 <div id=
"method-list">
132 <h3 class=
"section-bar">Methods
</h3>
134 <div class=
"name-list">
135 <a href=
"#M000001">bare
</a>
136 <a href=
"#M000004">clone
</a>
137 <a href=
"#M000003">init
</a>
138 <a href=
"#M000002">open
</a>
149 <div id=
"class-list">
150 <h3 class=
"section-bar">Classes and Modules
</h3>
152 Class
<a href=
"Git/Base.html" class=
"link">Git::Base
</a><br />
153 Class
<a href=
"Git/Branch.html" class=
"link">Git::Branch
</a><br />
154 Class
<a href=
"Git/Branches.html" class=
"link">Git::Branches
</a><br />
155 Class
<a href=
"Git/Diff.html" class=
"link">Git::Diff
</a><br />
156 Class
<a href=
"Git/GitExecuteError.html" class=
"link">Git::GitExecuteError
</a><br />
157 Class
<a href=
"Git/GitTagNameDoesNotExist.html" class=
"link">Git::GitTagNameDoesNotExist
</a><br />
158 Class
<a href=
"Git/Index.html" class=
"link">Git::Index
</a><br />
159 Class
<a href=
"Git/Lib.html" class=
"link">Git::Lib
</a><br />
160 Class
<a href=
"Git/Log.html" class=
"link">Git::Log
</a><br />
161 Class
<a href=
"Git/Object.html" class=
"link">Git::Object
</a><br />
162 Class
<a href=
"Git/Path.html" class=
"link">Git::Path
</a><br />
163 Class
<a href=
"Git/Remote.html" class=
"link">Git::Remote
</a><br />
164 Class
<a href=
"Git/Repository.html" class=
"link">Git::Repository
</a><br />
165 Class
<a href=
"Git/Status.html" class=
"link">Git::Status
</a><br />
166 Class
<a href=
"Git/WorkingDirectory.html" class=
"link">Git::WorkingDirectory
</a><br />
176 <!-- if method_list -->
178 <h3 class=
"section-bar">Public Class methods
</h3>
180 <div id=
"method-M000001" class=
"method-detail">
181 <a name=
"M000001"></a>
183 <div class=
"method-heading">
184 <a href=
"#M000001" class=
"method-signature">
185 <span class=
"method-name">bare
</span><span class=
"method-args">(git_dir)
</span>
189 <div class=
"method-description">
190 <p><a class=
"source-toggle" href=
"#"
191 onclick=
"toggleCode('M000001-source');return false;">[Source]
</a></p>
192 <div class=
"method-source-code" id=
"M000001-source">
194 <span class=
"ruby-comment cmt"># File lib/git.rb, line
34</span>
195 <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>)
196 <span class=
"ruby-constant">Base
</span>.
<span class=
"ruby-identifier">bare
</span>(
<span class=
"ruby-identifier">git_dir
</span>)
197 <span class=
"ruby-keyword kw">end
</span>
203 <div id=
"method-M000004" class=
"method-detail">
204 <a name=
"M000004"></a>
206 <div class=
"method-heading">
207 <a href=
"#M000004" class=
"method-signature">
208 <span class=
"method-name">clone
</span><span class=
"method-args">(repository, name, options = {})
</span>
212 <div class=
"method-description">
213 <p><a class=
"source-toggle" href=
"#"
214 onclick=
"toggleCode('M000004-source');return false;">[Source]
</a></p>
215 <div class=
"method-source-code" id=
"M000004-source">
217 <span class=
"ruby-comment cmt"># File lib/git.rb, line
46</span>
218 <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> = {})
219 <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>)
220 <span class=
"ruby-keyword kw">end
</span>
226 <div id=
"method-M000003" class=
"method-detail">
227 <a name=
"M000003"></a>
229 <div class=
"method-heading">
230 <a href=
"#M000003" class=
"method-signature">
231 <span class=
"method-name">init
</span><span class=
"method-args">(working_dir = '.', options = {})
</span>
235 <div class=
"method-description">
236 <p><a class=
"source-toggle" href=
"#"
237 onclick=
"toggleCode('M000003-source');return false;">[Source]
</a></p>
238 <div class=
"method-source-code" id=
"M000003-source">
240 <span class=
"ruby-comment cmt"># File lib/git.rb, line
42</span>
241 <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> = {})
242 <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>)
243 <span class=
"ruby-keyword kw">end
</span>
249 <div id=
"method-M000002" class=
"method-detail">
250 <a name=
"M000002"></a>
252 <div class=
"method-heading">
253 <a href=
"#M000002" class=
"method-signature">
254 <span class=
"method-name">open
</span><span class=
"method-args">(working_dir, options = {})
</span>
258 <div class=
"method-description">
259 <p><a class=
"source-toggle" href=
"#"
260 onclick=
"toggleCode('M000002-source');return false;">[Source]
</a></p>
261 <div class=
"method-source-code" id=
"M000002-source">
263 <span class=
"ruby-comment cmt"># File lib/git.rb, line
38</span>
264 <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> = {})
265 <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>)
266 <span class=
"ruby-keyword kw">end
</span>
279 <div id=
"validator-badges">
280 <p><small><a href=
"http://validator.w3.org/check/referer">[Validate]
</a></small></p>