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>Class: Git::Remote
</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>Class
</strong></td>
53 <td class=
"class-name-in-header">Git::Remote
</td>
55 <tr class=
"top-aligned-row">
56 <td><strong>In:
</strong></td>
58 <a href=
"../../files/lib/git/remote_rb.html">
65 <tr class=
"top-aligned-row">
66 <td><strong>Parent:
</strong></td>
75 <!-- banner header -->
77 <div id=
"bodyContent">
81 <div id=
"contextContent">
87 <div id=
"method-list">
88 <h3 class=
"section-bar">Methods
</h3>
90 <div class=
"name-list">
91 <a href=
"#M000170">branch
</a>
92 <a href=
"#M000168">fetch
</a>
93 <a href=
"#M000169">merge
</a>
94 <a href=
"#M000166">new
</a>
95 <a href=
"#M000167">remove
</a>
96 <a href=
"#M000171">remove
</a>
97 <a href=
"#M000172">to_s
</a>
112 <div id=
"attribute-list">
113 <h3 class=
"section-bar">Attributes
</h3>
115 <div class=
"name-list">
117 <tr class=
"top-aligned-row context-row">
118 <td class=
"context-item-name">fetch_opts
</td>
119 <td class=
"context-item-value"> [RW]
</td>
120 <td class=
"context-item-desc"></td>
122 <tr class=
"top-aligned-row context-row">
123 <td class=
"context-item-name">name
</td>
124 <td class=
"context-item-value"> [RW]
</td>
125 <td class=
"context-item-desc"></td>
127 <tr class=
"top-aligned-row context-row">
128 <td class=
"context-item-name">url
</td>
129 <td class=
"context-item-value"> [RW]
</td>
130 <td class=
"context-item-desc"></td>
138 <!-- if method_list -->
140 <h3 class=
"section-bar">Public Class methods
</h3>
142 <div id=
"method-M000166" class=
"method-detail">
143 <a name=
"M000166"></a>
145 <div class=
"method-heading">
146 <a href=
"#M000166" class=
"method-signature">
147 <span class=
"method-name">new
</span><span class=
"method-args">(base, name)
</span>
151 <div class=
"method-description">
152 <p><a class=
"source-toggle" href=
"#"
153 onclick=
"toggleCode('M000166-source');return false;">[Source]
</a></p>
154 <div class=
"method-source-code" id=
"M000166-source">
156 <span class=
"ruby-comment cmt"># File lib/git/remote.rb, line
8</span>
157 <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>)
158 <span class=
"ruby-ivar">@base
</span> =
<span class=
"ruby-identifier">base
</span>
159 <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>)
160 <span class=
"ruby-ivar">@name
</span> =
<span class=
"ruby-identifier">name
</span>
161 <span class=
"ruby-ivar">@url
</span> =
<span class=
"ruby-identifier">config
</span>[
<span class=
"ruby-value str">'url'
</span>]
162 <span class=
"ruby-ivar">@fetch_opts
</span> =
<span class=
"ruby-identifier">config
</span>[
<span class=
"ruby-value str">'fetch'
</span>]
163 <span class=
"ruby-keyword kw">end
</span>
169 <h3 class=
"section-bar">Public Instance methods
</h3>
171 <div id=
"method-M000170" class=
"method-detail">
172 <a name=
"M000170"></a>
174 <div class=
"method-heading">
175 <a href=
"#M000170" class=
"method-signature">
176 <span class=
"method-name">branch
</span><span class=
"method-args">(branch = 'master')
</span>
180 <div class=
"method-description">
181 <p><a class=
"source-toggle" href=
"#"
182 onclick=
"toggleCode('M000170-source');return false;">[Source]
</a></p>
183 <div class=
"method-source-code" id=
"M000170-source">
185 <span class=
"ruby-comment cmt"># File lib/git/remote.rb, line
29</span>
186 <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>)
187 <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>)
188 <span class=
"ruby-keyword kw">end
</span>
194 <div id=
"method-M000168" class=
"method-detail">
195 <a name=
"M000168"></a>
197 <div class=
"method-heading">
198 <a href=
"#M000168" class=
"method-signature">
199 <span class=
"method-name">fetch
</span><span class=
"method-args">()
</span>
203 <div class=
"method-description">
204 <p><a class=
"source-toggle" href=
"#"
205 onclick=
"toggleCode('M000168-source');return false;">[Source]
</a></p>
206 <div class=
"method-source-code" id=
"M000168-source">
208 <span class=
"ruby-comment cmt"># File lib/git/remote.rb, line
20</span>
209 <span class=
"ruby-keyword kw">def
</span> <span class=
"ruby-identifier">fetch
</span>
210 <span class=
"ruby-ivar">@base
</span>.
<span class=
"ruby-identifier">fetch
</span>(
<span class=
"ruby-ivar">@name
</span>)
211 <span class=
"ruby-keyword kw">end
</span>
217 <div id=
"method-M000169" class=
"method-detail">
218 <a name=
"M000169"></a>
220 <div class=
"method-heading">
221 <a href=
"#M000169" class=
"method-signature">
222 <span class=
"method-name">merge
</span><span class=
"method-args">(branch = 'master')
</span>
226 <div class=
"method-description">
228 merge this remote locally
230 <p><a class=
"source-toggle" href=
"#"
231 onclick=
"toggleCode('M000169-source');return false;">[Source]
</a></p>
232 <div class=
"method-source-code" id=
"M000169-source">
234 <span class=
"ruby-comment cmt"># File lib/git/remote.rb, line
25</span>
235 <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>)
236 <span class=
"ruby-ivar">@base
</span>.
<span class=
"ruby-identifier">merge
</span>(
<span class=
"ruby-node">"#{@name}/#{branch}
"</span>)
237 <span class=
"ruby-keyword kw">end
</span>
243 <div id=
"method-M000167" class=
"method-detail">
244 <a name=
"M000167"></a>
246 <div class=
"method-heading">
247 <a href=
"#M000167" class=
"method-signature">
248 <span class=
"method-name">remove
</span><span class=
"method-args">()
</span>
252 <div class=
"method-description">
253 <p><a class=
"source-toggle" href=
"#"
254 onclick=
"toggleCode('M000167-source');return false;">[Source]
</a></p>
255 <div class=
"method-source-code" id=
"M000167-source">
257 <span class=
"ruby-comment cmt"># File lib/git/remote.rb, line
16</span>
258 <span class=
"ruby-keyword kw">def
</span> <span class=
"ruby-identifier">remove
</span>
259 <span class=
"ruby-ivar">@base
</span>.
<span class=
"ruby-identifier">remote_remove
</span>(
<span class=
"ruby-ivar">@name
</span>)
260 <span class=
"ruby-keyword kw">end
</span>
266 <div id=
"method-M000171" class=
"method-detail">
267 <a name=
"M000171"></a>
269 <div class=
"method-heading">
270 <a href=
"#M000171" class=
"method-signature">
271 <span class=
"method-name">remove
</span><span class=
"method-args">()
</span>
275 <div class=
"method-description">
276 <p><a class=
"source-toggle" href=
"#"
277 onclick=
"toggleCode('M000171-source');return false;">[Source]
</a></p>
278 <div class=
"method-source-code" id=
"M000171-source">
280 <span class=
"ruby-comment cmt"># File lib/git/remote.rb, line
33</span>
281 <span class=
"ruby-keyword kw">def
</span> <span class=
"ruby-identifier">remove
</span>
282 <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>)
283 <span class=
"ruby-keyword kw">end
</span>
289 <div id=
"method-M000172" class=
"method-detail">
290 <a name=
"M000172"></a>
292 <div class=
"method-heading">
293 <a href=
"#M000172" class=
"method-signature">
294 <span class=
"method-name">to_s
</span><span class=
"method-args">()
</span>
298 <div class=
"method-description">
299 <p><a class=
"source-toggle" href=
"#"
300 onclick=
"toggleCode('M000172-source');return false;">[Source]
</a></p>
301 <div class=
"method-source-code" id=
"M000172-source">
303 <span class=
"ruby-comment cmt"># File lib/git/remote.rb, line
37</span>
304 <span class=
"ruby-keyword kw">def
</span> <span class=
"ruby-identifier">to_s
</span>
305 <span class=
"ruby-ivar">@name
</span>
306 <span class=
"ruby-keyword kw">end
</span>
319 <div id=
"validator-badges">
320 <p><small><a href=
"http://validator.w3.org/check/referer">[Validate]
</a></small></p>