From bc60052b519b8b991e50b8ccb30f2b76ad125996 Mon Sep 17 00:00:00 2001 From: scott Chacon Date: Fri, 16 Nov 2007 13:24:30 -0800 Subject: updated the docs --- doc/classes/Git/Branch.html | 188 +++++++++++++++++++++++++++----------------- 1 file changed, 118 insertions(+), 70 deletions(-) (limited to 'doc/classes/Git/Branch.html') diff --git a/doc/classes/Git/Branch.html b/doc/classes/Git/Branch.html index 9b392fd..953f7ae 100644 --- a/doc/classes/Git/Branch.html +++ b/doc/classes/Git/Branch.html @@ -88,16 +88,18 @@

Methods

- checkout   - create   - current   - delete   - gcommit   - in_branch   - merge   - new   - to_a   - to_s   + archive   + checkout   + create   + current   + delete   + gcommit   + in_branch   + merge   + new   + to_a   + to_s   + update_ref  
@@ -142,19 +144,19 @@

Public Class methods

-
- +
+

[Source]

-
+ onclick="toggleCode('M000077-source');return false;">[Source]

+
 # File lib/git/branch.rb, line 9
     def initialize(base, name)
@@ -177,45 +179,68 @@
 
       

Public Instance methods

-
- +
+ + +
+

[Source]

+
+
+# File lib/git/branch.rb, line 33
+    def archive(file, opts = {})
+      @base.lib.archive(@full, file, opts)
+    end
+
+
+
+
+ +
+ + +

[Source]

-
+ onclick="toggleCode('M000079-source');return false;">[Source]

+
 # File lib/git/branch.rb, line 28
     def checkout
       check_if_create
-      @base.checkout(@name)
+      @base.checkout(@full)
     end
 
-
- +
+

[Source]

-
+ onclick="toggleCode('M000082-source');return false;">[Source]

+
-# File lib/git/branch.rb, line 50
+# File lib/git/branch.rb, line 53
     def create
       check_if_create
     end
@@ -224,21 +249,21 @@
         
-
- +
+

[Source]

-
+ onclick="toggleCode('M000084-source');return false;">[Source]

+
-# File lib/git/branch.rb, line 58
+# File lib/git/branch.rb, line 61
     def current
       determine_current
     end
@@ -247,21 +272,21 @@
         
-
- +
+

[Source]

-
+ onclick="toggleCode('M000083-source');return false;">[Source]

+
-# File lib/git/branch.rb, line 54
+# File lib/git/branch.rb, line 57
     def delete
       @base.lib.branch_delete(@name)
     end
@@ -270,23 +295,23 @@
         
-
- +
+

[Source]

-
+ onclick="toggleCode('M000078-source');return false;">[Source]

+
 # File lib/git/branch.rb, line 23
     def gcommit
-      @gcommit = @base.object(name) if !@gcommit
+      @gcommit = @base.object(@full) if !@gcommit
       @gcommit
     end
 
@@ -294,11 +319,11 @@
-
- +
+ @@ -306,7 +331,7 @@

g.branch(‘new_branch’).in_branch do +href="Branch.html#M000081">in_branch do

   # create new file
@@ -317,10 +342,10 @@ href="Branch.html#M000073">in_branch do
 end
 

[Source]

-
+ onclick="toggleCode('M000081-source');return false;">[Source]

+
-# File lib/git/branch.rb, line 39
+# File lib/git/branch.rb, line 42
     def in_branch (message = 'in branch work')
       old_current = @base.lib.branch_current
       checkout
@@ -336,21 +361,21 @@ end
         
-
- +
+

[Source]

-
+ onclick="toggleCode('M000085-source');return false;">[Source]

+
-# File lib/git/branch.rb, line 62
+# File lib/git/branch.rb, line 65
     def merge(branch = nil, message = nil)
       if branch
         in_branch do 
@@ -368,21 +393,21 @@ end
         
-
- +
+

[Source]

-
+ onclick="toggleCode('M000087-source');return false;">[Source]

+
-# File lib/git/branch.rb, line 75
+# File lib/git/branch.rb, line 82
     def to_a
       [@full]
     end
@@ -391,21 +416,21 @@ end
         
-
- +
+

[Source]

-
+ onclick="toggleCode('M000088-source');return false;">[Source]

+
-# File lib/git/branch.rb, line 79
+# File lib/git/branch.rb, line 86
     def to_s
       @full
     end
@@ -414,6 +439,29 @@ end
         
+
+ + + + +
+

[Source]

+
+
+# File lib/git/branch.rb, line 78
+    def update_ref(commit)
+      @base.lib.update_ref(@full, commit)
+    end
+
+
+
+
+
-- cgit