From 646304a6e7c3b2c442a0a7db995629e7009c3a14 Mon Sep 17 00:00:00 2001 From: scott Chacon Date: Sun, 11 Nov 2007 17:59:18 -0800 Subject: added documentation and a license file --- doc/classes/Git/Remote.html | 324 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 324 insertions(+) create mode 100644 doc/classes/Git/Remote.html (limited to 'doc/classes/Git/Remote.html') 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 @@ + + + + + + Class: Git::Remote + + + + + + + + + + +
+ + + + + + + + + + + + + + +
ClassGit::Remote
In: + + lib/git/remote.rb + +
+
Parent: + + Path + +
+
+ + +
+ + + +
+ + + +
+ +
+

Methods

+ +
+ branch   + fetch   + merge   + new   + remove   + remove   + to_s   +
+
+ +
+ + + + +
+ + + + + +
+

Attributes

+ +
+ + + + + + + + + + + + + + + + +
fetch_opts [RW] 
name [RW] 
url [RW] 
+
+
+ + + + +
+

Public Class methods

+ +
+ + + + +
+

[Source]

+
+
+# File lib/git/remote.rb, line 8
+    def initialize(base, name)
+      @base = base
+      config = @base.lib.config_remote(name)
+      @name = name
+      @url = config['url']
+      @fetch_opts = config['fetch']
+    end
+
+
+
+
+ +

Public Instance methods

+ +
+ + + + +
+

[Source]

+
+
+# File lib/git/remote.rb, line 29
+    def branch(branch = 'master')
+      Git::Branch.new(@base, "#{@name}/#{branch}")
+    end
+
+
+
+
+ +
+ + + + +
+

[Source]

+
+
+# File lib/git/remote.rb, line 20
+    def fetch
+      @base.fetch(@name)
+    end
+
+
+
+
+ +
+ + + + +
+

+merge this remote locally +

+

[Source]

+
+
+# File lib/git/remote.rb, line 25
+    def merge(branch = 'master')
+      @base.merge("#{@name}/#{branch}")
+    end
+
+
+
+
+ +
+ + + + +
+

[Source]

+
+
+# File lib/git/remote.rb, line 16
+    def remove
+      @base.remote_remove(@name)
+    end
+
+
+
+
+ +
+ + + + +
+

[Source]

+
+
+# File lib/git/remote.rb, line 33
+    def remove
+      @base.lib.remote_remove(@name)     
+    end
+
+
+
+
+ +
+ + + + +
+

[Source]

+
+
+# File lib/git/remote.rb, line 37
+    def to_s
+      @name
+    end
+
+
+
+
+ + +
+ + +
+ + +
+

[Validate]

+
+ + + \ No newline at end of file -- cgit